Oracle Magazine, May/June 2018
Mobile APPLICATION DEVELOPER CR component property Description variable This references a context of type entity to validate user input If you for example type salami when the pizza menu is displayed the menu will appear again because the value is not valid ORACLE MAGAZINE MAY JUNE 2018 58 for the PizzaType entity nlpResultVariable This property references the iResult variable of type nlpresult If this property is set the component before rendering the menu response checks whether the user input string contains a valid pizza type If it does the menu will not appear metadata The metadata section is where you can define the component response using the various response types such as card text and attachment This is also where you define the action possible for the cards cardLayout The cardLayout property defines whether cards are printed vertically or for horizontal scrolling Valid values are vertical and horizontal actions This property defines actions that are global for all cards In the example this setting is used to define the More Pizzas iterator button rendered This property defines whether an element is shown in the response For the More Pizzas button it uses an Apache FreeMarker expression to hide the button when the last page in the list of pizzas is reached payload The payload property of the postback action defines the action string that determines the next transition in the dialogue flow when the button is clicked as well as the variables and values that will be updated In this case the cardsRangeStart variable is updated with the next start index
You must have JavaScript enabled to view digital editions.