Access index table with FormCalc script langage in adobe lifecycle designer
Hi all,
I have some issue to hide a field in form adobe using FormCalc langage.
The link to the data is :
$record.DOCUMENTS.DATA[*].HEADER.EVALUATEUR_SECONDAIRE.NAME
On Each page of the Adobe form contains the data element of the line Document, it is ok :
$record.DOCUMENTS.DATA[1].HEADER.EVALUATEUR_SECONDAIRE.NAME
$record.DOCUMENTS.DATA[2].HEADER.EVALUATEUR_SECONDAIRE.NAME
$record.DOCUMENTS.DATA[3].HEADER.EVALUATEUR_SECONDAIRE.NAME
$record.DOCUMENTS.DATA[n].HEADER.EVALUATEUR_SECONDAIRE.NAME
Now, I just want to hide this data element if EVALUATEUR_SECONDAIRE.ID is initial, so i write a script at initialize event like this :
data.MAIN.Page1.Identification.Identification.ES ::initialize - (FormCalc, client) -
If ( not HasValue($record .DOCUMENTS.DATA[*].HEADER.EVALUATEUR_SECONDAIRE.ID)) then
$.presence = u201Chiddenu201D
endif
The problem is that FormCalc consider DOCUMENTS.DATA[*] as all the line of the table DOCUMENTS, I just want the current line of DOCUMENTS.
Please, do you have some solution ?
Thank's in advance.
Regards.
Johann
Rehello All,
After more tests, It seems that this solution doesn't work.
In fact, if $record.DOCUMENTS.DATA[1].HEADER.EVALUATEUR_SECONDAIRE.NAME is initial, the corresponding field doesn't appear on the form : correct but all fields bellow doesn't appear even if one of $record.DOCUMENTS.DATA[n].HEADER.EVALUATEUR_SECONDAIRE.NAME is NOT initial.
Inversely if $record.DOCUMENTS.DATA[1].HEADER.EVALUATEUR_SECONDAIRE.NAME is NOT initial the correponding fields appears on form, it's correct but.... all fields bellow appears even if one of $record.DOCUMENTS.DATA[n].HEADER.EVALUATEUR_SECONDAIRE.NAME is initial.
So, it's seems that the behavior of the differents elements DOCUMENTS.DATA[n].HEADER.EVALUATEUR_SECONDAIRE.NAME are the same that DOCUMENTS.DATA[1].HEADER.EVALUATEUR_SECONDAIRE.NAME.
Please do you have any solution to access to the current element ?
Thank's in advance.
Johann
Similar Messages
-
Error while accessing BSAD Table with dunning date
Hi ,
I developed a report for FI module accessing BSAD table with default customer ranges and for specific dunning dates - It ran for a very long time and timed out - (I know this is due to huge volume of data) -
Is there any way to access BSAD table easily with Dunning dates (Other than creating Index on it) ???
Or any standard function module available ??
Regards
Rajesh.Hi
Try the below tables for the dunning data details:
MHND Dunning Data
MHNDO Dunning data version before the next change
MHNK Dunning data (account entries)
MHNKA Version administration of dunning changes
MHNKO Dunning data (acct entries) version before the next chang
SKS -
How to modify field symbol of type Index Table with other field symbol of type any.
Hello Experts,
How is it possible to update an filed symbol table of type Index table with other filed symbol table.
e.g.
Field symbol : <lt_table1> type Index table.
Field symbol : <lt_table2> type Index table.
after some code...at run time these table filled like following.
<lt_tabel1 > has value fore column like c11 , c12 , c13
<lt_table2> has value for column like C11 , C12 , C13 , C14 , C15 . some extra values from <lt_table1>
Now I want to be modify <table1> one entires like C12 with <table2 > col C12.
how I can achieve this.
Regards,
Chetan.Hi,
did you try ASSIGN COMPONENT xx OF STRUCTURE <IT_TABEL1> TO <IT_TABLE2>.
xx will contain the number of the column
or maybe, if you have the description with a field catalog or other, that will be easier ..
regards
Fred -
Accessing synonym tables with jdbc
accessing synonym tables with oracle jdbc driver 9i
hi
i'm having a problem selecting, updating, inserting and retrieving metadata from synonym tables.
simple example is selecting from a table that is a synonym, i receive ORA-00942 table or view does not exist.
is there any way to access synonym tables using the oracle jdbc driver?
any help would be most appreciated.
thanks
TakisHi Mirco,
you can create your own function module to read TOA01 table and call this function module. It is a 5 minutes job of your ABAP programmer.
To read list of BAPIs existing in your system call transaction BAPI.
Generally there is no reason to read SAP tables. Think about 15.000 - 20.000 tables of standard SAP Web AS. No one is able to give you data model. You have to use business objects and their methods.
Jiri -
How to enable script debugger in adobe LC designer
Hi,
Can anybody tell me how to enable script debugger in adobe livecycle designer. Can we debug the java scripts in adobe desiger..if yes, then please let me know how do i do it.
I want to debug the code line by line.
Regards
SunilDesigner doesn't have a debugger like Acrobat.
The script editor can check only if the syntax is correct.
You generally can use the PDF-Preview to debug JavaScripts when Acrobat is your current PDF-Viewer.
Add this code in you script where you want to start debugging. It will call Acrobat's JS Console
debugger;
console.show(); -
Integrating adobe lifecycle designer 8.0 with SAPGUI
hello,
I have installed adobe lifecycle desginer 8.0 (which comes with adobe acrobat 8.0 . Now how can i integrate this within the SAPGUI and work on interactive forms. Anybody ?
Thanks,
Shehryar Daharhi,
Adobe Lifecycle designer for interactive forms comes as a bundle with the Netweaver installation.
its integrated with Netweaver itself.
my netweaver version # is 2.0.16
then you put a UI element called "interactive form" on your dynpro layout.
when you goto...
Interactive form -> Edit...
it takes you to the Adobe Lifecycle designer... where you can design your interactive form.
i hope this helps,
regards,
-Ag. -
Issues with Adobe LifeCycle Designer
Hi,
I m using Adobe LifeCycle Designer 7.0 with SAP NetWeaver 7.0.11 on windows XP.I m facing these 2 problems :
1. In my form i have few subforms.For those i have set Auto fit property as true,Expand to fit property is true ,Allow multiple lines property is true ,Allow Page breaks within content property is true & the layout is flow content.
If the complete data for 1 subform is shown in same page,it shows the complete data but if the data is split into more than 1 pages,its showing the data in both pages but it truncates some data.
e.g. Suppose 1 have a subform & in that 20 rows are available.If that subform split in 2 pages,it shows 10 rows in 1st page but in 2nd page it shows only 6-7 rows & truncates 2-3 rows from the last.I m not sure what can be the problem.
2. I m not able to put some extra space between 2 subforms while using Flow Content Layout.
regards
SumitTo create a form in the AcroForm format or LiveCycle Designer you will need Acrobat Professional as Standard does not have the form tools. Although LiveCycle Designer will export in the XML format. It is also possible to export form data from Acrobat in the XML format by using the XFDF format.
-
Issues with Adobe LifeCycle Designer & SAP Netweaver
Hi,
I m using Adobe Lifecycle Designer 7.0 with SAP NetWeaver 7.0.11 on Windows XP.I m facing these 2 problems in that.
1. I have few subforms in my form & for those i have set Auto fit property as true,Expand to fit property is true ,Allow multiple lines property is true ,Allow Page breaks within content property is true & the layout is flow content.
If the complete data for 1 subform is shown in same page,it shows the complete data but if the data is split into more than 1 pages,its showing the data in both pages but it truncates 2-3 lines at the end.I m not sure what can be the problem?
2. While using Flow content ,i m not able to put some blank spaces between 2 subforms.
regards
SumitHi Sumit,
You have probably worked this out by now but just in case anyone else has this problem (I remember how frustrating it was):
Just to point out this has nothing to do with NetWeaver (apart from the LiveCycle version it is using) only with LiveCycle.
Page flow will only occur within the parent subform so if you have an subform that is flowed it can only flow within the parent and if the parent is static (or positioned) then the child subform will appear to be cut off as it flows within its parent.
To be able to flow over pages you need to have all the parent objects right up the chain to the sub form that represents your page to be flowed as well.
The next challenge is to be able to position things the way you want them and flow your content. This is where you need to get a creative mix of positioned and flowed elements within your layout to achieve your goals.
Relating to the second question you can use the margin attributes to create space between two flowed objects.
Hope this helps (someone...)
Ben.
Ben Patterson
http://www.acclimation.com.au -
How do i lock all fields without using the signature function with adobe lifecycle designer 9
How do i lock all fields without using the signature function with adobe lifecycle designer 9 ...
I want it to have the same affect as when a signature is used but not use that function. I want a button that says lock all fields. And then you can click it again to unlock all fields...
ThanksHere you go!
LOCK the form once its SAVEd? -
Performance issue when inserting into spatial indexed table with JDBC
We have a table named 'feature' which has a "sdo_geometry" column, and we created spatial index on that column,
CREATE TABLE feature ( id number, desc varchar, oshape sdo_gemotry)
CREATE INDEX feature_sp_idx ON feature(oshape) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
Then we executed the following SQL to insert about 800 records into that table(We tried this by using DB visualizer and
our Java application, both of them were using JDBC driver to connect to the oracle 11gR2 database) .
insert into feature(id,desc,oshape) values (1001,xxx,xxxxx);
insert into feature (id,desc,oshape) values (1002,xxx,xxxxx);
insert into feature (id,desc,oshape) values (1800,xxx,xxxxx);
We encoutered the same problem as this topic
Performance of insert with spatial index
It takes nearly 1 secs for inserting one record,compare to 50 records inserted per sec without spatial index,
which is 50x drop in peformance when doing insertion with spatial index.
However, when we copy and paste those insertion scripts into Oracle Client(same test and same table with spatial index), we got a totally different performance result:
more than 50 records inserted in 1 secs, just as fast as the insertion without building spatial index.
Is it because Oracle Client is not using JDBC? Perhaps JDBC was got something wrong when updating those spatial indexed tables.
Edited by: 860605 on 19/09/2011 18:57
Edited by: 860605 on 19/09/2011 18:58
Edited by: 860605 on 19/09/2011 19:00Normally JDBC use auto-commit. So each insert can causes a commit.
I don't know about Oracle Client. In sqlplus, insert is just a insert,
and you execute "commit" to explicitly commit your changes.
So maybe this is the reason. -
I am trying to create tables using a script, but it seems like consecutive statments in the script will not execute --- can anyone tell me what syntax I need to use?
Here is my script - I am using SQL-Plus:
CREATE TABLE regions
( region_id NUMBER
CONSTRAINT region_id_nn NOT NULL
, region_name VARCHAR2(25)
CREATE TABLE countries
( country_id CHAR(2)
CONSTRAINT country_id_nn NOT NULL
, country_name VARCHAR2(40)
, region_id NUMBER
, CONSTRAINT country_c_id_pk
PRIMARY KEY (country_id)
ORGANIZATION INDEX
Here is what I key in:
SQL> get c:\oracle\test.txt
Here is the error that comes out:
1 CREATE TABLE regions
2 ( region_id NUMBER
3 CONSTRAINT region_id_nn NOT NULL
4 , region_name VARCHAR2(25)
5 )
6 CREATE TABLE countries
7 ( country_id CHAR(2)
8 CONSTRAINT country_id_nn NOT NULL
9 , country_name VARCHAR2(40)
10 , region_id NUMBER
11 , CONSTRAINT country_c_id_pk
12 PRIMARY KEY (country_id)
13 )
14* ORGANIZATION INDEX
15 run;
CREATE TABLE countries
ERROR at line 6:
ORA-00922: missing or invalid option
If I trim down the script - to just 1 create table command, no semi-colons, it works:
Script:
CREATE TABLE regions
( region_id NUMBER
CONSTRAINT region_id_nn NOT NULL
, region_name VARCHAR2(25)
Key in:
SQL> get c:\oracle\test.txt
1 CREATE TABLE regions
2 ( region_id NUMBER
3 CONSTRAINT region_id_nn NOT NULL
4 , region_name VARCHAR2(25)
5* )
SQL> run;
Recieve:
1 CREATE TABLE regions
2 ( region_id NUMBER
3 CONSTRAINT region_id_nn NOT NULL
4 , region_name VARCHAR2(25)
5* )
Table created.
adding a semicolon between the create table statements doesn't solve this issue - does anyone have any ideas?
Thanks,
-Tomtry using a file that ends with .sql instead of .txt
and use a semi -colon
CREATE TABLE regions
( region_id NUMBER
CONSTRAINT region_id_nn NOT NULL
, region_name VARCHAR2(25)
CREATE TABLE countries
( country_id CHAR(2)
CONSTRAINT country_id_nn NOT NULL
, country_name VARCHAR2(40)
, region_id NUMBER
, CONSTRAINT country_c_id_pk
PRIMARY KEY (country_id)
Consider using a spool file so you can check for errors at the end.
Or you can use a template like this:
-- 0 ---------------------------------------------------------------------------------------------
PROMPT
PROMPT REGIONS
PROMPT
---------------------------------------------------------------------------------------------------|
-- CREATE SECTION-------------------------------------------------------------------------------|
---------------------------------------------------------------------------------------------------|
CREATE TABLE REGIONS
( REGION_ID NUMBER
CONSTRAINT REGION_ID_NN NOT NULL
, REGION_NAME VARCHAR2(25)
-- INDEXES ----------------------------------------------------------------------------------------
-- SYNONYMS ---------------------------------------------------------------------------------------
CREATE OR REPLACE PUBLIC SYNONYM REGIONS FOR REGIONS ;
-- GRANTS -----------------------------------------------------------------------------------------
GRANT SELECT ON REGIONS TO SCOTT; -
How to activate script debugging in Adobe Livecycle designer
Friends,
I would like to know how to activate script debugging in the Adobe Livecycle designer. I need to debug the scripts written in the script editor.
Thanks and Regards.Syntax checking is available in designer from version 8.1 onwards.
If you want to enable in Adobe Reader then go to Edit --> Preferences --> JavaScript --> Enable the option Show console on Errors on messages.
Apart from it the alternative way to debug the scripts is to use xfa.host.messageBox and check the values.
Chintan -
Remove the current instance of a row in a table with formcalc using removeinstance
I am new to this and finding most of my answers in the Adobe Help or some other resources I have but this one has me stumped. I have a table, and a button to add rows. After rows are added and filled out I need users to be able to delete certain ones. I have a delete button added to the last column of me table, and the button works to remove an instance from the table, the issue is that the instance that is removed is the wrong one, it is always the first one not the row that the button is in. Can anyone help, here is what I have:
Table1._Row1.removeInstance(1)
I know the 1 isn't right, but what do I do to make it remove the current row the button is in.
Thank You!Hi,
The parameter for the removeInstance() refers to the index of the repeating row that you want to remove. This is a zero based index.
If you replace the 1 in the brackets with:
this.parent.index
It shoul work.
See an example here: http://assure.ly/gk8Q7a
Niall -
Help needed with FormCalc scripting in LiveCylce 8.0
I am new to the whole form design functionality in Adobe. I have a form that I have created that has multiple fields calculating off each other. I have managed to get all the fields to calculate correctly, but I'm having trouble figuring out the correct formula for one field.
After/during field 3 calculation, I need the value to return 1000.00 if greater than 1000.00 else return Field 3 amount.
Formula
Current
Calculations
Correct Calculation
Example 1
Correct Calculation
Example 2
Field 1 - Annual Salary (User enters)
100000.00
100000.00
30000.00
Field 2 - Weekly Salary (calculation is: field 1 / 52)
1923.07
1923.07
576.92
Field 3 - Benefit Maximum (calculation is: field 2 * .60)
1153.84
1000.00
346.15
Field 4 - Hidden Field (calculation is: field 3 - 100.00)
1053.84
900.00
246.15
Field 5 - Monthly Cost (calculation is: field 4 * .025)
26.34
22.50
6.15
Field 6 - Pay Period Cost (calculation is: field 5 * 12 / 26)
12.15
10.38
2.83
After/during field 3 calculation, I need the value to return 1000.00 if greater than 1000.00 else return Field 3 amount.
Any suggestions on how to get this to work? Tried setting this up using Java Scipt, but when I do, the fields dissapear alltogether.Hi,
You have to add the attribute to each item props, try this:
customerExitBeforeIpcItemsCreate(ItemPriceRequest[] iR, IPCItemProperties[] itemProps) {
for (int i = 0; i < itemProps.length; i++) {
Map theMap = itemProps<i>.getItemAttributes();
theMap.put(("ZZITM_USAGE", "Z010");
itemProps<i>.setItemAttributes(theMap);
Regards,
Ranko -
Script to Automatically change number to text with Adobe LifeCycle Designer ES 8.2
Hi there!
I am extremely new to FormCalc and scripting and I was wondering if someone can tell me if my query is possible, if so, please help me!
I would like for each time a user enters a number in a cell for the number to change to a letter or vice versa, please see below what I am trying to achieve with this task.
Score as follows:
A; Excellent, B; Good, C
English Test
Tutor 1 score
Tutor 2 score
Speaking
A
B
Reading
C
B
Writing
C
B
Forming an argument
B
B
English Grade = (Avg. Score)
Is this at all possible? Is there another way to do this so that it is easy and the student average grades can be easily generated?All you need to do is open the PDF in Pro and extend the rights to be able to fill, save and print.
To do this open the file in Acrobat Pro, File save as> Reader extended PDF > Enable additonal features
Voila!!
Maybe you are looking for
-
Hi i am having a i MAC which has mountain lion OS 10.8.2. I am facing teh followwing issues with my disk drive 1. I am unable to read all DVDS in it some DVDS work while others do not 2. I am able to read all CD's, but while burning a CD i am prompte
-
In the new Photos app how do you send a photo to the trash?
The old "move to trash" facility in iPhoto is missing from Photos. How do you trash a photo from the library?
-
Satellite A200-1PD - how to identify unknown device?
Which is the Windows XP driver for this device : HDAUDIO\FUNC_01&VEN_1002&DEV_AA01&SUBSYS_00AA0100& REV_1000\5&181BB7A3&0&0001 Thanks,
-
Modifying a service in a 3-node RAC database
Hello, I have a 3-node rac 10.2.0.4 here under Windows 2003 x64. I created, months ago, a service that have 1 preferred instance, and 1 available instance. Now I have to change it, so it does not have an available instance anymore, just 1 preferred i
-
kk ive just copied my old workspace in (had to reformat my computer) and i get the error that i need the mysql connector. Ive never got that error b4. ne way, i download teh connector, add it into the jars in the projects build path, but the error wo