Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all 5571 articles
Browse latest View live

Adobe liveCycle Designer - Sort Table Content Using Javascript

$
0
0

Hello Gurus,

 

I need an urgent help here.

 

I am doing form development on SAP business By design and I dont have the access to backend data. So, I have to do everything in javascript.

 

The requirement is to sort the content of the table to be printed and then we need to add sub-total row after a set of items end.

 

So something like this.

 

  

Document #Item #Amount
10011100
10012200
10013300
Subtotal600
10021100
10022100
10023300
Subtotal500

 

Now, in the 1st script I have written a logic to loop on the table

- Compare current and next entry. Swap if 1st>2nd. (I am just replacing the content of rows at index 1 and 2)

- Now I get a sorted table.

- On the sorted table I have written script to add amount field but I found that in the second loop (it is iterating on unsorted data)

which means that content was not bounded to node, it just changed at runtime. Although getting printed in the sorted manner.

 

 

Please help on this issue.


Sort on Date Field in Dynamic Table

$
0
0

I just got it working so that I can add rows in between static rows in a table.  One of the columns is a date/time field and I would like the user to be able to sort on that and not mess up my Adding Rows in between the static rows.  I tried using this as a reference and couldn't get it to work.  I think my problem is when calling the SubformSort function from the Header Button, I have several rows already: Row1[0], Row2 (this row is the row that I duplicate and has the delete button), Row1[1], Row1[2].  All Row1's are rows with static text, but can still be included in the sort.  So when i use the following, I don't think the _Row1 is correct...

 

SubformSort.sort(this, _Row1, "StudyMSDate");

 

Thanks in advance.

Sort Table Data

$
0
0

is there any way to sort tabel data in livecycle like in excel or word tables?

Size / position of objects with integer millimetres

$
0
0

I'm new to LCD and I am trying to design forms with unit of measure millimetres.

 

Something I find is that I just cannot seem to get positions or sizes to be where I entered them.

eg if I put the AnchorX as '7mm' it immediately changes to '7.0012mm' or '7.0002mm' or similar and will NOT stay as the integer I entered.

Although this is unnoticeable on the output, I find it just ... really disturbing.

 

What is going on here? I've searched & didn't find any background explanation. I am guessing that it is something like internally, all units get converted to points or twips or whatever, and since those are fundamentally defined from inches, we get these tiny imperfections using metric units.

 

Does anyone know what's going on? Is it 'just my form' or do others get it?

If I use inches, it seems to stay at what I enter.

 

Thanks in advance

can the outlook email in the subject line also show the project number to keep up with emailed forms?

$
0
0

Hi All,

May you help me please?

I created a submit by email in designer and what i want to do, when we hit submit by email and at email subject will capture text "123" from the PDF fill form Code number: 123

Post-sign validation of signature certificate serial number

$
0
0

Hi,

 

I'm looking to limit the signers for the signature field by their .p7c certificate serial numbers. Is this possible? If so, I would like there to be an error if someone who does not have the correct serial number in their signature certificate, the signature will be invalid.

 

Thank you,

get row values from second table of data

$
0
0

I am working on an invoice form. This comes from a table of data in XML that holds the main details.

On my form is a table bound to this table, showing columns such as "Line Number", "Item", "Description", "Quantity", "Price", "Total" etc.

 

On each line, I need to add a delivery number.

 

Here's the challenge: In the XML, the delivery number is in a totally separate table, which has a reference to the line number of the main details.

 

How can I get this delivery number from the totally separate table?

What I have done so far, is create a repeating subform within my table, and data-binding to the "delivery table".

Then, I used javascript to compare "invoice line" against the "reference line number" of the delivery table it is repeating over.

If it is the same, presence = "visible", else presence = "hidden".

 

It feels horrid but was all I could think of. It did work, but for row 1 only.

I removed the javascipt and found it is only looping over the delivery table for the first row of my invoice. My expectation was that it would have looped it for every single row.

 

Does anyone have any ideas how I should be doing this please?

 

Thanks in advance

Is it possible to have flowing subform in masterpage?

$
0
0

Hello everyone,

 

I am wondering if it is possible to use subform with flowed content in masterpages. If it is possible, how do you make them to work?


Things i noticed :

- To have a flowing page, normally you have to set the page content to flowing, but in masterpage you cannot set this property.

