Checking checkboxes from XML data (Designer and LiveCycle Output)
Hello!
I have over 3 thousand XML files containing information to be converted into PDF files. Among the info I have fields like:
<REASON1>X</REASON1>
<REASON2></REASON2>
So on the XDP fields this translates as checkboxes.
So I tried this script to mark the correspondent checkboxes in the resulting PDF:
if (xfa.resolveNode("REASON1").rawValue == "X") {
this.rawValue = 1;
Well, it doesn't work.
The checkbox is identified as REASON1 in the Binding tab, everything looks correct to me.
Please, what am I doing wrong?
Thank you for any hints!
Marcos
Hi Niall,
Would you believe if I told you I had already tried this and it hadn't worked?
After your suggestion, I tried again. And guess, it worked.
I had probably missed something ...
Thank you!!!
Marcos
Similar Messages
-
Query from the data abse and pass values to a pdf form
query from the data abse and pass values to a pdf form
Hello
Hello i have this html report that i have written to output a
report.
now, i am assigned to pass the same fields to a pdf form so
the fields in the adaobe form can be populated or the term
Pre-populate the form.
can anyone help me get started.
first i would like to know if it can be done.
second, what do i need to get started (tools )
third how do i do this.
i am really lost at this point.
can anyone give me tips in how to approach this
subject??It can be one using Adobe Acrobat Designer which is packaged
with Acrobat
Professional Pro 7. It uses all XML to create and populate
forms.
If you had the time, you can also create <cfdocument
type="pdf"> to have
them ready and just pass the info to it so it autogenerates
the PDF on the
fly. -
Hi,
I'm working on one BI report for which XML data has been provided.This report needs to get AP check details (XML Data) and print them on checks
Based on xml data I'm trying to create RTF layout from BI desktop MS word add in
I'm loading xml data using insert field option pulling all required fields into RTF layout.
Here I faced Few issues,
1) in xml data I've more than one column with the same name for ex :
<Name> 23 </Name>
<Value>35</Value>
again I'm having another column with the same name.Though I'm pulling required column it's showing different value
2) Another issue is I'm pulling values under particular node it's not displaying right value
3)How to create group or repeating groups based on XML data for ex: checks needed to be printed based on supplier no or check no how to set group by for this ?
4) Right now my layout displays only one record eventhough more than one record is there in xml data?.
Thanks,
KiranHere's sample XML Data
Based on this data I need to develop RTF Template :
- <OutboundPaymentInstruction>
- <PaymentInstructionInfo>
<InstructionReferenceNumber>11111</InstructionReferenceNumber>
<FormatProgramRequestID>23456789</FormatProgramRequestID>
<InstructionCreationDate>2012-04-23T13:41:07</InstructionCreationDate>
- <MultiOrgAccessControl>
<HasBlockedData>N</HasBlockedData>
</MultiOrgAccessControl>
- <InstructionStatus>
<Code>CREATED_READY_FOR_FORMATTING</Code>
<Meaning>Created - Ready for Formatting</Meaning>
</InstructionStatus>
<ProcessingType>PRINTED</ProcessingType>
<ProcessType>STANDARD</ProcessType>
<UserAssignedRefCode>APR23</UserAssignedRefCode>
<BankAssignedRefCode />
- <PaymentSequence>
<SequenceName />
<LastValue />
</PaymentSequence>
- <PaymentSequence>
<SequenceName />
<LastValue />
</PaymentSequence>
- <PaymentSequence>
<SequenceName />
<LastValue />
</PaymentSequence>
- <BankInstruction>
<BankInstructionCode />
<Meaning />
<FormatValue />
</BankInstruction>
- <BankInstruction>
<BankInstructionCode />
<Meaning />
<FormatValue />
</BankInstruction>
<BankInstructionDetails />
<PaymentTextMessage />
<PaymentTextMessage />
<RegulatoryReportingOption>NO_DECLARATIONS</RegulatoryReportingOption>
<CardIssuerFileSequenceNo />
- <PaymentSystemAccount>
<AccountName />
</PaymentSystemAccount>
<Notes />
</PaymentInstructionInfo>
- <PaymentProcessProfile>
<PaymentProcessProfileInternalID>112</PaymentProcessProfileInternalID>
<PaymentProcessProfileName>ABC Check Payment</PaymentProcessProfileName>
<LogicalGroupingMode />
<BatchBookingFlag />
</PaymentProcessProfile>
- <PaymentFormat>
<PaymentFormatInternalID>IBY_PAY_EFT</PaymentFormatInternalID>
<PaymentFormatName>1/2 Inch Tape Format</PaymentFormatName>
</PaymentFormat>
- <CheckFormatInfo>
<PaymentDocumentName>001_Check</PaymentDocumentName>
- <PaperStockType>
<Code>PRENUMBERED</Code>
<Meaning>Prenumbered Stock</Meaning>
</PaperStockType>
</CheckFormatInfo>
- <InstructionTotals>
<PaymentCount>1</PaymentCount>
- <TotalPaymentAmount>
<Value>35</Value>
- <Currency>
<Code>USD</Code>
</Currency>
</TotalPaymentAmount>
</InstructionTotals>
- <InstructionGrouping>
- <PaymentCurrency>
<Code>USD</Code>
<Name>US Dollar</Name>
</PaymentCurrency>
- <Payer>
<PartyInternalID>2234567</PartyInternalID>
<PartyNumber>12345344</PartyNumber>
<Name>Abc Inc US OU/LE</Name>
- <PartyType>
<Code />
<Meaning />
</PartyType>
<TaxRegistrationNumber />
<LegalEntityRegistrationNumber>S11234</LegalEntityRegistrationNumber>
<LegalEntityInternalID>114</LegalEntityInternalID>
<LegalEntityName>Abc Inc US OU/LE</LegalEntityName>
- <Address>
<AddressInternalID>2341567</AddressInternalID>
<AddressLine1>123 Meadow Rd</AddressLine1>
<AddressLine2>P.O. Box 10000</AddressLine2>
<AddressLine3 />
<City>Fairfax</City>
<County>Fairfax</County>
<State>VA</State>
<Country>US</Country>
<ISO3DigitCountry>USA</ISO3DigitCountry>
<CountryName>United States</CountryName>
<PostalCode>20001-1111</PostalCode>
<PreFormattedConcatenatedAddress>123 Meadow Rd, P.O. Box 10000, Fairfax, VA 20001-1111</PreFormattedConcatenatedAddress>
<PreFormattedMailingAddress>123 Meadow Rd, P.O. Box 10000, Fairfax, VA 20001-1111</PreFormattedMailingAddress>
<AddressName>NA-US-VA-Fairfax 123MDR</AddressName>
</Address>
- <ContaVAInfo>
- <ContaVALocators>
<PhoneNumber />
<FaxNumber />
<EmailAddress />
<Website />
</ContaVALocators>
</ContaVAInfo>
</Payer>
- <PayerOrganization>
<OrganizationInternalID>114</OrganizationInternalID>
- <OrganizationType>
<Code>OPERATING_UNIT</Code>
<Meaning>Operating Unit</Meaning>
</OrganizationType>
<OrganizationName>Abc Inc US OU/LE</OrganizationName>
</PayerOrganization>
- <BankAccount>
<BankAccountInternalID>10067</BankAccountInternalID>
<BankName>HSBC</BankName>
<AlternateBankName />
<BankNumber />
<BranchInternalID>69937446</BranchInternalID>
<BranchName>HSBC - 001</BranchName>
<AlternateBranchName />
<BranchNumber />
<BankAccountName>001 - CHAP - HSBC</BankAccountName>
<AlternateBankAccountName />
<BankAccountNumber>1178657</BankAccountNumber>
<MaskedBankAccountNumber>XXXXXX8657</MaskedBankAccountNumber>
<UserEnteredBankAccountNumber>1178657</UserEnteredBankAccountNumber>
<BankAccountSuffix />
<SwiftCode />
<IBANNumber />
<CheckDigits />
- <BankAccountType>
<Code />
<Meaning />
</BankAccountType>
- <BankAccountCurrency>
<Code>USD</Code>
</BankAccountCurrency>
- <BankAddress>
<AddressInternalID />
<AddressLine1 />
<AddressLine2 />
<AddressLine3 />
<AddressLine4 />
<City />
<County />
<State />
<Province />
<Country>US</Country>
<ISO3DigitCountry>USA</ISO3DigitCountry>
<CountryName>United States</CountryName>
<PostalCode />
<PreFormattedConcatenatedAddress />
<PreFormattedMailingAddress />
</BankAddress>
- <FederalBankAccountInfo>
<FederalRFCIdentifier />
<FederalAgencyLocationCode />
<FederalAbbreviatedAgencyCode />
<FederalEmployerIdentificationNumber />
</FederalBankAccountInfo>
- <EFTUserNumber>
<AccountLevelEFTNumber />
<BranchLevelEFTNumber />
</EFTUserNumber>
</BankAccount>
- <FunVAionalCategory>
<Code>PAYABLES_DISB</Code>
<Meaning>Payables Disbursements</Meaning>
</FunVAionalCategory>
</InstructionGrouping>
- <OutboundPayment>
- <PaymentSourceInfo>
<ApplicationInternalID>200</ApplicationInternalID>
<ApplicationName>SQLAP</ApplicationName>
<PaymentServiceRequestID>24</PaymentServiceRequestID>
- <FunVAionalCategory>
<Code>PAYABLES_DISB</Code>
<Meaning>Payables Disbursements</Meaning>
</FunVAionalCategory>
- <PayerOrganization>
<OrganizationInternalID>114</OrganizationInternalID>
- <OrganizationType>
<Code>OPERATING_UNIT</Code>
<Meaning>Operating Unit</Meaning>
</OrganizationType>
<OrganizationName>Abc Inc US OU/LE</OrganizationName>
</PayerOrganization>
<EmployeePaymentFlag>N</EmployeePaymentFlag>
</PaymentSourceInfo>
- <PaymentNumber>
<DocCategory />
<SequenceName />
<SequenceValue />
<PaymentReferenceNumber>6</PaymentReferenceNumber>
<LogicalGroupReference />
<CheckNumber>1112223334</CheckNumber>
</PaymentNumber>
<PaymentDate>2011-12-31</PaymentDate>
<PaymentDueDate />
<MaturityDate />
- <PaymentStatus>
<Code>Instruction_CREATED</Code>
<Meaning>Instruction Created</Meaning>
</PaymentStatus>
- <Payee>
<PartyInternalID>69929643</PartyInternalID>
<PartyNumber>9755071</PartyNumber>
<Name>MUNICIPAL REVENUE DIV</Name>
<TaxRegistrationNumber />
<LegalEntityRegistrationNumber />
<AlternateName>5924</AlternateName>
<SupplierNumber>3244</SupplierNumber>
- <Address>
<AddressInternalID>14791</AddressInternalID>
<AddressLine1>PO BOX 1155</AddressLine1>
<AddressLine2 />
<AddressLine3 />
<AddressLine4 />
<City>EDISON</City>
<County />
<State>NJ</State>
<Country>US</Country>
<ISO3DigitCountry>USA</ISO3DigitCountry>
<CountryName>United States</CountryName>
<PostalCode>08818-1122</PostalCode>
<AddressName>REP-1122</AddressName>
<Addressee />
<AlternateAddressName />
<PreFormattedConcatenatedAddress>PO BOX 1155, , , EDISON, NJ, US, 08818-1122</PreFormattedConcatenatedAddress>
<PreFormattedMailingAddress>PO BOX 1155, , , EDISON, NJ, US, 08818-1122</PreFormattedMailingAddress>
</Address>
- <ContaVAInfo>
- <ContaVALocators>
<PhoneNumber />
<FaxNumber />
<EmailAddress />
<Website />
</ContaVALocators>
</ContaVAInfo>
<SupplierSiteCode>WIRE 2</SupplierSiteCode>
</Payee>
- <TradingPartner>
<PartyInternalID>69929643</PartyInternalID>
<PartyNumber>9755071</PartyNumber>
<Name>MUNICIPAL REVENUE DIV</Name>
<TaxRegistrationNumber />
<LegalEntityRegistrationNumber />
<AlternateName>5924</AlternateName>
<SupplierNumber>3244</SupplierNumber>
- <ContaVAInfo>
- <ContaVALocators>
<PhoneNumber />
<FaxNumber />
<EmailAddress />
<Website />
</ContaVALocators>
</ContaVAInfo>
<AdditionalInformation />
</TradingPartner>
<PayeeBankAccount />
- <Payer>
<PartyInternalID>2234567</PartyInternalID>
<PartyNumber>12345344</PartyNumber>
<Name>Abc Inc US OU/LE</Name>
- <PartyType>
<Code />
<Meaning />
</PartyType>
<TaxRegistrationNumber />
<LegalEntityRegistrationNumber>S11234</LegalEntityRegistrationNumber>
<LegalEntityInternalID>114</LegalEntityInternalID>
<LegalEntityName>Abc Inc US OU/LE</LegalEntityName>
- <Address>
<AddressInternalID>2341567</AddressInternalID>
<AddressLine1>123 Meadow Rd</AddressLine1>
<AddressLine2>P.O. Box 10000</AddressLine2>
<AddressLine3 />
<City>Fairfax</City>
<County>Fairfax</County>
<State>VA</State>
<Country>US</Country>
<ISO3DigitCountry>USA</ISO3DigitCountry>
<CountryName>United States</CountryName>
<PostalCode>20001-1111</PostalCode>
<PreFormattedConcatenatedAddress>123 Meadow Rd, P.O. Box 10000, Fairfax, VA 20001-1111</PreFormattedConcatenatedAddress>
<PreFormattedMailingAddress>123 Meadow Rd, P.O. Box 10000, Fairfax, VA 20001-1111</PreFormattedMailingAddress>
<AddressName>NA-US-VA-Fairfax 123MDR</AddressName>
</Address>
- <ContaVAInfo>
- <ContaVALocators>
<PhoneNumber />
<FaxNumber />
<EmailAddress />
<Website />
</ContaVALocators>
</ContaVAInfo>
</Payer>
- <BankAccount>
<BankAccountInternalID>10067</BankAccountInternalID>
<BankName>HSBC</BankName>
<AlternateBankName />
<BankNumber />
<BranchInternalID>69937446</BranchInternalID>
<BranchName>HSBC - 001</BranchName>
<AlternateBranchName />
<BranchNumber />
<BankAccountName>001 - CHAP - HSBC</BankAccountName>
<AlternateBankAccountName />
<BankAccountNumber>1178657</BankAccountNumber>
<MaskedBankAccountNumber>XXXXXX2228</MaskedBankAccountNumber>
<UserEnteredBankAccountNumber>1178657</UserEnteredBankAccountNumber>
<BankAccountSuffix />
<SwiftCode />
<IBANNumber />
<CheckDigits />
- <BankAccountType>
<Code />
<Meaning />
</BankAccountType>
- <BankAccountCurrency>
<Code>USD</Code>
</BankAccountCurrency>
- <BankAddress>
<AddressInternalID />
<AddressLine1 />
<AddressLine2 />
<AddressLine3 />
<AddressLine4 />
<City />
<County />
<State />
<Province />
<Country>US</Country>
<ISO3DigitCountry>USA</ISO3DigitCountry>
<CountryName>United States</CountryName>
<PostalCode />
<PreFormattedConcatenatedAddress />
<PreFormattedMailingAddress />
</BankAddress>
- <FederalBankAccountInfo>
<FederalRFCIdentifier />
<FederalAgencyLocationCode />
<FederalAbbreviatedAgencyCode />
<FederalEmployerIdentificationNumber />
</FederalBankAccountInfo>
- <EFTUserNumber>
<AccountLevelEFTNumber />
<BranchLevelEFTNumber />
</EFTUserNumber>
</BankAccount>
- <Beneficiary>
<Name>MUNICIPAL REVENUE DIV</Name>
</Beneficiary>
- <PaymentAmount>
<Value>35</Value>
- <Currency>
<Code>USD</Code>
<Name>US Dollar</Name>
</Currency>
</PaymentAmount>
<PaymentAmountText>Thirty-Five Dollars And Zero Cents***********************</PaymentAmountText>
- <PaymentMethod>
<PaymentMethodInternalID>CHECK</PaymentMethodInternalID>
<PaymentMethodName>Check</PaymentMethodName>
<PaymentMethodFormatValue>CHECK</PaymentMethodFormatValue>
</PaymentMethod>
<PayAlongFlag>N</PayAlongFlag>
- <SettlementPriority>
<Code />
<Meaning />
</SettlementPriority>
- <AmountWithheld>
<Value />
- <Currency>
<Code>USD</Code>
</Currency>
</AmountWithheld>
- <DiscountTaken>
- <Amount>
<Value>0</Value>
- <Currency>
<Code>USD</Code>
</Currency>
</Amount>
</DiscountTaken>
- <BankCharges>
- <BankChargeBearer>
<Code />
<Meaning />
</BankChargeBearer>
- <Amount>
<Value>0</Value>
- <Currency>
<Code>USD</Code>
</Currency>
</Amount>
</BankCharges>
- <DeliveryChannel>
<Code />
<Meaning />
<FormatValue />
</DeliveryChannel>
- <PaymentReason>
<Code />
<Meaning />
<FormatValue />
</PaymentReason>
<PaymentReasonComments />
<RemittanceMessage />
<RemittanceMessage />
<RemittanceMessage />
- <BankInstruction>
<BankInstructionCode />
<Meaning />
<FormatValue />
</BankInstruction>
- <BankInstruction>
<BankInstructionCode />
<Meaning />
<FormatValue />
</BankInstruction>
<BankInstructionDetails />
<PaymentTextMessage />
<PaymentTextMessage />
<PaymentTextMessage />
<PaymentDetails />
- <RegulatoryReporting>
<DeclarationFlag>N</DeclarationFlag>
- <Amount>
<Value>0</Value>
- <Currency>
<Code />
</Currency>
</Amount>
</RegulatoryReporting>
- <FederalPaymentInfo>
<FederalAllotmentCode />
<FederalOffsetEligibilityFlag />
<FederalAccountingSymbol />
</FederalPaymentInfo>
<DocumentPayableCount>1</DocumentPayableCount>
- <DocumentPayable>
- <DocumentNumber>
<DocumentInternalIDSegment1>79860</DocumentInternalIDSegment1>
<DocumentInternalIDSegment2>922522</DocumentInternalIDSegment2>
<DocumentInternalIDSegment3>1</DocumentInternalIDSegment3>
<DocumentInternalIDSegment4 />
<DocumentInternalIDSegment5 />
<ApplicationInternalID>200</ApplicationInternalID>
<ApplicationDocumentSubType>PAYABLES_DOC</ApplicationDocumentSubType>
<ApplicationUniqueInternalID>79860</ApplicationUniqueInternalID>
<ReferenceNumber>35.00120211</ReferenceNumber>
- <UniqueRemittanceIdentifier>
<Number />
<CheckDigit />
</UniqueRemittanceIdentifier>
<DocCategory>STD INV</DocCategory>
<SequenceName>AP_US_STD_2011</SequenceName>
<SequenceValue>2011072795</SequenceValue>
</DocumentNumber>
<PONumber>UNMATCHED</PONumber>
- <DocumentStatus>
<Code>PAYMENT_CREATED</Code>
<Meaning>Payment Created</Meaning>
</DocumentStatus>
<DocumentDate>2011-12-02</DocumentDate>
<DocumentCreationDate>2012-04-23</DocumentCreationDate>
<PaymentDueDate>2011-12-02</PaymentDueDate>
- <DocumentType>
<Code>STANDARD</Code>
<Meaning>Standard</Meaning>
</DocumentType>
<DocumentDescription>RESEARCH BOARD FORM 8802</DocumentDescription>
<ExpenseReportCreditCardNumber />
<EmployeePaymentFlag>N</EmployeePaymentFlag>
- <TotalDocumentAmount>
<Value>35</Value>
- <Currency>
<Code>USD</Code>
</Currency>
</TotalDocumentAmount>
- <PaymentAmount>
<Value>35</Value>
- <Currency>
<Code>USD</Code>
</Currency>
</PaymentAmount>
<PayAloneFlag>N</PayAloneFlag>
- <SettlementPriority>
<Code />
<Meaning />
</SettlementPriority>
- <AmountWithheld>
<Value />
- <Currency>
<Code>USD</Code>
</Currency>
</AmountWithheld>
- <DiscountTaken>
- <Amount>
<Value>0</Value>
- <Currency>
<Code>USD</Code>
</Currency>
</Amount>
<DiscountDate />
</DiscountTaken>
- <BankCharges>
- <BankChargeBearer>
<Code />
<Meaning />
</BankChargeBearer>
</BankCharges>
- <DeliveryChannel>
<Code />
<Meaning />
<FormatValue />
</DeliveryChannel>
- <PaymentReason>
<Code />
<Meaning />
<FormatValue />
</PaymentReason>
<PaymentReasonComments />
<RemittanceMessage />
<RemittanceMessage />
<RemittanceMessage />
- <Charge>
- <TotalDocumentChargeAmount>
<Value />
- <Currency>
<Code>USD</Code>
</Currency>
</TotalDocumentChargeAmount>
</Charge>
- <TotalDocumentTaxAmount>
<Value />
- <Currency>
<Code>USD</Code>
</Currency>
</TotalDocumentTaxAmount>
- <CreditAmountApplied>
<Value />
- <Currency>
<Code>USD</Code>
</Currency>
</CreditAmountApplied>
- <InterestAmountApplied>
<Value />
- <Currency>
<Code>USD</Code>
</Currency>
</InterestAmountApplied>
<InterestRate />
- <DocumentPayableLine>
<LineNumber>1</LineNumber>
<PONumber />
- <LineType>
<Code>ITEM</Code>
<Meaning />
</LineType>
<LineDescription />
- <LineGrossAmount>
<Value>35</Value>
- <Currency>
<Code>USD</Code>
</Currency>
</LineGrossAmount>
<UnitPrice />
<Quantity />
- <UnitOfMeasure>
<Code>N</Code>
<Meaning />
</UnitOfMeasure>
- <Tax>
<TaxCode />
<TaxRate />
</Tax>
</DocumentPayableLine>
<DocumentPayerLegalEntityName>Abc Inc US OU/LE</DocumentPayerLegalEntityName>
<DocumentPayerLegalEntityRegNumber>S11234</DocumentPayerLegalEntityRegNumber>
<DocumentPayerTaxRegNumber />
</DocumentPayable>
</OutboundPayment>
</OutboundPaymentInstruction> -
I want to upgrade from CS5.5 Design and web premium to CS6 standard. There are several programs like Dreamweaver that are not in CS6 standard. If i upgrade will i be able to keep the CS5.5 versions of programs that are not in the upgrade?
Yes, you can upgrade S&T editions by buying a commercial upgrade. Just make sure to pick the correct previous version during check-out or you'll get a serial number snafu...
Mylenium -
Document on XML date rules and date management
Hi,
Could you Please send a document on XML date rules and date management. I really in need of it. You may send it to [email protected]Hello
Could you please email this to me: [email protected]
Thanks in advance
Kevin -
I am a sole proprietor business owner (work from home graphic designer) and I have a customer who wants to pay me via Apple pay. Can I accept her transaction? How do I get that rolling?
Apple Pay: Merchants FAQ - Apple Support
-
Query data being picked from which data targets and dimension tables.
Hi Guys,
I need help from you people.
My query is "If we execute any query, i want to know from which data targets and from which dimension tables data being read in the run time", is there any program or any table to find this data.
thanks in advacne.
Regards
PrasadHi Prasad,
We will get Data target information in query level in information TAB.
If you want get dimension tables information also you need use technical business content(bwstatistics) Cubes and need to customize the required information. I think standard statisics cubes is not provide dimention tables information. Need to customize that.
Hope it will help for you.
Thanks,
Chandra -
How much is the price of upgrading from CS5.5 Design and Web Premium to CS6 Design and Web Premium?
And why is this price not on the Web site?
And when will this price be added to the Web site? It's long overdue.Sorry. After downloading required Adobe CS6 Design and Web Premium files and attempting to install, the error message "
The file archive part of Adobe CS6 Design and Web Premium is missing. You need all parts in the same folder in order to extract Adobe CS6 Design and Web Premium. Please download all parts" appears. Using Window 8. This happens on the Adobe Design and Web Premium CS6 installer file. -
Forms pulling Multiple Records from an XML Schema and XML data files - Adobe LiveCycle Designer
I built a form in Adobe LiveCycle with an xml schema and data file. The problem is with how the form renders the xml data file.
I have a statement element that consists of about 6 fields (statementID, statementName, statementAddress, statementCountry, statementZip, statementDate, etc) of data in the schema that allows for multiple iterations - so one xml data file can contain multiple statements. These fields allow for null values.
But here's the problem: When any of the statements - say statement 2 of 6 - has a null value in one of the fields, if the xml data file doesn't have a placeholder
(example of placeholder: <statementName type="String"/> )in the xml for that field, my form pulls the field value from the NEXT statement.
This corrupts all the rest of the statement records, as this field is shifted up for all the rest.
I know that in the past I haven't needed a placeholder when a field was null. But I'm wondering if when the data allows for multiple records the xml data file needs to generate the placeholder. And where is the problem? In the Schema? The xml data file? My form? And the 64-thousand-dollar question: How to fix it?If your <statement> element is the one that repeats, it should be bound to a subform with the binding string of something like $.statement[*]. Then in that subform should be your fields and they should have bindings of $.statementID, $.statementName, $.statementAddress, etc.
Kyle -
Import XML data in Adobe LiveCycle Designer
Hi,
I use Adobe LiveCycle Designer to create a form.
I use XML data to fill objects as list box.
I would like read attribut values from XML element.
I don't know how to do with Javascript Language in Adobe LiveCycle Designer
Can you help me ?
DavidAll the info you need is in the LiveCycle/XFA documentation.
Leonard -
Extracting data from XML using xmltype and extract
Hello all,
I want to write a pl/sql functions that takes a clob as an input and return a some data extracted from the data passed into it.
the input will be an xml similar to the following:
<FIXML xsi:schemaLocation="http://www.finacle.com/fixml executeFinacleScript.xsd" xmlns="http://www.finacle.com/fixml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<ResponseHeader>
<RequestMessageKey>
<RequestUUID>IVR201306180841060310000000000000000</RequestUUID>
<ServiceRequestId>executeFinacleScript</ServiceRequestId>
<ServiceRequestVersion>10.3</ServiceRequestVersion>
<ChannelId>IVR</ChannelId>
</RequestMessageKey>
<ResponseMessageInfo>
<BankId>01</BankId>
<TimeZone></TimeZone>
<MessageDateTime>2013-06-18T05:36:55.918</MessageDateTime>
</ResponseMessageInfo>
<UBUSTransaction>
<Id/>
<Status/>
</UBUSTransaction>
<HostTransaction>
<Id/>
<Status>SUCCESS</Status>
</HostTransaction>
<HostParentTransaction>
<Id/>
<Status/>
</HostParentTransaction>
<CustomInfo/>
</ResponseHeader>
</Header>
<Body>
<executeFinacleScriptResponse>
<ExecuteFinacleScriptOutputVO>
<executeFinacleScript_customData>
<DataCategory>ACC</DataCategory>
<New_Data>0001019300101001</New_Data>
</executeFinacleScript_customData>
</ExecuteFinacleScriptOutputVO>
</executeFinacleScriptResponse>
</Body>
</FIXML>'
I want to extract the value of new_data.
I wrote the following anonymous block to test the code :
declare
xparam xmltype;
v_xpath varchar2(500);
begin
xparam:=xmltype('<FIXML xsi:schemaLocation="http://www.finacle.com/fixml executeFinacleScript.xsd" xmlns="http://www.finacle.com/fixml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<ResponseHeader>
<RequestMessageKey>
<RequestUUID>IVR201306180841060310000000000000000</RequestUUID>
<ServiceRequestId>executeFinacleScript</ServiceRequestId>
<ServiceRequestVersion>10.3</ServiceRequestVersion>
<ChannelId>IVR</ChannelId>
</RequestMessageKey>
<ResponseMessageInfo>
<BankId>01</BankId>
<TimeZone></TimeZone>
<MessageDateTime>2013-06-18T05:36:55.918</MessageDateTime>
</ResponseMessageInfo>
<UBUSTransaction>
<Id/>
<Status/>
</UBUSTransaction>
<HostTransaction>
<Id/>
<Status>SUCCESS</Status>
</HostTransaction>
<HostParentTransaction>
<Id/>
<Status/>
</HostParentTransaction>
<CustomInfo/>
</ResponseHeader>
</Header>
<Body>
<executeFinacleScriptResponse>
<ExecuteFinacleScriptOutputVO>
<executeFinacleScript_customData>
<DataCategory>ACC</DataCategory>
<New_Data>0001019300101001</New_Data>
</executeFinacleScript_customData>
</ExecuteFinacleScriptOutputVO>
</executeFinacleScriptResponse>
</Body>
</FIXML>');
v_xpath:='//New_Data/text()';-
dbms_output.put_line(xparam.EXTRACT(v_xpath).GETSTRINGVAL());
end;
but I get the following Error:
dbms_output.put_line(xparam.EXTRACT(v_xpath).GETSTRINGVAL());
end;
Error at line 1
ORA-30625: method dispatch on NULL SELF argument is disallowed
ORA-06512: at line 46
the problem is that when I remove : xmlns="http://www.finacle.com/fixml" attribute from the root node the code works correctly.
of course , I can simply use replace to remove it, but I want to know what is causing the error.
I am using oracle database 10gLet me explain that the issue is not only related to Oracle.
If you google a bit for default namespace and Xpath you will find many topic.
Basically when you have an XML having a definition of namespace without a prefix:
i.e.:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Example XHTML document</title>
</head>
<body>
<p>Sample content</p>
</body>
</html>
this means that all unprefixed elements are belonging to this default namespace.
In this case an Xpath equal to '//title/text()' will not get anything because it is assuming to find the element title within a null namespace. But title in this case is automatically assigned to the default namespace.
When you specify a prefix in a namespace then all elements without prefix are associated to namespace NULL. Using a default namespace is causing a lot of headache.
These links can be giving a clearer picture:
http://www.edankert.com/defaultnamespaces.html
Assuming that you have data like this:
WITH mydata AS
( SELECT '
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Example XHTML document</title>
</head>
<body>
<p>Sample content</p>
</body>
</html>' xmldata FROM DUAL
SELECT xmltype (xmldata).EXTRACT ('//title/text()').getstringval ()
FROM mydata;
This query will not give anything back to you. You will have to specify:
SELECT xmltype (xmldata).EXTRACT ('//title/text()', 'xmlns="http://www.w3.org/1999/xhtml"').getstringval ()
FROM mydata;
Note also that you should be able to get the default namespace when it is specified (without prefix) by using:
SELECT xmltype(xmldata).getnamespace() from mydata;
Post your Oracle version to see if it something related to your version. In mine I got this:
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jun 20 18:32:58 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> WITH mydata AS
2 ( SELECT '
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>Example XHTML document</title>
6 </head>
7 <body>
8 <p>Sample content</p>
9 </body>
10 </html>' xmldata FROM DUAL
11 )
12 SELECT xmltype(xmldata).getnamespace() from mydata;
XMLTYPE(XMLDATA).GETNAMESPACE()
http://www.w3.org/1999/xhtml
SQL>
If this would work, then it would be enough to add the optional additional parameter namespace. In case it is null it will be set as xmlsn="" and it will work anyway:
Please note that it will work both if the XML has a default namespace or not
i.e.:
with default namespace:
SQL> DECLARE
2 xparam XMLTYPE;
3 v_xpath VARCHAR2 (500);
4 v_ns VARCHAR2 (500);
5 BEGIN
6 xparam :=
7 xmltype ('
8 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ns="http://www.w3.org/1999/xhtml" >
9 <head>
10 <title>Example XHTML document</title>
11 </head>
12 <body>
13 <p>Sample content</p>
14 </body>
15 </html>');
16 v_xpath := '//title/text()';
17 v_ns := 'xmlns="' || xparam.getnamespace () || '"';
18 DBMS_OUTPUT.
19 put_line (
20 'Value of title:' || xparam.EXTRACT (v_xpath, v_ns).getstringval ());
21 END;
22 /
Value of title:Example XHTML document
PL/SQL procedure successfully completed.
SQL>
and without default namespace
SQL> DECLARE
2 xparam XMLTYPE;
3 v_xpath VARCHAR2 (500);
4 v_ns VARCHAR2 (500);
5 BEGIN
6 xparam :=
7 xmltype ('
8 <html xmlns:ns="http://www.w3.org/1999/xhtml" >
9 <head>
10 <title>Example XHTML document</title>
11 </head>
12 <body>
13 <p>Sample content</p>
14 </body>
15 </html>');
16 v_xpath := '//title/text()';
17 v_ns := 'xmlns="' || xparam.getnamespace () || '"';
18 DBMS_OUTPUT.
19 put_line (
20 'Value of title:' || xparam.EXTRACT (v_xpath, v_ns).getstringval ());
21 END;
22 /
Value of title:Example XHTML document
PL/SQL procedure successfully completed.
Regards.
Al
Message was edited by: AlbertoFaenza
IF removed as it is working anyway. -
How to create XML data source/ and load data from a web service to BI
All,
I m trying to find a 'how to' document (or any document) that shows how to create an XML data source to load data directly from a web service or from an XML file.
I appreciate any help.Hi Mike,
Two more for you:----
/thread/111488 [original link is broken]
http://help.sap.com/saphelp_nw70/helpdata/en/e6/1dd53bb90cbb1ae10000000a11402f/content.htm
Regards,
Suman -
XML Data Server and model help
All,
I have the following files
1) travel.dtd
2) travel.xml.
I've set up a XML data server with JDBC driver com.sunopsis.jdbc.driver.xml.SnpsXmlDriver and URL = jdbc:snps:xml?d=c:/XML/travel.dtd. I have created a model in designer and have successfully reversed the datastores generated from the dtd.
The travel.xml file has data populated within it, but when I right click on the datastores, there is nothing displayed. This makes sense because the xml server is configured to point at the .dtd. Do I need to change my topology connection to connect to the xml document as opposed to the dtd. Can someone tell me what i'm missing?
thanks for your help.Since its not displaying anything as you are saying you just change the property to "f" and check.
Example
jdbc:snps:xml?f=/xml/myxml.xml&d=/xml/myxcd.xsd&s=MYSCHEMANAME
("s=MYSCHEMANAME": This schema will be selected when creating the physical schema under the XML data server.)
Hope it helps.
Thanks -
Pre-populate PDF from XML data
I am looking into the feasibility of pre-populating a PDF form using an XML data file. The basic workflow I am investigating is this:
1. both the PDF form (built in LiveCycle Designer) and XML file would be stored together on a web server.
2. User would navigate to a web page containing a link to the PDF form, and click to open. The PDF form would open in their browser (using their installed PDF viewer plug in)
3. the PDF form would be (partially) populated by the data in the XML file automatically
4. User would fill out the unpopulated portion of the form, and save the resulting PDF to their computer.
Is this workflow feasible? What are the problem areas? I realize that the the PDF would have to be Reader Extended to allow the user to save it.
Many thanks for any and all help and direction.
Matt LL.Hi Matt,
yes, this workflow is perfectly feasible, not really with solely a standard HTTP server though.
There are a variety of options. The issue is that the process of populating the form can usually not be done without any server-side application of logic.
- You could use LiveCycle Forms to achieve that. That'd also allow you to use other LC components later on easily , such as Reader Extensions, Process Management or DRM for your documents.
- You could use Adobe ColdFusion for pre-populating the form from XML, it's super easy (much more straightforward than LC imho). The downside is that CF doesn't have an option to Reader Extend the form for you. That being said, you could get Reader Extensions as a stand-alone module and use it's SOA APIs to hook into your CF code (ColdFusion is basically just an abstraction layer on top of Java).
Hope that helps to get an idea.
Cheers
Kai -
Populating a Crystal Report from XML data
Hi,
I want to populate a Crystal Report using a XML data structure. Below I have explained what Iu2019m trying to do in detail,
u2022 First I will create a Crystal Report using Crystal Report XI R2 designer by connecting to a Oracle database using a native Oracle connection (not ODBC or JDBC)
u2022 Then I want to write a Java application using CR XI R2 JRC SDK to open this report
u2022 Then to run and populate this report using a XML data structure (which I have separately in a disk location. XSD too is available in disk)
u2022 Then to export this report with data to either PDF or RPT file with saved data in to disk.
The questions I have are,
1. Is this possible to do in away?
2. If so, can you please provide me with a sample code for doing this? I tried some of the other threads in the forum but some had broken links.
3. Do the xml and the xsd needs to be in a special format?
4. Is there any other configuration setting I should do?
Hope you can help me. Thank you in advance.
Regards,
ChanakaHi Chinmay,
Thank you for the prompt answer. I have gone through this before. It explains on how to create a report using a xml database from CR designer. What I want to do is to set the data source programmatically to a xml date source from the code. I didnu2019t find anything like that. Is it the same way as setting the database connection information?
Also another question I have is how does a report with two tables work? Say I have a master u2013 detail report (order and order lines). The master part is taken from one table (order_tab) and the detail part is taken from another (order_detail_tab). Do I need to have 2 xmls or is one structured xml sufficient? How will the same work if I have the detail section in a sub-report? Will it work with one or do I need to have two?
Regards,
Chanaka
Maybe you are looking for
-
Trying to download the new itunes but it tells me there are "No software updates"
I am attempting to download iOs6 for my iphone, and it is prompting me to first download itunes 10.6.3. However, when I click "download itunes" I am brought to the software updates window, and am prompted that there are no new updates for my computer
-
How to re register my macbook air under my apple ID
How to re register my macbook air under my apple ID. Cannot download iPhoto.
-
TS1717 iTunes tends to freeze MacBook in many different ways?
Since I moved from Belgium to Australia following problem occurs: - When my Macbook Pro (OS X Lion 10.7.5) gets out of (screen)sleepmode when running music on iTunes the computer freezes and the song that was playing gets stuck on the last note. - Wh
-
So I accidently pressed the Reset Statistics in the cellular page and it took away all of my apps. Now all of my apps that were on that page have disappeared. How do i get these apps back on that page because i need to control my data usage. Please h
-
Which mapping populates W_INVOICE_FS in Oracle EBS Adaptor?
Which mapping populates W_INVOICE_FS in Oracle EBS Adaptor? I was not able to find any mapping that populates W_INVOICE_FS staging table. Thanks Eric