Link to home
Start Free TrialLog in
Avatar of BeastDan
BeastDan

asked on

Embedded View question ver 6.5.1 - client side only - action button on embedded view needs work.

Hello....I have an embedded view that allows 2 different document types in the view.   I also have an action button on this embedded view that once selected, composes a document inheriting values from the selected document in the view.   I have tried unsuccessfully to ensure that the user had selected the proper document type in the view when pressing this action button.   The formula in the action button reads:

@If(FORM = "PR";
@Command([Compose];"PP");@Prompt([Ok];"Reminder";"Please Click on Product Request Record before Selecting Create Product Payment"))

I always get the Reminder...it always fails.........I select the correct document in the view, right click to see doc properties, to verify form does = "PR".  I press the action button and the compose does not occur....

Without the If statement, and just the compose, it works, but if the wrong document type was selected, my new document is lacking the needed inherited values.

I am learning from making mistakes, I am learning a lot......what did I do incorrectly?

Thanks...

Avatar of qwaletee
qwaletee

Hi BeastDan,

Suggestion -- try the following to see what value is being returned for Form:

@If(
    FORM = "PR";
        @Command([Compose];"PP");
    @Prompt([Ok];"Reminder (" + Form + ")";"Please Click on Product Request Record before Selecting Create Product Payment")
)



Best regards,
qwaletee
Avatar of BeastDan

ASKER

the title bar displayed as: Reminder()


Empty.....not sure why I can not obtain value of form here...but on a regular view it's working....

I selected the correct document in the embedded view prior to testing this out.....
ASKER CERTIFIED SOLUTION
Avatar of madheeswar
madheeswar
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial