Jump to content

Please Help: Inline Action


This topic is 8457 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm really lost now. I'd be really grateful for some more help.

I have created a log.fp5 database with a layout called "web" and it has the fields "time", "date", "page", "browser" and "ip". It is shared via Web Companion. I have added the InlineAction code under my <body> tag just like below:

code:


<body bgcolor="#FFFFFF" text="#000000">

[FMP-InlineAction: -db=log.fp5, -lay=web, time="{CurrentTime}", date="{CurrentDate}",

page="This page!", browser="{ClientType}", ip="{ClientIP}", -new]

[/FMP-InlineAction]

..... and then the rest of my web page.....


But it still doesn't work. Records aren't being created in my log.fp5 database when I use my links.

Can somebody please help me? crazy.gif" border="0

Link to comment
Share on other sites

Small suggestion:

Inline is pickish. Start with just creating -new record. It must work.

Then try first value. If its stops, there is something wrong with syntax.

If it works, add more.

Remember - one small mistake and Inline isn't there, it will cease to exist!

Link to comment
Share on other sites

quote:

Originally posted by Anatoli:

Inline is pickish. Start with just creating -new record. It must work.

Then try first value. If its stops, there is something wrong with syntax.

If it works, add more.


Thanks Anatoli. laugh.gif" border="0 I took your advice and added each action tag one at a time. It helped me figure out that it was the date and time tag that was causing the problem. The reason why the date and time tags were spoiling the InlineAction was because I had defined their field types as "Date" and "Time" respectively. I changed their types to "Text" and it works fine now. Cheers.

But.. in my log.fp5 database, if the time is 3.02 AM then the log writes it as "3.2". It misses out the zero. Is there some way to include the zero?

Also, is there a way I can add my UserID field to the InlineAction? I would also like to log the UserID with every new record in the log.fp5 database. I thought of using the -token tag but I'm having difficulty in figuring out how to make it work with the InlineAction. Any suggestions?

Thanks a lot for your help. smile.gif" border="0

Link to comment
Share on other sites

This topic is 8457 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.