Knowledge Base Article

Contact Tech Support
excel@excelsystems.com
 (250) 655-1766
 [7:30 - 5:00 PST]
Your Meeting ID will be Provided by a Rep.
Tech Support
Tech Support Home
Software Updates
Knowledge Base
Code Samples
Documentation
Technical News
Software Requirements
Support Testimonials
Contact us to...
Create a Ticket
Request a Free Demo
Suggest a New Feature
Submit Feedback
Upload a Large File
Other Services
Software Training
Professional Services
Product: WebSmart IDE Created: 2010/02/03 Back to Search  
Number: 8193 Type: How to Rate This Article
 

Article Description

How can I use a PML array field directly in an HTML segment like I do for other fields?

Article Details

Question:
 
How can I use a PML array field directly in an HTML segment like I do for other fields?
 
Answer:
 
Array fields can be referenced in an HTML segment by adding PML tags into the HTML and then writing the value of the array field using the wrthtml function like this:
 
PML:
crtarr(test_array, 20, "A", 0, 5, "the test array");
test_array[1] = "Element One";
HTML:  
<% wrthtml(test_array[1]); % >


The other way is to create a temporary workfield in the PML to hold the contents of the array element. 

PML:
crtarr(test_array, 20, "A", 0, 5, "the test array");
crtfld(temp, 20, "A", 0, "Temp workfield");
temp = test_array[1];
HTML:
<field name=temp >


 

Rate This Page

Did this knowledge base article help you to achieve your goal?  Yes  No  Don't Know

Enter additional comments below.   If you want to hear back from us, include your contact information.

Email Address:
Comments: