How do I prepopulate a bind variable from a session variable?
Hello. I have a scenario where I have a customer Id I need to set as the bind variable and then execute the query before the page comes up. How do I do this? Here's what I've tried (and why it didn't work)
- I tried using the 'ExecuteWithParameters' method from the view object as a method in the task flow. I would then pass in the session variable as a parameter. For some reason it can never find the executewithparameters method on the view object. I'm guessing because it wants to go through the application module
Next ...
- I created a client method in the AM call setCust Id with the following code:
public void setUserNameBind(String userName)
System.out.println("Set param:" + userName);
getFndUserVVO1().setNamedWhereClauseParam("UserNameBind", userName);
getFndUserVVO1().executeQuery();
This worked. However when I ran the debug it instantiates the VO again but with a NULL for the bind parameter. So on the screen it always has the NULL VO.
Finally ...
- I tried to put the method in the binding for the page as a method call. However, the method never got called before the page came up.
This seems like a pretty simple problem. Any ideas?
Thanks!
Hi,
1 - create a bind variable and add it to the ViewObject query
2 - drag the ExecuteWithParams operation under the ViewObject (DataControl Palette) to the page
3 - this is created as a button. In the source editor (NOT THE VISUAL EDITOR), delete the button so the binding remains
4 - for the bind variable in the ExecutWeithParams, set its value to #{sessionScope.attribute_name}
5 - in the bindings file, under executables, create an "invokeAction" entry and point it to the executeWithParams operation
Frank
Similar Messages
-
Request variable not overriding session variable in report filter
I have a dashboard edit prompt that saves value into a request variable with same name as session variable.
The session variable has "enable any user to set the value".
I have a filter in the report that has been converted to sql where the transaction date is greater than the value entered in the prompt.
I see the "SET Variable" clause at the top of the sql being sent to the server in the logs.
However, when I am in "View Logs", I see that the sql that is being sent to the database is sending the original value of the session variable instead of the new value in the request variable.
I have tried using VALUEOF(NQ_SESSION.variablename), VALUEOF(variablename), VALUEOF("Dynamic Initialization Block Name"."variablename"), @{biServer.variables['NQ_SESSION.variablename']} with no difference.
What am I doing wrong?user4006070 wrote:
I have a dashboard edit prompt that saves value into a request variable with same name as session variable.
The session variable has "enable any user to set the value".
I have a filter in the report that has been converted to sql where the transaction date is greater than the value entered in the prompt.
I see the "SET Variable" clause at the top of the sql being sent to the server in the logs.
However, when I am in "View Logs", I see that the sql that is being sent to the database is sending the original value of the session variable instead of the new value in the request variable.
I have tried using VALUEOF(NQ_SESSION.variablename), VALUEOF(variablename), VALUEOF("Dynamic Initialization Block Name"."variablename"), @{biServer.variables['NQ_SESSION.variablename']} with no difference.
What am I doing wrong?When you created the prompt, did you make sure you set the variable type to Request variable? -
How can I change my Shared Variable from "I/O Variable" to "Network Published"
Hello,
I have an application that is using a series of NI wireless sensor nodes. I am trying to programmatically access shared variables. Right now the only method I have found to access the data from the shared variables is datasocket read. I am on labview 8.6.1 so I don't have as many shared variable options as newer versions of labview. I do think there is a way to access properties for the shared variables, but I'm not sure about how to change the nodes channel properties to "Network-Published". Do i need to remove the node from the project and bring it back in with the new settings? When i have done this in the past i have run into naming conflicts. I would appreciate any ligtht that can be shed on this issue that will help me create a vi that operates quicker.Any Shared Variable that has “I/O Variable” for its Variable Type (see screenshot of the Shared Variable Properties below) refers to any channel of data (such as Analog Input or Output or Digital Input or Output) directly from a module channel. In other words, this is how you directly get the raw reading straight from (or to!) a specific module channel.
You cannot edit the Variable Type to Network Published. You can check “Enable Network Publishing” as above, which allows this Variable to be accessed from a VI on a Host VI. You could also create a separate Network-Published Shared Variable which you can wire directly to the I/O Variable on the Target VI if you wish.
Best,
Ryan C.
Applications Engineer
National Instruments -
How to read in director protected movie from main director variable
Hi All
Please help me. I'm beginer in director.
I made a project with director movie.
I've main director movie and other movie are protected.
I'm declare global variable in main director movie. I want to
read variable from main movie within director protected movie.
In main movie
on exitFrame me
global DirVal
DirVal = "1234"
end
In Protected director movie
on exitFrame me
If DirVal = "1234" Then
goToFrame(10)
Else
goToFrame(1)
End If
end
But it's doesn't work in Protected director movie. Can you
please write to me.you need to declare the variable as global in the protected
movie :
on exitFrame me
global DirVal
If DirVal = "1234" Then
goToFrame(10)
Else
goToFrame(1)
End If
end
hth
Ned -
How to use request variables rather than session variables
Are there any good examples? , I am constantly adding too many session variables in the fear they will get 'crossed over'.
Like when you spawn new windows.
how to refresh a page when the variable was passed on the URL.?
A guide with all the varible passing methods woulbe be great.
Regards
Jonathan.See the other post:
http://swforum.sun.com/jive/thread.jspa?threadID=50091&tstart=0
The problem is when the page is reloaded when a button is pressed for example, the URL variables are gone.
I know to to retrieve the variables, just having problems putting it all together.
I'm trying to avoid using session varibles.
Regards,
Jonathan -
Getting all variables from a session
I can put and get variables into the session no problem, however I would like to get a list of all the objects stored in the session - is their a quick way to do this ?
You can use the getAttributeNames() method of HttpSession, which returns an enumeration of the names of all the objects in the session
-
Use of a Session Variable in another session variable in OBIEE
Hi,
I want to use a session variable say A to calculate value of another session variable B. I am using valueof(NQ_SESSION.A) in the initialization block of variable B. But the result is coming blank. I know that the value exists. I have also set the precedence for B to run variable A first.
Am I missing something here?vkos, it works fine for me as my first variable it's initialized when a user logins so the second variable can use its value. What you are trying to do it's not possible. It's not clear if the OP is trying to do the same thing but I will agree that if it is trying to initiliaze a session variable at runtime this is not going to work. You will either have to use presentation variables or update the session variable via GO URL or via Advanced settings in Answers. See the following posts:
http://oraclebizint.wordpress.com/2008/02/28/oracle-bi-ee-101332-updating-session-variables-through-go-url/
http://oraclebizint.wordpress.com/2008/02/25/oracle-bi-ee-101332-updating-session-variables-from-dashboards-using-presentation-variables/ -
Hi, i have got another problem with livecycle designer scripting.
I have got script line which is defining of string variable:
var aaa = "this is my string";
and i have got embed XML schema like this (it`s only short part of whole file):
... xs:element name="bbb" type="xs:string"/ ...
After saving data to XML i would like to get "this is my string" as a value of my "bbb" XML element.
To save this data i`m using submit button which is connect with submit.php file on my server.
How to connect script created variable and embed XML schema element which is present on my "Data View" tab.
Please help me a bit becouse i don`t know even where to search answer of it...
Of course i know possibilities to create fake unvisible text field object and bind it with 'bbb' and than put "this.rawValue = aaa" to connect those two variables but i think that is not a good idea to solve it in that way. It`s too primitivei solve it, i should write this:
xfa.datasets.data.bbb.value = aaa; -
How to pass session variable value with GO URL to override session value
Hi Gurus,
We have below requirement.Please help us at the earliest.
How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
Please provide step by step solution.No vague answers.
I followed below steps mentioned.
RPD:
****-> Created a session variable called STATUS
-> Create Session Init block called Init_Status with SQL
select 'ACTIVE' from dual;
-> Assigned the session variable STATUS to Init block Init_Status
authenticationschemas.xml:
Added
<RequestVariable source="url" type="informational"
nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
Report
Edit column "Contract Status" and added session variable as
VALUEOF(NQ_SESSION.STATUS)
URL:
http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
Issue:
When I run the URL above with parameter EXPIRED, the report still shows for ACTIVE only. The URL is not making any difference with report.
Report is picking the default value from RPD session variable init query.
could you please let me know if I am missing something.Hi,
Check those links might help you.
Integrating Oracle OBIEE Content using GO URL
How to set session variables using url variables | OBIEE Blog
OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
Thanks,
Satya -
Can I set a Session Variable from a Dashboard Prompt, using values that are
Hi All
Trying to set a Session Variable to an integer value, by letting users select a text value from the drop-down list on a Dashboard Prompt. The goal is to set the input parameter to the IndexCol function, but to provide the end users with a text description of what they are setting.
Select Value Set Variable Value
My 0
My Team 1
My Companies 2
My Teams Companies 3
Any suggestions on how to accomplish this? Certainly we could populate the drop-down from a data source, however I don't see how to populate a variable with something other than the values on the screen.
The IndexCol function is referenced in a Filter in Answers, and I'm thinking to populate a Session variable using the (Presentation) variable value set from the prompt. But how to do this? I see a reference to a function NQSSetSessionValue(), but cannot find documentation on how it works.
Any clue will be greatly appreciated.
ThanksHi kishore..
Looks like the link u have sent uses advanced SQL tab to set session variables. I want to know if I can use "set variable NQ_SESSION.myvar= @something" in the "SQL results" -while creating a dashboard prompt-.
Purpose: I want the session variable to be set based on whatever report that im currently in.
And i dont want to use presentation variables because im using a reset button in my page.
My reset script resets presentation variables and NOT session variables.
Thanks in advance
Loy -
How to remove/change a binding correctly?
Hey,
I'm trying to remove an aggregation binding of a table, because I want to set another one on it.
I need something like this:
if ( mytable.isBound())
mytable.unbindRows()
mytable.bindRows()
... but istBound() returns always "false", although it is bound and data are shown. The new binding is working well, but I think the old Binding remains at the model -> which causes (old) requests on a refresh.
What is generally the correct way to call ".bindRows()" many times, without getting too many old requests?
Or how can I remove a Binding totally from my model?
Thanks and greetings,
JoergHi Jörg,
it seems you have to use the setModel() method also for removing a binding.
Take a look at the documentation.
setModel(oModel, sName?) : sap.ui.base.ManagedObject
Sets or unsets a model for the given model name for this ManagedObject.
The sName must either be undefined (or omitted) or a non-empty string. When the name is omitted, the default model is set/unset.
So, this call should remove the previously bound model:
myTable.setModel();
Greets,
ben -
Accessing the Binding Layer from Java
Dear All
How can i Accessing the Binding Layer from Java code i need details document for it becuase i have complex binding object (object inside object)
Regards
Mohd.Weshahi know but my case is complicated :
Dear All
i have generate a human task based task flow and i create a page with payload object . i have an empiterator whcih include the following attributes :
- id
- name
- telephone
- department (Complex object) it include another attributes - dept and dept Name
my question i want to fill the empiterator by java code and fill all attributes including complex object (department ) from java code (my backing bean). \
you can download a document that describe my problems by images and details :
[http://www.4shared.com/account/document/fTREP1mv/ADF_Question__2_.html]
Regards
Wish79 -
How to find out histotry command from other session
Hi gurus,
I use RHEL 5.4
Some user log onto server with root and make change at some files. How can I find out history command from other session with the same user.
history command is just give me history commands of my own session.
Thanks
ChThe file which holds the commandline history is .bash_history in the home directory of the user.
So in the case of root, /root/.bash_history
Please mind that if you log in as root, or become root your session will add to that file as well.
Another issue with the history file is that when multiple sessions are logged in, every session writes in its own version of the same file. So the last one "wins", which means that version is the one which is truly stored.
If files are changed, a find command with the 'mtime' parameter should be helpful. -
Session variables in bi publisher 11g data model
Hello ,
I am new to bip data models , i am creating data model using bi answers issued sql query . In that bi answers there is an column containing session variable (nq.session.Currency) . When using column in bip data model . How do i give filter column telling it has session variable and setting the session variable currency as bind parameter .
Please provide inputs how to use columns containg session variable in bi publisher data model
Thanks,
SRIKANTHHi,
You can use VALUEOF("session_variable_name") in the filter condition in your logical query.
BR. -
Clearing custom session variable in 5.0
I have set a custom session variable in a method called in the OnAfterLogin PEI.
Do I need to ckear this session variable on logout? If so, how do I do that?
Or does the session variable clear on its own if teh session is abandoned or killed on logout?
I just want to make sure I am not leaking any memory and do proper housekeeping.
Thanks!
Vanita
StaplesSam,
It appears that you are one of the few installations that actually used a display/formatting page under 4.x. Under 5.0 you have the option of going directly to the source of the card or gatewaying the card. Those are your only two options to my knowledge. I suppose that the answer might rest on using docfetch but this would require a custom CWS.
Good Luck
Phil Orion
Maybe you are looking for
-
How can I get around the character limit in the "print pages" option
I have a rather large PDF file and I need to print certain pages (for example, pages 1, 324, 456, 759, 812, 946, 1206, 1562, 1792, etc.). However, when I click on print and try to type in the pages, there is a character limit, and it is much smaller
-
How Do I connect to Home VPN with IPAD
Hello All, I have setup my home server on Mac Mini with OS X Server App. I have it configured on my Ipad and the Ipad shows that it is connected. NOW WHAT??? haha. I float around my ipad screen and I can't get to my home server. Ive downloaded a
-
CUCM 8.6 - Call pick up not working
Hello, We have a call pick up group when a user attempts to pick up the call "temporary failure" is displayed on the phone. Phone model is 8945. This is reproducable everytime. Any ideas to troubleshoot this would be appreciated. Thanks, Ayaz
-
Lots of apps crashing when opened
Since upgrading from an iphone 4 to an iphone 5 last year, various apps that worked before no long work, i used the settings and profile for my 4 and transferred to the 5 so some of the apps installed automatically, and they did not work, and some ap
-
My iphone screen shows all pictures as a negative image. What do I need to do to change this?