- According to this flow document of the events, i tend to believe that masterpage layout appear after the layout process, which would maybe prevent the form from flowing?

 

 

adobe live designer event flow.png


Any input that could help me?

 

Thanks alot!

Max


Function Help to change many .presence

$
0
0

I have a dynamic form which has multiple comments scattered among multiple pages, sometimes the form is used electronic and sometimes it is printed.  I have a dropdown field to indicate the selected current use.  The difference is the comment field changes from a single text field per section for digital use to a table with multiple rows for printing for hard copy use.  I am calling the function on my form ready and from the exit event of the dropdown field.  However the below function isn't actually changing the .presence of anything.  I would rather not have to hard code every single comment subform and text field path.  Can someone look at the function I'm trying to build and help me understand what I'm doing incorrectly?

function SetCmntMode (oNode)
{
 // read and set the appropriate comment field/subform visibility
 switch (xfa.resolveNode("frm.#pageSet[0].PageArea1.sfrmHdr.cboMethod").rawValue){
 case "Digital":  vCmntDigi = "visible";  vCmntHard = "hidden";  break;
 case "Hard Copy":  vCmntDigi = "hidden";  vCmntHard = "visible";  break;
 default:  vCmntDigi = "visible";  vCmntHard = "hidden";
 }

 // show the appropriate comment field/subform
 var sFrmNum = xfa.resolveNodes("PrntComment");    for (var i=0; i < sFrmNum.length; i++) {        sFrmNum.item(i).presence = vCmntDigi ;     }  
 var sTxtNum= xfa.resolveNodes("txtComment");    for (var i=0; i < sTxtNum.length; i++) {        sTxtNum.item(i).presence = vCmntHard ;   }
}

Row Grouping in Table

$
0
0

Hi there !

I'm very new to Adobe LiveCycle Designer and working on a project. Now i need to create a pdf form using ALD.

I have created a table and managed to display data on pdf but my requirement is to group items in the table.

For example:

There are 4 items in the table. 2 of them belong to the category "Beverages" and the other 2 belong to "Foods". I need to group the rows by category like below.

I have have tried section, group as choice section but no luck so far.

I appriciate any help or sample doc.

Thanks.

Issue adding new subform, duplicating data from 2 to 3 subform

$
0
0

Hello guys!!

 

First of all, I'm not an expert on LiveCycle, so sorry if this question is too much basic.

 

In SAP, we have a couple of adobe livecycle forms.

 

One of them, has some bank details to add it to a vendor, but the user whats a button to add more bank accounts with the same data...

 

When we add the second subform it forms fine, but adding the third, all the fields are properly shown but if you write data on second it also reflect in third and viceversa!! This is my code in the button to add subforms:

 

FP_DATA.PAGE2.SUBFORM.SECTION04.STATIC.BANKDETAIL.HEADER.Button1::click - (JavaScript, client)

 

var totalRows = xfa.resolveNode("xfa.form.FP_DATA.PAGE2.SUBFORM.SECTION04.STATIC.BANKDETAIL._DATA").count ;

 

if(totalRows <3)

{

 

 

    var object = _DATA.addInstance(true);

    js_config.translate("E");

    js_commonFunctions.hideFields();

    js_page2.checkIntermediaryBank();

    js_commonFunctions.SetCountryValues(object);

    js_page2.fillCurrenciesValues(object);

   

   

 

}

 

Table displayed not correct after page break

$
0
0

Hey community,

 

i've a table with 4 columns, a header and 1 dynamic row. Under that there is a row with a subform.
I show a screenshot where you can see my problem.

 

 

Maybe theres a way to display the header on following pages like i want it.

 

ThanksPageBreakFail.PNG

Action Builder OK button unavailable

$
0
0

I am trying to edit some actions I created for radio buttons, but when I select the button and open Action Builder, the OK button in the Action Builder dialog is grayed out, so I can't add or change anything.

 

Can anyone suggest what might be wrong? Thanks

disable click

$
0
0

I have a button that should only be clicked once. Once it is clicked, it needs to be disabled (i.e. click event should not be fireable). I have JavaScript that I thought accomplished this:

 

this.access = "readOnly"; 

 

But it appears this only disables the ability to "click" using the mouse. The button is still focusable and enter causes the click event to fire.

Collecting data in an Excel spreadsheet

$
0
0

