• What is Action?

    • If the user wants to perform some operation when a Button is clicked or Trigger is fired then we can use below action to perform that operation
    • Multiple actions can be added to a single Button or Trigger.

    How to add Action?

    • To add action,go to Customize Page and select button or trigger on which the action is required.

    • After selecting the button or trigger, click on New which is present on top and select an action to be performed when that particular button or trigger is fired.

Action Check Condition - Failure Message:

We can check condition and show the message if condition fails.We need to specify Condition that needs to be evaluated and Failure Message to show if condition fails.

 
 
Action Hide:

We can hide UI Component using this Action.We need to specify item id of component that need to be hidden in UI Item Id.
Eg:- Hiding the Grid by specifying the grids itemid


 

Note:
We can specify multiple Item Id's with comma (,) as delimiter.

Action Show:

We can show UI Component using this action. We need to specify item id of component that needs to be shown in UI Item Id .
Eg:- Make the Grid visible on button click by specifying the item id of the grid. 


Note:
We can specify multiple Item Id's with comma (,) as delimiter.


Action
 Set Heading:

We can change the header of UI Component like Grid,Content Panel etc.
We need to specify Header and UI Item Id property. We can specify header either simple string or dynamic Expression. 




Action
 Set Height:

We can change height of UI Component using this action. We need to specify the UI Item Id and Height property. We can specify height either in Pixel(px) or Percentage(%) according to UI Component layout.
Eg:Row layout supports height in both Pixel and Percentage.
To specify height in percentage,we need to specify value between 0 to 1.
 Eg:0 for 0%, 0.1 for 10%, 0.2 for 20%, ..., 1 for 100%. 
To specify height in pixel,we need to specify value greater than 1.
Note:For Row layout, we can specify height as -1 also.If we specify height as -1 then component will take it's own required height.




Action Invoke Popup:

We can refere a popup in a same page using this action.We need to specify popup Item Id that needs to be referred in UI Item Id.


Note:We can refere another page popup also by using Reference Item.


ActionClearDatasource
:


This action is similar as Clear button action. Here we can specify Item Id Grid and Form component that needs to be clear in UI Item Id.We can specify multiple Item Id's with comma (,) as delimiter.



Note:
This action only works for Grid and Form Data Source.We can not clear Chart and Calendar Data Source.

ActionCollapsed:

We can collapse a collapsible component using this action.We need to specify Item Id of Component that need to be collapsed.We can collapse component like Content Panel,Grid,Border Layout Children etc. if component is collapsible.



Note:
We can specify multiple Item Id's with comma (,) as delimiter.

ActionCopy
:

We can copy data from one attribute to another attribute using this action.We need to specify Target Field(attribute to which we need to copy data) and Target Value(attribute from where to get data).

Target Field:

We can define Target Field in following ways.
1.Set value to specific Data Source:
Syntax: :DataSourceName.attributeName
Eg:   :Country.countryCode
If we have multiple data source with same name then we can use Item Id of component to differentiate.
Syntax: :DataSourceName:itemId.attributeName
Eg:  :Country:item44.countryCode

2.Set Global Value:
Syntax: :global.anyAttributeName
Eg: :global.xyz

3.Set value to Field Data Source:
If we need to set Target field as ActionCopy's parents data source attribute then we can directly specify attribute name.
Syntax: attributeName
Eg:  : State



Target Value:

It's a source of data.This data will get copied to target field.We can specify target value in following ways.
1.Get value from Data Source:
Syntax: #{DataSource.attributeName}
Eg:  #{ExEmployees.employeename}

If we have multiple data source with same name then we can use Item Id of component to differentiate.
Syntax: #{DataSource:ItemId.attributeName}
Eg: #{ExEmployees:item40.employeename}

2.Get Global Value:
Syntax: #{global.anyAttributeName}
Eg :  #{global.xyz}

3.Get value from Field Data Source:
If we need to get Target Value as ActionCopy's parents data source attribute then we can directly specify attribute name.
Syntax: #{attributeName}
Eg : #{state}

4.Prompt:
We can prompt user to specify value also and user spcified value will get copy to Target Field.
Syntax: propmt:WindowMessage
Eg:  : propmt:Please Enter Your Name

