2

MDK - Convert Value of Segemented Control to "true/false" on OData Act...

 1 year ago
source link: https://answers.sap.com/questions/13799339/mdk-convert-value-of-segemented-control-to-truefal.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
6 hours ago

MDK - Convert Value of Segemented Control to "true/false" on OData Action

11 Views

I have a segmented control with 2 values ("Partial" and "Final"). When clicking "Submit" on the page it does a CallFunction OData Action and sends data back to SAP. The CallFunction Action contains two parameters of "Partial" and "Final" which need to be either "true" or "false".

How do I say "if Partial is selected, then set Partial Flag on CallFunction Action to true" (same for Final)?

...{
                            "_Type": "Control.Type.FormCell.SegmentedControl",
                            "_Name": "FormCellSegmentedControl0",
                            "IsEditable": true,
                            "IsVisible": true,
                            "Caption": "Type",
                            "ApportionsSegmentWidthsByContent": false,
                            "Segments": [
                               "Final",
                               "Partial"
                            ]
}...

Action:

..."Function": {
			"Name": "Confirmation",
			"Parameters": {
				"Final": false, <-- I want this to be "if Final is selected, then true"
...

Thanks,

James


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK