How to set cookie value in one page and retrieve in another page using setA
How to set cookie value in one page and retrieve in another page using setActionListener?
I have tried with following code srcpage.jspx->destpage.jspx
srcpage.jspx
<af:table value="#{bindings.DepartmentsView1.collectionModel}"
var="emp" rows="#{bindings.EMPView1.rangeSize}"
first="#{bindings.EMPView1.rangeStart}"
emptyText="#{bindings.DepartmentsView1.viewable ? 'No rows yet.' : 'Access Denied.'}">
<af:column sortProperty="EmployeeName" sortable="false"
headerText="Cookie Testing">
<af:commandLink text="#{emp.EmployeeName}" action="success">
<af:setActionListener from="#{emp.EmployeeName}"
to="#{cookie}"/>
</af:commandLink>
</af:column>
</af:table>
espage.jspx
<af:outputText value="Test Cookie Value: #{cookie}"/>
,Here Test Cookie Value prints the following instead of its original String value
{JSESSIONID=javax.servlet.http.Cookie@7da288, oracle.uix=javax.servlet.http.Cookie@399f62}
I have passed employee name "Robert" to cookie in srcpage.jspx,but it prints "JSESSIONID....." instead of "Robert" in destpage.jspx
Thanks in advance
Kalee
Hi,
"cookie" is a reserved name. If you want to write to a session scope attribute called "cookie" then you have to call #{sessionScope.cookie}. If you want to use EL to set and read from cookies then you will have to use
#{cookie.cookieName}
Note that #{cookie} writes to and returns a map
check this: http://www.informit.com/articles/article.aspx?p=30946&seqNum=7
Frank
Similar Messages
-
How do you take pictures from one library and put in another library??
How do you take pictures from one library and put in another library??
Options:
1. Export from iPhoto A to the Finder, then import to iPhoto B
This gets the photo over, but no versions, no edit history and not all the metadata
2. Use iPhoto Library Manager
This gets everything: versions, edit history and all the metadata.
Regards
TD -
How display top 3 revenues in one block and remaining in another block
How display top 3 revenues in one block and remaining in another block.
create a variable as
v_Rank =Rank([Revenue])
then create a block level filter on the 2nd block as v_Rank Greater than 3.
you may need to modify the variable formula as per requirement to get the rank of the row. -
How to get the data from one table and insert into another table
Hi,
We have requirement to build OA page with the data needs to be populated from one table and on save data into another table.
For the above requirement what the best way to implement in OAF.
I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
ThanksYou can achieve this in many different ways, one is
1. Create another VO based on the EO which is based on the dest table.
2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
3. commiting the transaction will push the data into the dest table on which the dest VO is based.
I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
Tapash -
How to get the value from one Popup lov column to another popup lov column
Hi,
I am new to oracle apex development and having the below issue.
In my application, there is a tabular form with 15 columns ( c1.. c15).
I have to populate the value of column C5 based on the selected(from popup lov) value of column C3, tried to use onchange, but didn't help much.
Any help please.
Thanks and Regards,Oh boy, this is a fun one.
onchange should work theoretically (in this example, assume that f05 is the target column that should be set and "this" is the source item whose value is to be transferred to f05 on the same row (row 2)):
onchange=$s('f05_0002',$v(this));
BUT the catch is of course that needs to be different for every row (can't hardcode the '2'), so you need something to dynamically create the row number component.
I wrote this for an app I'm working on that uses master-detail forms heavily (I also wrote a lot more code to read the fmap array that is in v4 so that I can reference my cells via their column name and not the numeric position (so "f05 can be determined w/o hard coding), insulating against columns moving around, columns being made display-only etc. but I won't bore you with that here unless you really need to know).
function getRow(pObj)
{ //Pass in an object reference to a tabular form cell and get back an integer
//derived from the object ID.
var vRow=pObj.id.substr(pObj.id.indexOf("_")+1);
if (isNaN(vRow))
return (null);
return (parseInt(vRow,10));
function formatRow(pRow)
{ //Pass in an integer and it'll be returned as the tabular form cell ID suffix
//(e.g.: pass in 1 and get back string "_0001").
//Used in building ID references to tabular form cells.
if((isThingEmpty(pRow)) || (isNaN(pRow)))
return(null);
var vRow=pRow.toString();
while(vRow.length<4)
vRow="0"+vRow;
return("_"+vRow);
}Therefore:
onchange=$s('f05_'+formatRow(getRow(this)),$v(this));
So in essence, pass in "this" which will be a reference to the current item, largely to determine what row we're on. getRow will return 1, 2, 3, etc. formatRow will take that and return 0001, 0002, 0003, etc. Once that is done, it'll concatenate with the f05 and f04 to refer to the correct columns (determining f05, f04, etc. dynamically is another matter if you really need to but I didn't want to complicate this answer too much at once).
Note: above I also use a isThingEmpty() function that I wrote. It does nothing other than check the item for an empty string, if the item is null, etc. Just do your own evaluation of empty-string, no-value, etc. there.
It would indeed be nice though if Apex had a better way to delclaratively access the tabular form items though. Despite all the v4 enhancements, tabular forms were not entirely upgraded to the same full functionality of page items. -
How to create a slideshow on one computer and edit on another?
I have created a slideshow on my home computer but need to be able to edit it on my work computer. I have all of the photos on both computers, but I don't see how to transfer the slideshow. It is an extensive show with a lot of editing that has already been done.
Thanks
Larch45kbdSame question and answer here:
Elements 11: How can I move a slideshow from one computer to another for continued editing? -
I don't know about cookie settings and i've tried on internet explorer and firefox
Hello Amish Cake I guess tabbed browsing. If I'm looking at nytimes and am half way down the page, click on a link and then return to the times I'm back where it originally opened. ..Mike
-
How do i deactivate CC on one computer and add to another?
I had CC on another computer but the hard drive became corrupt and I need to deactivate CC so that I can download it on another...how can I do that?
Remove license on a computer http://forums.adobe.com/thread/1442423?tstart=0 may help
-http://helpx.adobe.com/x-productkb/policy-pricing/error-maxium-acitvation-exceeded.html -
In flex, How to set a value to one parameter, the parameter
defined in a cffunction in a cfc file, In the cffunction there are
much cfargument, I want set a value to one of them, such as the
cfc:
<cffunction access="remote" name="myShow" output="false"
returntype="struct">
<cfargument name="ID" type="numeric" default=0>
<cfargument name="GoodsID" type="string" default="">
<cfargument name="DestTime" type="string" default="">
<cfargument name="DestCount" type="numeric" default=1>
How I set a value to only parameter one of them , such as set
GoodsID when use mx:remoteObject.
Thanks for your helpGot maybe a solution for you, I have just tested it.
So, the idea is to use intermediate variables. Imagine Var1 and Var2 variables that you refresh with your more or less complicated queries. Then what you can do is to refresh your final variable Var3 with a query using your intermediate variables. Here is an example for Oracle:
select #Var1+#Var2 from dual
This way you can make a chain of dependent variables: Var3 is using Var2 and Var2 is using Var1.
Hope it helps.
Shamil -
How to get a value from one item into another
How can i get value from one item into another item.
Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
How can i do this?
Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.Hi Fredr1k,
Use the V() function from pl/sql.
e.g. V('P3_MY_ITEM')
will return the value of that page item.
As long as the pl/sql is called from within the Apex environment.
Regards
Michael -
How to pull content from div on one page to div on another page
Hi all,
I would like to pull content from the divs on page to divs on another page (so that I only have to update information on one page).
Could anybody give me a tip on where to read about this/how to do this? I am not expecting the final answer, just a clue on where to start looking for how to get startet.
Thanks in advance for any answers.
Best regards,
Ivan
www.colombiareiser.noTry reading on DW Spry html data sets. The Spry HTML data set allows users to use standard HTML tables and other structured markup as a data source.
http://labs.adobe.com/technologies/spry/articles/html_dataset/index.html
http://labs.adobe.com/technologies/spry/docs.html
Regards,
Vinay -
How do you Customize the weather on the home page and make it default to that setting? I have Customize several times and it keeps changing back to McLean, VA in English.
[email protected]'''''What''''' webpage do you have set as your homepage? <br />
Are you saving cookies for that page? -
Can I set up two iCloud accounts on my IPAD3 at the same time? If not how do you sign out of one to sign in to another?
Welcome to the Apple community.
You can add more than one account to your iPad, but you can only have one primary account. Secondary accounts which you can add at settings> mail, contacts, calendars do not have all the features of a primary account such as photo stream. -
I noticed when I restart Firefox 4, it opens my previous tabs even I set the option "Open a blank page" and it opens blank page when I have "Show my windows and tabs from last time". Please ignore my question if you're already aware of this issue. Thanks.
Your previous tabs will not re-open or be available to re-open when starting Firefox if:
*your previous session was in Private Browsing mode; see --> http://support.mozilla.org/en-US/kb/Private+Browsing
*you use Clear Recent History (''Firefox button > History > Clear Recent History'' or ''Tools > Clear Recent History''); see --> https://support.mozilla.org/en-US/kb/Clear%20Recent%20History#w_how-do-i-clear-my-history
*you clear History automatically when closing Firefox; see --> https://support.mozilla.org/en-US/kb/Clear%20Recent%20History#w_how-do-i-make-firefox-clear-my-history-automatically
NOTE: Your third-party Plugins (Add-ons > Plugins) are not in the "Application Basics" (Troubleshooting Information) in the "More system details" of your original post. Third-party Plugins are categorized separately in "Installed Plugins" under "More system details". You should review but not change the Plugins as detected automatically by the software on this forum when posting a question.
If you problem still exists after checking the above, the problem could be caused by one or more of your Extensions or Plugins:
*See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
*See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
*See --> [http://support.mozilla.org/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
'''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.''' -
How do I select more than one picture and send them all to Facebook on my iPhone 4s with iso7?
Hi, I want to thank you for all your information regarding my questions about sending more than one photo to Facebook. I did have to stop in at Verizon (where I bought my iPhone) to find out why I did not have a choice to choose Facebook with the export icon. The tech had to go into my setting and enable Facebook to recognize my iPhone. When I upgraded to iso7 somehow it could not recognize Facebook. Once he did this for me I was able to follow your advice and your answer solved my question. Thank you
Maybe you are looking for
-
How do I add second MobileMe Gallery to iPhoto
Hello Friends. On the left side of the iPhoto window I have all my albums, keepsakes, facebook pics, and my mobileme galleries. Now, that works great for me, but my wife can't use her mobileme with iPhoto (or we just haven't figured it out. Is there
-
Sales order item text to purchase requisition
Hello Team, we have scenario in which we create the sales order and while creating the sales order we put the production memo text at the item level under text tab in it. We have define copying rules for the production memo text under PR customizing
-
Very Frustrated and Wasted Money Please Help Me...... Itunes crashed and all of my libraries would not download, the songs that did came back 3/4 times which caused me to put everything on my new Hard Drive,I am have a bunch of files and libraries fr
-
Subscribing to new mail event of multiple impersonated user through one ExchangeService object
I am able to subscribe to push notifications by specifying impersonating users' credentials and then specifying impersonated user's email in ExchangeService' ImpersonatedUserId property. However want to know how can I handle new email events on multi
-
Macbook pro with Retina black display
Hi All, I was working in my laptop (MacBook Pro late 2013 with retina) normally for maybe 30 min and suddenly the display become black and the laptop doesn't work. I used turn off bottom to shutdown it. This happened twice. Please, help me with this