How to pass variables in Flex?
I have a form that calls an HTTPService (getEmployee), and that the service uses the employeeID variable:< employeeID > {employeeID.text} < / employeeID >
In another State, I have a datagrid displaying a different HTTPservice employeeID. This DataGrid, I want that the user click the ID that will pass the States and call my HTTPService getEmployee
The only way I know to move from this datagrid is to have my "getEmployee" reference HTTPservice
< employeeID > {dgIncumbent.selectedItem.employeeID} < / employeeID >. I can't create a different service because other grids rely on the data provider "getEmployee".
What I need is to call the same "getEmployee" HTTPService, which accepts a value that is either "{dgIncumbent.selectedItem.employeeID}" or "{employeeID.text}".
"braseth"
How bout [Bindable] private void onDgItemClick(e:ListEvent) {} private void onEmployeeIDChange(e:TextEvent) {} Then bind your service to the variable. HTH; Amy
News:g91l46$KrF$1@forums. Macromedia.com...
> I have a form that calls an HTTPService (getEmployee) and that the service
> uses
> employeeID variable:
>
>
>
> I have a datagrid in another State, that of a different HTTPservice
> poster
> employeeID. This DataGrid, I want the user to click on the ID which
> will be
> States and display my HTTPService getEmployee
>
> The only way I know to move from this datagrid is to have my "getEmployee".
> Reference HTTPservice
>
> create a different service because the other schedules are based on the "getEmployee".
> data
> provider.
>
> What I need is to call the same "getEmployee" HTTPService, which accepts a
> value that is either "{dgIncumbent.selectedItem.employeeID}" or
> "{employeeID.text}".
>
public var eID:Number;
eID = e.currentTarget.selectedItem.employeeID;
}
eID = Number (employeeID.text);
}
Tags: Flex
Similar Questions
-
How to pass variable frame 1 throughout a swf file?
Hi guys,.
How to pass variable frame 1 throughout a swf file? -Including executives more later and their children?
Thanks in advance
Mike
I'm not sure what you mean by variable pass in a swf, but to make it available throughout the timeline you place in a layer that extends along the timeline.
-
How to pass variable from bean to resourceID for the document map?
Hello experts, I have added WebCenter workflow Microsoft document explore task in my ADF which as a parameter called resourceId. I want to pass variable bean to this setting, because the content ID (doc name or ID) are determined dynamically.
When I provide ${"UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI"} as a resource in the expression ID, it works very well. But samething if I attribute to a bean bean variable and entitlement in the form ${sessionScope.MyBean.docName}, it evaluates the variable bean in the form ${"UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI"} and then below throws the exception:
[2013-10 - T 02, 14: 34:50.369 - 04:00] [DefaultServer] [WARNING] [WCS-07219] [oracle.webcenter.doclib.internal.view.backing.ContentProvider] [tid: [ASSETS].] [ExecuteThread: '10' for the queue: "(self-adjusting) weblogic.kernel.Default"] [username: anonymous] [ecid: d50192415c689920:-7d97126c:1417a5d6a49: - 8000 - 000000000000008 a, 0] [APP: CreateContactWSProxy] invalid parameter combination: the login name specified by resourceId = ${"UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI"} is not specified in the parameter connectionName = UCM57Server.
Variable bean is defined as:
private String Nomdoc = "${" UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI "} ;
Please give me some advice on how to pass the value to resourceId dynamically via the variable of bean.
Thank you.
private String Nomdoc = "UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI";
Without $ {}
-
How to pass variables by using the command line when starting from a native application ActionScript
How to pass in variables or arguments to start using the command line when starting a native ActionScript application? For example, I have my app MySweetWidget call and it was compiled with Adobe AIR runtime in captivity so now I have MySweetWidget.exe.
In the command line, I call MySweetWidget.exe and would like to pass in variables or properties of the application. I guess that these variables are read from the loaderInfo.parameters object.
Please let me know if the Adobe AIR runtime supports passing the parameters to native execution. If so, I would like to help determine the correct format of how pass variables. So would you want to read those loaderinfo.parameters object?
Thank you
Jeff
I found the answer to my own question:
Yes, it's a feature supported. It is documented on the following page:
When you subscribe to the event from the NativeApplication invoke it will subsequently send the event and you read the table of e.arguments object to get the start in the native application arguments.
-
How to pass variables in different QML
hand code. QML:
import bb.cascades 1.2
TabbedPane {}
ID: tabnav
property string book_path;.........
onTriggered: {}
clearSelection();
Select (row);
var point = dataModel.data (row);
If {(point)
book_path = maincfg.bookpath + item.text; (, book_path'm happy Get)
var kvbookview1 = kvbookview.createObject ();
NAV.push (kvbookview1);
}
}
}
attachedObjects:]
{ComponentDefinition}
ID: kvbookview
Source: "kv_book_view.qml".
}
].........
Code of kv_book_view. QML:
import bb.cascades 1.2
{Page}
ID: Discovers;.........
onCreationCompleted: {}
Text3. Text =? (how to get variables from book_path to main.qml)
}Thank you
Simon has given you the solution:
import bb.cascades 1.2 Page { id: view; ......... onCreationCompleted: { text3.text = tabnav.book_path }
-
How to pass variables to the basket to your fund information?
Here's what I have to do.
I have a site that sells the same products to several groups of people.
When a customer enters our site that they need to choose what 'group', they belong to.
Based on this selection of some of the images, text and links on the pages are customizable (I can do this without problems using a combination of passing parameters through the URL, and writing based on cookies).
My problem is when I get the extraction are the cookies that I wrote do not give because the url changes to the worldsecuresystems.com.
I tried everything I can think of to try to get the information stored in the basket page to transfer to the payment page.
I basically need to spend the 2 pieces of data based on {{globals.cookie.creditunion}} and {{globals.cookie.group}} in the cart at checkout it is added to the CMS or order somewhere.
I hope that makes sense.
James
Hi James,
Just like Mihai said, pass variables by using the url in the payment button.
Use the liquid version to create a payment button, here is an example:
Afterwards, you should be able to go to globals.get.creditunion or globals.get.group
Good luck
Stoiky
-
How to pass variables from cursor to a job
Hello
begin for cur_1 in (select tab1.c1 c1 from tab1) loop dbms_scheduler.create_job(...... .......... job_type =>plsql_block, job_action => 'declare verrm varchar2(100); '|| ' begin for cur_2 in (select col1,col2 from tab2)'|| 'loop prc( cur_1. c1,cur2.col1,cur.col2 ); end loop; end;' ,----- gettin gerror undeclared identifier cur_1.c1 ........) end loop;
user8731258 wrote:
When reading about dbms_parallel, I have seen examples where the task is running an sql statement.
Now, can we run a pl sql also block?Why would you run a PL/SQL block in parallel?
Yes, the DBMS_PARALLEL_EXECUTE. Run_Task() sql_stmt parameter can accept an anonymous PL/SQL block as statement. For example
--// example of passing a PL/SQL anon block as statement declare .. begin ..code.. parallelSql := 'declare t1 timestamp; begin t1 := SysTimestamp; update foo_tab set obj_type = lower(obj_type) where rowid between :start_id and :end_id; ProcessLog( fromTime=>t1, toTime=>SysTimestamp, rowsProcessed=>SQL%RowCount ); end;'; DBMS_PARALLEL_EXECUTE.Run_Task( task_name => taskName, sql_stmt => parallelSql, language_flag => DBMS_SQL.NATIVE, parallel_level => 5 ); ..code.. end;
However, if you want code PL/SQL real multithreaded (no SQL), then that can be done using a parallel pipeline table function (PL/SQL function).
So, I'll go for dbms_Scheduler thing. But still when I'm stuck on how to pass the value of date to work...
In the example I posted using DBMS_JOB - cursor loop identifies the days of treatment. The loop then call ScheduleJob() to schedule a task of process to date. This procedure should look something like the following:
// schedules a job to run procedure ProcessDailyInvoices for the specified day create or replace procedure ScheduleJob( day date ) is jid number; dateParam varchar2(100) default 'to_date(''$DATE'',''$FORMAT'')'; plsqlBlock varchar2(1000); begin dateParam := replace( dateParam, '$DATE', to_char(day,'yyyy/mm/dd') ); dateParam := replace( dateParam, '$FORMAT', 'yyyy/mm/dd' ); plsqlBlock := 'begin ProcessDailyInvoices( day=>'||dateParam||' ); end;'; DBMS_JOB.Submit( job => jid, next_date => sysdate, what => plsqlBlock ); end;
-
How to pass variables bind to select query
Hello
I use jdeveloper 11.1.1.6.0 version.
My use case is - I want to change the settings of the select clause dynamically
For example
My view of object query is as follows:
where FN_GET_ALFA_MESSAGE_DETAIL_SEQ is the name of function.SELECT FN_GET_ALFA_MESSAGE_DETAIL_SEQ(1,2) FROM DUAL
I want to pass parameters at runtime instead of 1 and 2 as a and b.
So, how can I pass dynamic parameters (bind variables) in the display object during execution of the select clause.
Published by: 925410 on January 7, 2013 18:25Hello
You may have two bind variables (note that bind variables are always preceded by a colon in the query) as below:
SELECT FN_GET_ALFA_MESSAGE_DETAIL_SEQ(:bind_var1,:bind_var2) FROM DUAL
Then, follow the following steps:
1. create two variables of the same names liaison in the variables section of Bind in the query tab of the VO
2 2 disposer have a method in the class Impl of Module of the Application and within this method, pass the values of these bind variables as below:Impl vo = null; vo = get 1(); vo.setNamedWhereClauseParam("bind_var1", ); vo.setNamedWhereClauseParam("bind_var2", ); vo.executeQuery(); 3 expose this method of the the module interface of the client Application, then the method will be visible in the section data when updating controls.
4 use the method to run the original Version of data controls you want :)Kind regards
Seddik -
How to pass variable separated by commas in the bind value of VOquery?
Version 11.1.1.3.0
The guys need to help you on this
I have a VO with query somethg as below
SELECT *.
FROM a schema. Table-name
WHERE (: Bind_Varible has the value null or Column_Name IN (: Bind_Varible))
User will be be select several values of the screen and I need to pass these value above bind variable.
But in the variable binding ADF take everything as a single string, then, how can I pass values separated by commas?
As SELECT *.
FROM a schema. Table-name
WHERE (: Bind_Varible has the value null or Column_Name IN (99,55))
Thank you
Any help will be appreciatedI put mine up in this way, my binding variable is a list of values separated by commas, that is to say ("A, B, C, D") (I have a select that many shuttle) then I used a regexp substr to turn them into a list
WHERE :Bind_Batch_NM_Comma_Sep_List IS NULL OR batch_nm IN ( SELECT REGEXP_SUBSTR (:Bind_Batch_NM_Comma_Sep_List, '[^,]+', 1, LEVEL) batch_nm FROM DUAL CONNECT BY LEVEL <= REGEXP_COUNT (:Bind_Batch_NM_Comma_Sep_List, ',') + 1)
Published by: pollywog on September 18, 2012 16:07
-
How to pass variables to idoc html?
Hello
I'm going through user input to HTML (for example the list of parameter values 'Faculty of the student')"to the script idoc to do a database query and retrieve related information student?
Anyone have an example on how to do this...
Kind regards
AAQHey ayman.
Take a look at this post for some good info on how to reach some parts of what you are looking for: http://cfour.wordpress.com/2010/05/28/how-to-adding-an-external-database-lookup-to-a-ucm-checkin-form/
To more directly answer your questions, you need to do is pass the value as a query parameter in the URL. The content server analyzes all query parameters into variables in the portion of local data of the DataBinder. Which means that in the idoc on a page of the Site Studio, you have direct access to the value of the parameter as follows:
I'm going to assume on your page, you were going to make a call to executeService in the query on the database. If you use a resource of application under this call to service, all you have to do is make sure you that you are querying the resource definition has the same name of variable as the value passed in.
Hope that helps,
Andy Weaver - Senior Consultant software
Fishbowl Solutions< http://www.fishbowlsolutions.com?wt.mc_id="L_Oracle_Consulting_amw_OTN_ECM"> -
How to pass variables between Labview and Teststand
It is probably a trivial question, but I'm new to TestStand. All I'm doing is updated to a variable in Labview and then pass this value in a local variable Teststand. A simple test that VI is attached. I get no error and it seems correct, but when I followed the variable via TS watch display is not updated. Also I am not able to read the variable outside TS. It is probably a trivial thing, I'm doing wrong, but I'm stuck.
Too bad, it was simple. Just need to add the context of sequence as input, then set it to ThisContext TS
-
OOP - how to pass variables between the branches of the object, but not instances of VI
I have a main VI where a thread object goes through some subVIs initialization and then branches off into several parallel loops. My understanding is that each branch becomes a separate instance of the object. Data is passed between the loops using global variables, wrapped in the accessors (I can change this if someone has a better approach - reducing to a minimum the memory and the CPU usage is very important).
I need to have a large number of instances of the main VI running at the same time. What would be the best way to ensure that the data transmitted between the loops of one instance of VI do not interfere with the data transmitted between the loops of another instance of VI?
Thank you for your understanding.
Ah, you're right. Stupid mistake on my part. It's all working now. The corrected code is attached.
-
Hi all
My name is Alessandro and I am new to the community.
I have a problem with the KM stage custom when I try to pass the variable from the source to the target.
The ODI version tha I use is the 11.1.1.5.0.
I created a stage KM following the instructions of the metalink document (Doc ID 728636.1).
But when I insert the value of the variable in a test table, the value in a table is the name of the variable.
Where I'm wrong?
I am doing thi.
(1) create a step in my goal of shell sql source and javabin KM. In the source tab I get the value of a query, and the name "LAST_UPDATE" column.
In the target tab, I attribute to the variabile jv_last_update the value of the variable #LAST_UPDATE, with the same name in the selection column.
(2) I created a second stage where I insert into a table of the value of the variable jv_last_update (to debug the value of the variable):
(3) when I try to see what I have in the table, the value of any line is the name of the variable "#LAST_UPDATE"; ".
Thanks in advance
AlessandroHi Alessandro,.
Interesting... I have not read the Oracle document you sent yet, but one thing I can guarantee you, is that it doesn't. If Oracle says that it should work, maybe it's a bug, or maybe he has changed on new versions of ODI. I am also on ODI 11.1.1.5 and I tried many different ways to pass SQL results to variables of java with all sorts of different labels, but none of them worked for me as well. But I managed to use it in a different way, so please see below if it matches your needs:
We are just one step. The second is just to show that it worked:
In the first step, on the source tab, select Oracle and point to the logical schema that you want to run the query:
On the target, note the following Java BeanShell code with the SQL that you want to run:
Now your variable must have the correct value of your SQL. To test it, I just write a comment 'Raise' to Jython in the second step:
The result is 'X' as expected:
It will be useful.
Thank you!
-
How to pass variables to repository for the title of obiee 11 g
all I am trying to create a reprot and format of this report is
TEST REPORT
range of month: 04/01/2012-04/30/2012.
How can we get this date range in view of the title.
Any suggestions?Hello
For session variables:
@{biServer.variables ['NQ_SESSION.variablename']}For variables of repository:
@{biServer.variables ["variablename"]}Try this syntax in the view title it should work.
-
How to pass variables between scripts in OpenScript
I have a script that calls two nested scripts. A single script creates an account number and the other script uses this account number.
MainScript:
RunScript: Script1-> 'account number '.
RunScript: Script2 <-"account number".
What would be the most effective way to pass a variable to the main script to the secondary ones. OpenScript there overall (or maybe environment) variable I could use?Hello
You're right OpenScript variable will be visible from any script, note however that you will not see them in the list of proxy using the user interface, you need to change the name of the parameter and use the syntax of variables * {{nomvar}} * in any script.
Concerning
Alex
Maybe you are looking for
-
Thunderbird crashes when you click the link in the email.
Thunderbird v31.4.0Linux Mint Debian Edition 3.1.2 - amd64Cinnamon 2.0.14 When you click on a link in an email, the system hangs and the screen displays jagged, diagonal lines. Cold start is required. This can be repeated. Same results running in Mod
-
I use the latest version of firefox, use it awhile.recently, he began to act up, where I get it open, then shut down for one reason or another and he won't start at all (which gives the indicated response).I did a batch file to kill the process for m
-
How to analyze the dump memory to a server file
I had a problem on Windows Server 2008 R2. A few weeks ago server was shut down unexpectedly, and he created the dump file to crash on a server (memory dump). The file size would be more than 3 GB. Please help me on this issue.
-
Cannot install for vista 32-bit update (KB974306)
I can't install on Microsoft site, this update (KB974306). I have windows vista 32 bit. This came to my attention by failing to my automatic updates as initially planned. Please advise me on what to do. Very new to the use of the pc in general. How e
-
xp pro Setup cannot copy modem.sys
Hi you During the installation of Windows XP PRO, he stopped saying DO COPY MODEM. SYS. I can't get the pen. Any help will be appreciated. TKS. Rechiene.