Can I use a variable, all referring to a text field?
Hello
I have to settle for some fields readOnly property DYNAMICALLY (I mean, until the moment of execution, I do not know which fields are read-only and which are not? .
So I want to replace the TextField1 dynamically with all the fields in the syntax below. So, can we put a variable in the position of TextField1? If so, how can I do that?
xfa.resolveNode ("VISITOR. Page3.SubFrom1.TextField1') .access = "readOnly";
xfa.resolveNode ("VISITOR. Page3.SubFrom1. MyVariableComesHere') .access = 'readOnly ';
How can I put the variable in the Red position?
In details:
I have 5 fields, then I want to readOnly, then I hv to write as below,
xfa.resolveNode ("VISITOR. Page3.SubFrom1.TextField1') .access = "readOnly";
xfa.resolveNode ("VISITOR. Page3.SubFrom1.TextField2') .access = "readOnly";
xfa.resolveNode ("VISITOR. Page3.SubFrom1.TextField3') .access = "readOnly";
xfa.resolveNode ("VISITOR. Page3.SubFrom1.TextField4') .access = "readOnly";
xfa.resolveNode ("VISITOR. Page3.SubFrom1.TextField5') .access = "readOnly";
In fact, my requirement is differnent (I know at run time only... Wht wht fields I hv to set readOnly and wht wht fields should allow very good for entry), for this reason I want to use a VARIABLE in the 'position' of TextField1, TextField2... as bleow
$myvariable var
$myvariable = TextField1
Closure of the TABLE
xfa.resolveNode ("VISITOR. Page3.SubFrom1. myVariable') .access = 'readOnly ';
Pls. Let me know I can sue a variable like this? If so, what is the correct syntax (pls. Suggest me a free code to SYNTAX error, bcz am very very beginner to this)
Thank you
Thank you
You can use the following...
$myvariable var
$myvariable = TextField1
xfa.resolveNode ("VISITOR. (Page3.SubFrom1.' + myVariable + "") .access = "readOnly";
Thank you
Srini
Tags: Adobe LiveCycle
Similar Questions
-
What does this message mean?
"WARNING: incompatible Arg. you can't use stack Variables If generating series is undefined."
Where can I put generate series only?
Thank you
Derek
Hi Derek,.
Not all LabVIEW C Generator settings are compatible with each other. In this case, you must define generate series only (aka 'disable parallel execution') If you want to generate the code uses the variable stack.
-
Can I use a variable in a slider?
Version of DB 10g
Developer SQL 3.
Hi once again, everything
This post is a result of the post previous 'Sequence increment by 2 and not 1.'
Here's a quick run down of what I do.
We have historical records dating back decades and decades and decades (1900). Some of the most recent data were recorded in the worksheets. With some manipulation of data, it was possible to reorganize the data in its forms of entry in a flat file. These data were then imported into Access database, then using SQL Developer I made a data base for each access database connection and used copy for Oracle... tool to create a table in my flat file schema. In test data that I have right now that I copied the 5 access to Oracle databases and the results are five paintings called plot_84, plot_151 etc. I created a database that contains four main tables where the data from the flat files must be inserted, to standardize the it (I think the sentence is).
I with the help of a large number has been able to train the following anonymous block, and it works very well (with the exception of the question of sequencing).
But me being someone who loves jobs mind numbing again and again, and more (about 1000 times x, who knows) still wants something I can preload a list of arrays of flat file (5 in this example) and just not run it.DECLARE get_plot_measurement_id NUMBER; update_plot_measurements VARCHAR2(4000); get_tree_id NUMBER; get_plot_id NUMBER; BEGIN --1. Initiate insert process by getting PK from psp_plots SELECT plot_id INTO get_plot_id FROM psp_plots WHERE plot_name = 84; --2. Insert records into psp_plot_measurements and keep relationship with psp_plots with variable get_plot_id. -- and get primary key value of psp_plot_measurements to insert into psp_tree_measurements during loop process. INSERT INTO psp_plot_measurements (plot_id) VALUES (get_plot_id) RETURNING plot_measurement_id INTO get_plot_measurement_id; --3. Update record created at point 2. UPDATE psp_plot_measurements SET measurement_date = (SELECT DISTINCT measurement_date FROM plot_84) , codominant_height = (SELECT DISTINCT codominant_height FROM plot_84) , assessor = (SELECT DISTINCT assessor FROM plot_84) WHERE plot_measurement_id = get_plot_measurement_id ; --4. Open cursor to insert rows one at a time and maintain relationships between related tables. FOR c1 IN (SELECT tree_number FROM plot_84 ) LOOP --5. Insert record into psp_trees -- and get primary key value of psp_trees to insert into psp_tree_measurements INSERT INTO psp_trees (plot_id, tree_name) VALUES (get_plot_id, c1.tree_number) RETURNING tree_id INTO get_tree_id; --6. Insert records into psp_tree_measurements and keep relationship with psp_trees with variable get_tree_id. INSERT INTO psp_tree_measurements (plot_measurement_id, tree_id) VALUES (get_plot_measurement_id, get_tree_id); END LOOP; END; /
The problem is the following:
Can I use a variable in a cursor, how are hilighted in bold below.
"BOLD" has not worked is the bit of code FOR c1 IN (SELECT tree_number FROM plot_ | col_name_var) you will see just under point 4 below
Reviews on my welcome code.DECLARE p_column_num NUMBER; col_name_var VARCHAR2(30); type number_ptb IS table OF VARCHAR2(4000); p_column_nam number_ptb; get_plot_measurement_id NUMBER; update_plot_measurements VARCHAR2(4000); get_tree_id NUMBER; get_plot_id NUMBER; BEGIN p_column_num := 5; p_column_nam := number_ptb(); p_column_nam.extend(6); p_column_nam(1) := 84; p_column_nam(2) := 151; p_column_nam(3) := 152; p_column_nam(4) := 214; p_column_nam(5) := 283; FOR loop_int IN 1 .. p_column_num LOOP col_name_var := p_column_nam(loop_int); --1. Initiate insert process by getting PK from psp_plots SELECT plot_id INTO get_plot_id FROM psp_plots WHERE plot_name = col_name_var; --2. Insert records into psp_plot_measurements and keep relationship with psp_plots with variable get_plot_id. -- and get primary key value of psp_plot_measurements to insert into psp_tree_measurements during loop process. INSERT INTO psp_plot_measurements (plot_id) VALUES (get_plot_id) RETURNING plot_measurement_id INTO get_plot_measurement_id; --3. Update record created at point 2. update_plot_measurements := ' UPDATE psp_plot_measurements SET measurement_date = (SELECT DISTINCT measurement_date FROM plot_' || col_name_var ||') , plot_size_10_30cm = (SELECT DISTINCT plot_size_10_30cm FROM plot_' || col_name_var ||') , plot_size_30_50cm = (SELECT DISTINCT plot_size_30_50cm FROM plot_' || col_name_var ||') , plot_size_50cm = (SELECT DISTINCT plot_size_50cm FROM plot_' || col_name_var ||') , codominant_height = (SELECT DISTINCT codominant_height FROM plot_' || col_name_var ||') , assessor = (SELECT DISTINCT assessor FROM plot_' || col_name_var ||') WHERE plot_measurement_id = ' || get_plot_measurement_id ; EXECUTE IMMEDIATE update_plot_measurements; --4. Open cursor to insert rows one at a time and maintain relationships between related tables. FOR c1 IN (SELECT tree_number FROM plot_|| col_name_var ) LOOP --5. Insert record into psp_trees -- and get primary key value of psp_trees to insert into psp_tree_measurements INSERT INTO psp_trees (plot_id, tree_name) VALUES (get_plot_id, c1.tree_number) RETURNING tree_id INTO get_tree_id; --6. Insert records into psp_tree_measurements and keep relationship with psp_trees with variable get_tree_id. INSERT INTO psp_tree_measurements (plot_measurement_id, tree_id) VALUES (get_plot_measurement_id, get_tree_id); END LOOP; END LOOP; END; /
Ben
Published by: benton on Sep 1, 2011 11:31
Published by: benton on Sep 1, 2011 11:32
Published by: benton on Sep 1, 2011 11:34with your current model, you need to write once for each table or write dynamic SQL regardless of the bulk of collect. adding most collect simply means you can do all the inserts in a single step and generally average performance benefits (see docco to COLLECT in BULK and for ALL).
However, it is not really solve your problem.
can I suggest an ETL step where you move all of the data in a table, then cross and run this function on all resulting?
-
IE 9 beta was not installing properly and now I can't use IE at all... How can I remove this version and reinstall IE 8?
I tried the MS site, nothing helps.
back to the restore point and still have problems.
internet access through backdoors on the emails.
How to uninstall IE9 Beta?
http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/7250c2d2-20e1-4F0A-8056-4a6abd9a0f9bIf you still have questions, please ask the in Forum Internet Explorer
http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/threadsBruce Hagen
MS - MVP October 1, 2004 ~ September 30, 2010
Imperial Beach, CA -
Hello
How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?
Thank you
Jay.
Select the connection and right-click on it and select schema statistics collection
-
Hello, I have 1 year subscription, but I can't use it. All software is 30 days trial. What can I do to activate my subscription?
Check your account indicates the subscriptions that you expect (and that the adobe, used in the next step id is correct) by logging in here and checking the status of your subscription, https://www.adobe.com/account.html
then, if it's current, disconnect and then back to your client application using the adobe with the link above in cc id: http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-
can I use my C3180 all-in-one with windows 7?
can I use my C33180 all-in-one with windows &? and if yes how I have set up?
Yes you can, you can download drivers from here
Also, click Start and then right-click on computer and left click on properties to find out if you have 32 or 64 bit Windows 7.
-
can we use repository variables in bi publisher as in answers
can we use repository variables in bi publisher as in answers
If possible, howYes,
but you should use Oracle BIEE as data source in order to use the variable in the repository
you will need to follow the following syntax: valueof ("variable")
-
Can I use a variable of environment inside a *.sql file?
Hello
I want to create an external table.
Then I use the command
create or replace directory abc as "C:\folder"... within a sql file.
Now, I want "C:\folder" way to be dynamic I use this path in many other places also inside the sql file. So I thought to create an environment variable and set this value. I tried using like %Path% but it gives error... where % PATH%=C:\folder.
Can I use a variable of environment inside a *.sql file?
But how to do it or is there another way.
Thank you
Olivier
Published by: user11018268 on February 19, 2010 01:03You can use a variable substitution:
SQL> accept basedir prompt "input the base dir: " input the base dir: c:\exp SQL> create or replace directory exp as '&basedir'; old 1: create or replace directory exp as '&basedir' new 1: create or replace directory exp as 'c:\exp' Directory created. SQL> create or replace directory exp_data as '&basedir\data'; old 1: create or replace directory exp_data as '&basedir\data' new 1: create or replace directory exp_data as 'c:\exp\data' Directory created. SQL> create or replace directory exp_log as '&basedir\log'; old 1: create or replace directory exp_log as '&basedir\log' new 1: create or replace directory exp_log as 'c:\exp\log' Directory created. SQL> select DIRECTORY_NAME, DIRECTORY_PATH 2 from dba_directories; DIRECTORY_NAME DIRECTORY_PATH ------------------------------ ------------------------------ EXP_LOG c:\exp\log EXP c:\exp EXP_DATA c:\exp\data
Max
http://oracleitalia.WordPress.com -
How can I add white space between areas that contain text fields?
I use Adobe Acrobat Pro DC 2015.
I'm trying to change an existing PDF. I need to add white space between areas that contain text fields to allow these areas to be developed and do not overlap the text and the text below fields.
For example:
- 1.
Progress/strategies:
- 2.
Progress/strategies:
- 3.
Progress/strategies:
- 4.
Progress/strategies:
The space between each 'progress/strategies' increasing needs. A text field is under each of them. If it's a Word doc, I could just press on enter. What is the best way to do this with Adobe Acrobat Pro DC?
There is no easy way to do it. You need to move the text fields more apart and if there are static elements, then you will need to use the tool edit text & Images to move them, separately.
-
How many times can I use a variable binding in a query of the VO?
Is it possible that I can use a variable binding in a query of VO just once?
I test a query that keeps throwing the Houston-27122 error by pressing the application module tester. I tried to limit the problem to the simplest possible case, and it seems that the error is caused by the fact that I use the same variable bind two or more times.
When the query looks like this:
I have run, enter 'x' and it returns me the result.
When I change to:
I have run, enter the value
and immediately get the error
The same thing in sqlplus runs without problem:
My version of JDev is build JDEVADF_11.1.1.9.0_GENERIC_150314.0718.6673
Please, advise.
P. S. where can I find documentation queries are supported in your? In particular, I'm interested if I can use WITH the clause. There seems to be some confusion on this matter (see, for example, Oracle SQL WITH clause support - JDeveloper and ADF)
Thank you.
It depends on:
Open your VO in JDev and go the the query page.
In the lower part, there is a drop down 'link type', it is usually set to "JDBC-positional. In this case, you will need to provide the bind value for each occurrence of the variable binding separately.
You could change that to "named" (don't remember the exact name). But beware, this will also affect all relatioships master retail to others your. I think that this is not a good idea to change the style of binding to a single VO.
Good bye
DPT
-
Can I use session variables in data model BI publisher SQL query?
Hi Experts,
We apply security at the level of the BI Publisher 11g data.
In OBIEE we do so using session variables, so I wanted to just ask if we can use the same session variables in BI Publisher as well
That is, we can include a where clause in the SQL for the sample data as
Where ORG_ID = @{biServer.variables ['NQ_SESSION.]} {[INV_ORG']}
I would like to know your opinion on this.
PS: We implement security EBS r12 in BI Publisher.
Thank youRead this-> OBIEE 11 g: error: "[nQSError: 23006] the session variable, NQ_SESSION.» LAN_INT, has no definition of value. "When you create a SQL query using the session NQ_SESSION variable. LAN_INT in BI Publisher [ID 1511676.1]
Follow the ER - BUG: 13607750 -NEED TO be able TO SET up a SESSION IN OBIEE VARIABLE AND use it IN BI PUBLISHER
HTH,
SVS -
Can I use a variable in step of TS Message for field 'waiting time '?
Is it possible to use a variable (inhabitants, parameters, etc.) for the field "Wait time" in the stage of message TestStand?
TestStand 4.1
Thank you
Rafi
Go to the step settings > properties > Expressions > Expression Pre and enter something like:
Step.TimeToWait = Locals.MyTimeToWait
-
How can I use it in the action script. My VB code is more
Encoding.UTF8.GetBytes ("String") and System.Text.Encoding.Default.GetBytes ("char table")
Thank you. !
Udit Bhardwaj
I love the way to convert as a result
Encoding.UTF8.GetBytes ("String") is in ActionScript:
YourByteArray.writeMultiByte ("String", "iso-8859-1");
And
System.Text.Encoding.Default.GetBytes ("char table")
YourByteArray.writeMultiByte ("String", "String");
Thank you for your suggestions to moccamaximum
Thank you!
Udit Bhardwaj
-
Can you do an all upper or lowercase text field dynamically?
Of course, you can do it with a string - toUpperCase() or toLowerCase() - but can you do a high text field dynamically or capital? I can't find anything online that has to do with text fields, only strings.
Thank you!
Edit the string in the TextField...
TF. Text = tf.text.toUpperCase ();
Maybe you are looking for
-
links and bars research on top of half of the pages do not work and is not that I click on them and they don't work, but it won't let me click on it it's like he doesn't see the
-
Looking for a way to export bookmarks in a real folder
I searched through google, addons, support and haven't found anything that fits. I expected to find a way to export all my favorites (especially my favorites to bookmarks bar) to a real folder (not a file). This would allow me to better manage my fav
-
Satellite P20 - 504 shutting down / crashing during playback of Medieval: Total War
Salvation; I run a game program, (Medieval: Total War) that sporadically stops or freezes / crashes my laptop. Sometimes it works OK and sometimes it crashes. I think it might be a graphic driver problem nVidia, even if I run other programs of game w
-
Get the message - "Unable to create my object of security" when open My Safe
Whenever I try to open the folder 'my safe' I get this message... Cannot create my safe view object.My chest cannot be unlocked, because its data file is currently in use or has just been used by another application. Unlocking cannot continue until t
-
Cannot install Epson Photo R300 printer on Wndows XP
I have an Epson Photo R300 printer which I'm unable to install on my windows XPS. I don't have an installation disc and my system has recently been wiped and restarted. The installation wizard does not include the R300 model. Please notify. R. beck