5.Simple Value:
We can directly give simple value also.
String Value:We can specify string value enclosed by single quote(').
Syntax: 'string'
Numeric Value:We can directly specify number value.
Eg: 10

ActionDuplicate:  

We can duplicate Field Data Source's current row using this action. In addition, we can set or override some data source attribute by creating Set Data child for this action.



Now create a child to the Action Duplicate.


ActionDuplicateChild:

This action comes under Action Duplicate only.We can duplicate child data source records using this action.We need to specify child Data Source that needs to be duplicate.If we want to duplicate particular child records then we can specify condition.This condition will be evaluated against each record of specified child data source and if condition satisfies then it will duplicate that child data source record.If we don't specify any conditon then it will duplicate all records of specified child data source.

ActionGotoRecord:

We can direct the control(cursor) to specific grid row using this action.We need to specify Grid Item Id that needs to get control and data source of that grid.To go to specific record in a grid, we need to add 'Match Record' child to this action.It will try to match record with all specified 'Match Record' child criteria and if it founds the match record then it will go to that particular reocord.Otherwise control will go to first record and if we don't add any'Match Record' child then also control will go to first record of the grid. 



MatchRecord:

This action comes under Action Goto Record only. We can use this action for matching a record (where a control needs to go) in a grid by specifying Target Value and View attribute.We can add multiple Match Record children to Action GoTo Record.It will try to match record with specified Target Value for view attribute against each record of data source and if record satsifies all specified criteria then control will go to that record.If multiple records satsifies the criteria then control will go to record which comes first.

ActionHideShowColumn:

We can show and hide grid columns using this action.We need to specify Grid Item id, Column ids and Hide Column property.We need to uncheck Hide Column property to show specified columns.
Note:We can specify multiple Column Item Id's with comma (,) as delimiter.

ActionInsert:

We can create a new record to specific data source using this action.We need to specify data source name and target item id to create a new record.We can set default values also by adding SetData child to this action.


 
Properties:    

  • Clear Before Insert: If we check this property then it will clear all existing records from data source and then create a new record.
  • Insert On Top: Allows to create a new record at first position.
  • Make Dirty: Allows to make new created record dirty.

ActionInvokeDatasource:

We can invoke a PL/SQL procedure using this action.We need to specify data source and based on your data source configurtion, it will call the respective PL/SQL procedure.

We can pass input parameter to PL/SQL procedure by adding 'SetData' child and then we can set TargetValue(Input param value) and View Atttribute(Input param name) to SetData.




We can get out param value by adding 'GetData' child and then we can specify out param name as View attribute and we can set out param value to specified Target Field.



ActionLink:

We can specify a link using this action.Using this action we can either navigate through plaform page or we can specify non-plaform url also.Click here to know about Link Syntax.



ActionRefresh:

We can refresh data source using this action.We need to specify Item Id of component which have data source like ContentPanel,Grid,Charts etc.
Note:We can specify multiple Item Id's with comma (,) as delimiter.

 

Action Query:

We can query a data source using this action.We need to specify Data Source name that needs be queried and Item Id of it in Target Item Id.We can specify where clause by adding a 'SetData' child.




Properties

  • Execute Child Queries:If data source have Master-child relationship and if we don't want to query child data soure then uncheck this property.
  • Pause: If this proeprty is check then next subsequent action won't execute unless until this data source query is completed.

ActionSetInsertAllowed:


We can stop or allow user to enter value in a field or create a new record using this action.We can specify either individual field or form Item Id in UI Item Id property.If we specify form item id then this will reflect to all children of specified form.

Note:
We can specify multiple Item Id's with comma (,) as delimiter.



ActionSetRecordStatus:

We can change current record status of any data source using this action.We need to specify data source UI Item Id and status that needs to be set.

Note:We can specify multiple Item Id's with comma (,) as delimiter.



ActionSetRequired:

We can change allow blank property for input field like TextField,NumberField etc. using this action.We need to specify Item Id of that field in Ui Item Id property.

Note:We can specify multiple Item Id's with comma (,) as delimiter.



ActionSetUpdateAllowed:

We can stop or allow user to update any field using this action.We can specify either individual field or form Item Id in UI Item Id property.If we specify form item id then this will reflect to all children of specified form.

Note:We can specify multiple Item Id's with comma (,) as delimiter.

 

ActionSetWindowTitle:

We can change the browser window title using this action.We can specify either String or Expression in Window Title property

 

 

ActionShowHelp:

We can show written help for particular component using this Action.We need to specify Item Id of component that's help need to be shown.

 

ActionShowInfo:

We can show message on top menu bar using this action.We can give either simple string or Expression as Info Message.

 

GotoTarget:

We can go to specific field or container using this action.We can directly specify field Item Id in Target Value.If we want to go to particular tab,card or according layout child then we have to use following syntax.
Syntax: ParentItemId:ChildItemId or ParentItemId:ChildIndex
Parent Item Id:It should be item id of either TabPanel,CardLayout or Accordian layout.
Child Item Id  :It should be item id of eitther TabPanel,CardLayout or According layout child with respect to ParentItemId.
Child Index    :It should be valid child index number. e.g. 0 for the first child  1 for second child, etc.




MessageBox:

We can show a Message using this action.Message can be either simple string or Expression.There are diffrent types of message box like Confirmation Message Box,Error and Message.

 

Popup:

We can show a Popup using this action. Click here to know more about Popup.
 



Reference Item:

We can refere popup or any container using this action. Click here to know more about Reference Item.

 

SwitchAction:

Based on different conditions, if you want to show the data then you can use this Switchaction.

Step1: Select the Item Type as Switch Action under the button.

Step2: Select the item type as switch case.

Step3: Select the button action you feel like .
 If you want to reference  an original item in any other part of your application, then you can use this reference item.







ActionSetColumnHeader:

If you want to set the heading dynamically on the click of a button then you can use this button action.

 

ActionSetDeleteAllowed:

We can change delete allowed on fly using this action. We need to specify Ui Item Id as data source item id for which we need to set delete allowed. To prevent deletion, Uncheck the delete allowed property.
Note:We can specify multiple Item Id's with comma (,) as delimiter.



ActionSetEnabled:

We can enable and disable component on fly using this action. We need to specify UI Item Id as item id of components. To disbale comonents, we need to uncheck Enabled property.
Note:We can specify multiple Item Id's with comma (,) as delimiter.



InvokeAction:

We can invoke set of actions with in same page from other places using this action. This is useful when you need to call the same set of actions from multiple places. This will help in maintainability. We need to specify UI Item Id as item id of Button, Link or Trigger which need to be invoked.



Location

101 California Street, Suite 2710
San Francisco, CA 94111


440 N. Wolfe Rd.
Sunnyvale, CA 94085


Office 11, 5th Floor, Building 9,
Mindspace IT Park
Hyderabad 500081

p: +1 (844) AT CloudIO (844-282-5683)
f: +1 (650) 300-5247 | e: sales@cloudio.io
© 2009, 2017 CloudIO Inc. | Terms of Use | Privacy Policy