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.

repeating inlineaction...

Featured Replies

Hi

I have a portal and some fields with popup menus inside it.

One of the popups shows the result of an inlineaction find request.

The problem is that this inline request is running for each portal row and is slowing down the machine .

I guess I need some help with Java here...

How can I store an Inline results in a variable and then use this variable in the popup menu?

The inline code is :

[FMP-InlineAction:-db=reservations.fp5,-lay=Webmain,User1_user2={fmp-currenttoken},-max=all,-find]

[FMP-Record]

<option value="[fmp-field:id]"> [Fmp-field:id] - [fmp-field:project]</option>

[/FMP-Record]

[/FMP-InlineAction]

Tnx

I wouldn't use Java (couldn't), however Javascript will do the job.

You can use Arrays to store the list.

Some examples exist in these Forums. I will have a look later today.

All the best.

Garry

  • Author

Hi

I tried to look for some examples on the forum, but couldnt find anything similar...

I don;t know JS very good...but still how can I insert INLINE results into JS array?

Try this:

<script>

var aDept = new Array();

i = 0;

[FMP-InlineAction: -db=employees.fp5, -lay=web, -sortfield=department, -max=all, -findall]

[FMP-Record]

aDept[i++]="[FMP-Field: department]";

[/FMP-Record]

[/FMP-InlineAction]

</script>

</head>

<body>

<form ....

....

<select name="department">

<option value="">Select a Department</option>

<script>

for (a=0; a < aDept.length; a++)

{

document.write("<option value='" + aDept[a] + "'>" + aDept[a] + "</option>");

};

</script>

</select>

....

Good Luck

Garry

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.