Hi,I am using 6.7.1 TS. i have tried to fetch values with help of iwpt_dcr_value Like :my $checkBox = iwpt_dcr_value('prodSol.regional_settings.GroupCh');but if i select multiple Checkboxes, above code return me only first values that i selected in DCT.How can i retrive all selected values of checkbox? is there any other term for fetching values like iwpt_dcr_value?Please suggest..
Read the documentation? - either through the browser (http://servername/iw/help/tst/pt) or from the command line (e.g.: perldoc TeamSite:T::iw_perl)
foreach my $choice (iwpt_dcr_value('prodSol.regional_settings.GroupCh')) { # note Value, not List! iwpt_output("$choice "); }
foreach my $choice (iwpt_dcr_list('Portlet.GroupSecurity')) { # note Value, not List! debug("choice:$choice"); }
<?xml version="1.0" standalone="yes"?><!DOCTYPE datacapture SYSTEM "datacapture5.0.dtd"><data-capture-requirements type="content" name="homecountry"><ruleset name="homecountry"><description>Home Country Portlet.</description><container name="Home_Country_Portlet" min ="1" max="15"><item name="AutogenerateName" required="t"><label>File Name</label><description>This value will be used to name the file.</description><text size="50" maxlength="100"></text></item><item name="test" pathid="test"> <checkbox required="t"> <option label="A1" value="A1"/> <option label="A2" value="A2"/> <option label="A3" value="A3"/> <option label="A4" value="A4"/> <option label="A6" value="A6"/> <option label="A7" value="A7"/> </checkbox></item></container></ruleset></data-capture-requirements>
</iw_perl> <iw_iterate list='dcr.Home_Country_Portlet' var='Portlet'> <iw_perl> my $AutogenerateName=iwpt_dcr_value('Portlet.AutogenerateName'); $AutogenerateName=~s| |\_|gims; my @choices = split(/\s*,\s*/, iwpt_dcr_value('Portlet.test')); foreach my $choice (@choices) { debug("choice:$choice"); } </iw_perl></iw_iterate>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE record SYSTEM "dcr4.5.dtd"><record name="iwDCR0_121111" type="content"><item name="Home_Country_Portlet"><value><item name="AutogenerateName"><value>Proper file</value></item><item name="test"><value>A1</value><value>A2</value><value>A3</value></item></value></item></record>