Creating secure applications  Data-capable post-processing options

Chapter 4: Advanced Application Creation

Working with data-capable elements

Data-capable elements conform to the Mobile Web Studio internal data format. The element types that can be data-capable are Web, XML, and database. The wizards for data-capable elements allow you to add split, define, and filter rules on the element content. The output of data-capable elements enables additional capabilities, such as assignment of application labels to element fields and the formatting of HTML output with cascading style sheet class definitions.

Database elements are data-capable by default. Web elements are data-capable when the visible text can be assigned a tabular structure. Data-capable options appear in the Web Element wizard as unformatted tables with a grey background. If the data-capable option does not appear, select an option and click Gridify. This forces the visible text in the element into a table that is then data-capable.

StepsCreating data-capable Web element content

  1. Select Build | Applications from the Mobile Web Studio left pane.

  2. Click the New icon on the Application Manager toolbar.

  3. When the Application Builder displays, right-click in the left pane and select New Web Element.

  4. Enter www.yahoo.com in the Location field and click Find.

  5. Click Next.

  6. Click any list.

  7. When the captured options display, select the second Select option and click Gridify. You see your selection displayed as a table.

NoteWhen you apply a UI XSL template to a Web application, you must select the “Enable Grid Rules” box, otherwise, the specified template is not applied.

XML elements are data-capable if the XML format conforms to the internal Mobile Web Studio Document Type Definition (DTD). If the XML does not conform to the Mobile Web Studio DTD, a content XSLT can be used to perform an XML to XML transformation that converts the source XML to the correct XML format. Data-capable XML elements have a default HTML presentation and do not require an UI XSLT. You can override the default HTML presentation by specifying an UI XSLT, alone or in combination with a content XSLT.

StepsCreating data-capable XML element content

  1. Select Build | Applications from the Mobile Web Studio left pane.

  2. Click the New icon on the Application Manager toolbar.

  3. When the Application Builder displays, right-click in the left pane and select New XML Element.

  4. When the XML Element Definition window appears, enter the following input as an example:

  5. Click Next, then click Finish.

  6. When you return to the Application Builder, click the down arrow beside the Save button to save the new element. See “Saving applications” for specific instructions.





Copyright © 2005. Sybase Inc. All rights reserved. Data-capable post-processing options

View this book as PDF