HELP! I am trying to get my FM layout to have a self aware object. The object is named appropriately and the object (For example, a portal) would then use the name to filter with some form of get(name) method. Can this be done?
In theory i want singular row portals with the name "Portal 1" to be copy an pasted. When pasting FM will automatically name this "Portal 2" (3,4,5,6 and so on). The filter will then use a "RightValue(Get(Name))" to filter down on this number.
CAN THIS BE DONE? I am racking my brains trying to figure a way of doing this and making this layout dynamic >_<
By Ian Murphy
What I want to do is paste the contents of a portal into a text field. (A pretty good analogue of the intended use: I want to send an email to program participants who have requested it; whether they're attending one program or thirty, I want to let them know.)
A couple of years ago, in a solution tracking budgets, I wrote a version of this that worked but used the system's Copy & Paste functions. Having defined the portal as BUDGET_PORTAL, I wrote:
which worked fine (worked well, in fact) - but used the system's clipboard, which isn't desirable.
Looking for advice for accomplishing the same thing via Insert and Get commands.
I thought I had it with the GetLayoutObjectAttribute function, but it seems to want me to define content downstream of a given table, which I don't understand.
By Alex Quinlan
I am struggling to achieve what I thought would be a simple button script.
My company table's layout has a portal showing the related personnel through the field - "company_id" in the personnel table. It also has a popover with a second portal which I use to enter the details of the personnel for that company record.
I would like the popover, when I open it through the popover button, to go to a new personnel record.
I would also like the "edit personnel" button, which is positioned on each row, to open the same popover but go to that portal row.
At first I had the popover open with a filter on the portal for If [isEmpty (Personnel::First)] which, although ugly, achieved what I wanted. But I think I have to remove that in order to get the edit personnel button to work. So now i'm not sure how to even get the popover to open with the portal aiming at a new record.
For the edit personnel button I tried a few methods. My most recent attempt was -
Set Variable [$row; Value: Get (ActivePortalRowNumber)]
Go to Object [Object Name: "Add New Personnel Portal"]
Go to Portal Row [No dialog; $row]
Which obviously didn't work or I wouldn't be here.
Any help would be greatly appreciated.
I've got a library with 1000's of books so to make it easier I have placed letters A - Z for the user to click on and bring up only those books starting with that letter.
I really don't want to write 26 different scripts to do a Perform Find for A, B, etc..., so each of the text letters which have the script button attached to them, I gave an object Name A, B etc. and used the script;
Set Variable [ $abc; Value:Get(ActiveLayoutObjectName)]
and then used the variable $abc in my Perform Find.....But it doesn't work! I did some tests but it seems that Get(ActiveLayoutObjectName) doesn't work when clicking on buttons.
Am I mistaken? Is there another easier way to do this other than write 26 seperate scripts for each letter?
Thanks so much for your help in advance.... and have a great weekend