I have created a form that I want to host on an internal website. Now I want to collect the data entered into that form and record that data on an Excel spreadheet. Is there anywhere you can find instructions on how to do this? Thanks.


Null Values not displaying in Form

$
0
0

I'm using a form to display the output document we send to customers. Some of the products have serial numbers and some do not have serial numbers, so when we enter the line items on a form, perhaps 10 items, only 5 of them will have serial numbers. When this displays on the form, it bumps all 5 serial numbers to display in rows 1-5 of the table, even though they might be for line item 1,3,4,6 and 10. Below is the XML schema for the serial number field, as I'm hoping there is something simple that I am forgetting.

 

<field minH="4.282mm" name="colSerialNumber_4WBK44MW54WDAT7CJDFSCMSH0_35495" w="24.594mm">

                        <ui>

                           <textEdit multiLine="1">

                              <border presence="hidden"/>

                              <margin/>

                           </textEdit>

                        </ui>

                        <font size="9pt" typeface="Arial"/>

                        <margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/>

                        <border>

                           <edge thickness="0.18mm">

                              <color value="91,91,91"/>

                           </edge>

                           <corner thickness="0.18mm">

                              <color value="91,91,91"/>

                           </corner>

                        </border>

                        <bind match="dataRef" ref="$.ServiceOrder.Item[*].SerialNumber_4WBK44MW54WDAT7CJDFSCMSH0"/>

                        <assist>

                           <speak disable="1"/>

                        </assist>

                        <validate nullTest="error"/>

                     </field>

 

Any help would be appreciated.

ExportData for 1 section of a form

$
0
0

I have a form with 6 tables. i.e. Table1, Table2.. Table6. On export, I only want the data in the xml file for Table1.

Help with extracting information from database into custom table.

$
0
0

Hello guys,

I need to pull information from a database into a custom table that I have created in Adobe LiveCycle Designer. The connection to the database is set up, but the information is coming in the wrong order.

The data is split up into sections, with each section having a bunch of records related to it. To make it work I have created a table with the first row pulling the first section, the second row pulling the requirements related to that first section, the third row pulling the second section, the fourth row pulling the requirements related to the second section, and so on.

However, when running, what happens is the following:

- The first section is pulled

- The requirements regarding the first section are pulled.

- Then all of the other requirements from the other sections are pulled.

- And after requirements, all of the sections are puled.

Since the XML code for the table is setup from top to bottom, I am unsure of why this is happening. Also, the rows pulling the many requirements, have the option to "Repeat Row for Each Data Item."

Table Hierarchy.PNG

Table Layout.PNG

And here is the XML for the table:

