Portlet Factory, Version 6.1.2


 

Extraction of input values specified in the builder call editor

You can retrieve the input values that the user specifies in the builder call editor by calling the getString() method (or other method, for example, getXML() or getBoolean()) on the builderInputs object passed to the doBuilderCall() method. For example:

String customerName = builderInputs.getString("CustomerName", null); String customerAddress = builderInputs.getXml("CustomerAddress", null);

Note: The above calls supply null as the value to use if the input value is empty. You can supply a value to use if the input value is empty with a call like the following, which supplies a new ID if the CustomerID value is null:

String customerID = builderInputs.getString("CustomerID", "1111");

Parent topic: Using other builders in the generation class


Library | Support |