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.

HOW DO I save state of original $var.name

Featured Replies




[b]Find UNSOLD[/b]

[i]#[/i]

[i]# Attempt to get ALL sold & unsold records count[/i]

[i]#[/i]

[i]#[/i]

[i]#[/i]

[b]Set Variable [/b][ $$COUNT_sold; Value:"" ]

[b]Set Variable [/b][ $NAME; Value:Get(ScriptParameter) ]

[i]#[/i]

[b]Go to Record/Request/Page[/b]

[ First ]

[b]Loop If [/b][ $NAME = Products 2::name and not IsEmpty(Products 2::sold) ] 

[b]Set Variable [/b][ $COUNT_sold; Value:Products 2::sold ]

[b]Exit Loop If [/b][ $NAME ≠ Products 2::name ]

[b]If [/b][ $COUNT_sold ≠ Products 2::c_sold ]

[b]Else[/b]

[b]Set Field [/b][ Products 2::c_sold; $COUNT_sold ]

[b]End If [/b]

[b]End If[/b]

[b]Go to Record/Request/Page[/b]

[ Next; Exit after last ]

[b]End Loop [/b]



[b]Show Custom Dialog [/b][ Message: $$COUNT_sold; Buttons: “OK”, “Cancel” ] [i]# # # # #[/i]



Set Variable [ $COUNT_sold; Value:Products 2::sold ]

Exit Loop If [ $NAME ≠ Products 2::name ]

If [ $COUNT_sold ≠ Products 2::c_sold ]

Else

lets say that $COUNT_sold = 8 and Products 2::sold is empty , i put $COUNT_sold value into that field, how do i save that for

iteration later on for example next pass $COUNT_sold = 4 . or do i just use a summary field?

-i

I'd like to help, but your post is hard to read. It barely makes sense.

Maybe you need to just use another variable, or set repetitions of the same variable, and then set your field(s) at the end?

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.