<subform name="Table11" layout="table" columnWidths="34.9479mm 139.3546mm 28.8773mm">            <border>               <edge/>            </border>            <subform layout="row" name="Row1" id="Row1_ID">               <assist role="TH"/>               <draw h="10mm" name="Cell1">                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                     <fill>                        <color value="255,153,0"/>                     </fill>                  </border>                  <ui>                     <textEdit/>                  </ui>                  <value>                     <text>Requirement</text>                  </value>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle" hAlign="center"/>               </draw>               <draw h="10mm" name="Cell2">                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                     <fill>                        <color value="255,153,0"/>                     </fill>                  </border>                  <ui>                     <textEdit/>                  </ui>                  <value>                     <text>Description</text>                  </value>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>               </draw>               <draw h="10mm" name="Cell3">                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                     <fill>                        <color value="255,153,0"/>                     </fill>                  </border>                  <ui>                     <textEdit/>                  </ui>                  <value>                     <text>Risk</text>                  </value>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>               </draw>               <border>                  <edge presence="hidden"/>               </border>               <?templateDesigner expand 1?>               <occur max="-1"/>            </subform>            <?templateDesigner rowpattern first:1, next:1, firstcolor:f0f0f0, nextcolor:ffffff, apply:0?>            <subform layout="row" name="VLT__sections__cr" vql="WHERE id='V12000000000502'">               <assist role="TR"/>               <field name="VLT__name__v" h="10mm">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                     <fill>                        <color value="192,192,192"/>                     </fill>                  </border>               </field>               <field w="168.232mm" h="10mm" colSpan="2" name="VLT__description__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                     <fill>                        <color value="192,192,192"/>                     </fill>                  </border>               </field>               <?templateDesigner expand 1?></subform>            <subform layout="row" name="VLT__requirements__cr" vql="WHERE section__c ='V12000000000502'">               <assist role="TR"/>               <field h="10mm" name="VLT__name__v">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                  </border>               </field>               <field w="168.232mm" h="10mm" name="VLT__description__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                  </border>               </field>               <field name="VLT__risk__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Arial"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.175mm"/>                  </border>               </field>               <?templateDesigner expand 1?></subform>            <subform layout="row" name="VLT__sections__cr" vql="WHERE id='V12000000000602'">               <assist role="TR"/>               <field name="VLT__name__v" h="10mm">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                     <fill>                        <color value="192,192,192"/>                     </fill>                  </border>               </field>               <field w="168.232mm" h="10mm" colSpan="2" name="VLT__description__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                     <fill>                        <color value="192,192,192"/>                     </fill>                  </border>               </field>               <?templateDesigner expand 1?></subform>            <subform layout="row" name="VLT__requirements__cr" vql="WHERE section__c ='V12000000000602'">               <assist role="TR"/>               <field h="10mm" name="VLT__name__v">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                  </border>               </field>               <field w="168.232mm" h="10mm" name="VLT__description__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                  </border>               </field>               <field name="VLT__risk__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Arial"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.175mm"/>                  </border>               </field>               <?templateDesigner expand 1?></subform>            <subform layout="row" name="VLT__sections__cr" vql="WHERE id='V12000000000603'">               <assist role="TR"/>               <field name="VLT__name__v" h="10mm">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                     <fill>                        <color value="192,192,192"/>                     </fill>                  </border>               </field>               <field w="168.232mm" h="10mm" colSpan="2" name="VLT__description__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                     <fill>                        <color value="192,192,192"/>                     </fill>                  </border>               </field>               <?templateDesigner expand 1?></subform>            <subform layout="row" name="VLT__requirements__cr" vql="WHERE section__c ='V12000000000603'">               <assist role="TR"/>               <field h="10mm" name="VLT__name__v">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                  </border>               </field>               <field w="168.232mm" h="10mm" name="VLT__description__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                  </border>               </field>               <field name="VLT__risk__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Arial"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.175mm"/>                  </border>               </field>               <?templateDesigner expand 1?>               <occur max="-1"/>            </subform>            <subform layout="row" name="VLT__sections__cr" vql="WHERE id='V12000000000604'">               <assist role="TR"/>               <field name="VLT__name__v" h="10mm">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                     <fill>                        <color value="192,192,192"/>                     </fill>                  </border>               </field>               <field w="168.232mm" h="10mm" colSpan="2" name="VLT__description__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                     <fill>                        <color value="192,192,192"/>                     </fill>                  </border>               </field>               <?templateDesigner expand 1?></subform>            <subform layout="row" name="VLT__requirements__cr" vql="WHERE section__c ='V12000000000604'">               <assist role="TR"/>               <field h="10mm" name="VLT__name__v">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                  </border>               </field>               <field w="168.232mm" h="10mm" name="VLT__description__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Verdana" weight="bold"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.1778mm"/>                  </border>               </field>               <field name="VLT__risk__c">                  <ui>                     <textEdit>                        <margin/>                     </textEdit>                  </ui>                  <font typeface="Arial"/>                  <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>                  <para vAlign="middle"/>                  <border>                     <edge/>                     <corner thickness="0.175mm"/>                  </border>               </field>               <occur max="-1"/>               <?templateDesigner expand 1?></subform>            <?templateDesigner expand 1?>            <overflow leader="Row1"/>         </subform>          <?templateDesigner expand 1?></subform>

Outlook Subject insert text from PDF form

$
0
0

Hi All,

Can you help me please?

I created a form in livecycle and in this form i created a "Text box" that people can insert any value and I also Created "Submitted by email" button.

 

When people hit "submitted by email" button, it  will attached this pdf form to outlook,

what i want to do is, At outlook subject will capture text  from the "Text box" that people insert the value.

Please see attachment

 

222.PNG

LiveCycle Designer 11es4 just exits.

$
0
0

I have created a new master template and then I load the master template when creating a new content form (For SAP S4 Hana), I then click on insert and select an object to insert but every time I select the object the program just exits and there are no error messages, I have re-installed LiveCycle Designer 11 es4 for SAP multiple times and the problem still persists. Please advise what I should do. Thanks

Viewing all 5571 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>