Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Please Help: Inline Action

Featured Replies

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

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!

I think it is the quotation marks ", maybe something in syntax.

  • Author

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

[FMP-InlineAction: -db=prtzlog.fp5, ID={CurrentToken: 3}, -New] [/FMP-InlineAction]

This works for me

  • Author

Thanks a lot Anatoli. The token tag works great!

laugh.gif" border="0smile.gif" border="0wink.gif" border="0

Any time cool.gif" border="0

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.