Passing URL variable on login redirect
I first want to say thank you for all the great help I have received on these forums over the past couple months - it has been very helpful and saved me countless days.
Saying that, I do have another problem. I would like to pass a URL variable to the success redirect page when users login. I want to have a recordset on the login page that retrieves an issueid for the most current article and then passes it on the URL to the page that is loaded when a user successfully logins. I have tried adding the recordset to the login page and then changing the URL for the successful redirect on the tNG_config.inc.php file to:
$tNG_login_config_redirect_success["5"] = 'dashboard_issue.php?issueid=' . $currentIssueId . '';
but it isn't working. I have a tried as many variations of that syntax as I could think of or find searching online but still no luck. There might be a much easier way to do this but the way the dashboard_issue page is set up is that it is looking for the issueid in the url. The benefit being that the same page can be used for any issue that the user wants to change to once he is logged in.
I hope this is making some sense. If not please let me know.
Thanks!
-Dan
The most current issue is actually just the one that is closest to today's date in the future. Users are free to add as many issues as they want in the past and future so I really can't go by issueid to sort since it might come in any order. Right now I have the most current issue found with this query:
SELECT issueid, DATE_FORMAT(date, '%W, %M %d, %Y') 'date' FROM issues WHERE date >= CURDATE() LIMIT 0,1
I will try to explain the problem a little more. This works great for what I need to do for this page as soon as they log in since it doesn't even look at the URL at all. If a user wants to go to a different issue I display a different page (which is this page just renamed) where the recordset looks at the URL issueid variable instead of the most recent issue recordset. The problem with this setup is that it is hard to maintain 2 pages all the time and would be great if I can just have one page to handle everything.
Is it possible to do something like this?:
IF issueid url variable EXISTS THEN use recordset1
IF issueid url variable DOES NOT EXISTS use recordset2
with recordset1 being the one that grabs the most current issue and recordset2 being the one that pulls the issue information based on the url issueid.
Similar Messages
-
Hello -
Thanks for Spry!
I'm running into a problem that probably exists because I've
cribbed a bunch of code from your demos that I don't fully
understand. I have a set of photo galleries, which I've set up like
the demo. A test link is here:
http://www.clubmax3d.com/photos_test.cfm
and it works wonderfully. When you choose a new gallery from
the drop down, everything loads up as it should.
However, I want to be able to call this page with a specific
gallery chosen - i.e. with a certain row preselected from the
dsGalleries. I actually do have this working, but after the page
appears with my chosen gallery selected, the drop down menu no
longer works to select the other galleries. Test this by going to:
http://www.clubmax3d.com/photos_test.cfm?g=2
I think the page breaks because I've set up an onDataChanged
observer for my dsGalleries so that I can change the preselected
row on page load (or really, when the data first loads). But then
this onDataChanged observer sticks around, and interferes with the
onchange function called by the select drop-down menu.
Can I remove the onDataChanged observer after the first call
to it is made?
Or a way to reconcile my observer with the "onchange"
function?
Or is there a better way to pass my variable to the page?
Right now it uses coldfusion like this:
<cfoutput>
<script>
var galID = #URL.g#;
</script>
</cfoutput>
<script type="text/javascript">
if (galID){
dsGalleries.addDataChangedObserver("myObserver", {
onDataChanged: function(ds, type) {
dsGalleries.setCurrentRowNumber(galID)} })
</script>
Thanks very much in advance for any advice (and please
forgive the newbie code)
p.s. if you have anaglyph 3D glasses put them on for some fun
:)Hi ImagicDigital,
You can actually display a "Loading" message/markup today if
you know how to do some programming.
You just have to register an observer on either the region or
the data set, depending on what you want to trigger the status
message.
The state notification mechanism that Don Booth has been
mentioning in some of his posts/replies has to do with a feature we
are implementing that will allow folks to mark pieces of
spry:regions as markup to use automatically for a given state, so
folks don't have to program anything.
--== Kin ==-- -
Passing url variable - what am I doing wrong?
I've made a form and am attaching the code.
Basically I am trying to get a list of offices and select one
(which I am able to do when I publish and run the webpage/form).
However, it always passes the value of "1" (the first record)
to the next page (no matter what office I select from the drop down
menu). I've tried the other choices under the lightning bolt, but
those won't pass anything to the next page.
Help!Why are you passing OfficeID as an URL variable in the form
action when it is already a FORM variable (the SELECT form field)?
The selected OfficeID will be passed to test2.cfm in the FORM
scope.
Also, you have named the submit button OfficeID, too. Form
field names need to be unique, except possibly radio buttons and
checkboxes. -
Passing URL Variables, Can "Or" statement applies?
in my php data, i have 2 catagorical data
cat1
cat2
most of the time, since most items have single catagory, i
can just pass 1 url variables, for ex: ?cat1=5
but on rare occasions, some of my items will have 2
attributes, making it necessary to filter not only cat1=5, but
maybe cat2=5 as well.
the way you do "and" statement is just with ampersand sign
&, but how would you do "or" statement?
(or am i totally misinterpretting the way that URL variables
work? i also thought that the filtering process might occur at the
webpage, and the & statement merely passes 2 or more variables,
while the webpage decide what to do with them. am i correct in this
statement instead?)
thanks again!
p.s. do you get anything when i declare you the official
answer? like, is there a forum level up thingy which you become
like master guru of dreamweaver helper or something...? sort of
like how they do it in yahoo answersBih Wang wrote:
> the way you do "and" statement is just with ampersand
sign &, but how would
> you do "or" statement?
You can't do an "or" statement in URL variables. The query
string (after
the question mark) is a series of name/value pairs separated
by ampersands.
> (or am i totally misinterpretting the way that URL
variables work? i also
> thought that the filtering process might occur at the
webpage, and the &
> statement merely passes 2 or more variables, while the
webpage decide what to
> do with them. am i correct in this statement instead?)
It's the script inside the web page that decides what to do
with the
variables.
> p.s. do you get anything when i declare you the official
answer? like, is
> there a forum level up thingy which you become like
master guru of dreamweaver
> helper or something...? sort of like how they do it in
yahoo answers
This forum doesn't have a points system, but we're moving to
a new forum
in a couple of weeks' time, where you can give points.
However, gaining
points won't automatically give people any titles or status.
David Powers
Adobe Community Expert, Dreamweaver
http://foundationphp.com -
CFLOCATION not passing URL variable
I have a simple CFLOCATION redirecting to a page with a fixed value of 15 as id
<CFLOCATION URL="http://www.MYWEBSITE.com/index.cfm?id=15">
When I hit the page locally it works fine, the receiving page can see the value of 15 in id.
However, when I run the same page on the server I get an error that the url.id does not exist
Not sure what is causing this, could it be a config issue in the CF admin?
Thanks
MarkJust after posting this I managed to find some sort of resolution to the problem, but it does concern me that this issue could be on other sites now. I found a link that suggested if a session was set and the cflocation was used all within one page then problems with variables could occur
http://helpx.adobe.com/coldfusion/kb/missing-session-variables-using-cflocation.html
I do have an application.cfm that sets a session, and when I hit the page the user does go right to the cflocation at the same time.
I placed an empty application.cfm into the directory so that it did not go one level up and set the session from the main application.cfm and now the variable does indeed pass through.
What I can't understand is why it works locally but not on the server
Anybody have any other input for this problem? -
JS popup and passing URL variables or ?
Hi ...
The following JS script opens a new window and that window is
a template called "viewer.cfm". The images are all going to shown
in that template (viewer.cfm) ... eg: HPIM0877.JPG, HPIM1009.JPG
I have to pass variables from any pages that have the
following link (below) to "viewer.cfm".
I will have maybe 40 images to deal with but I am getting
stuck on a universal #variable# to display the images and passing
them.
I have not included any code on the receiving template
"viewer.cfm" as I am a little stuck.
Thanks ...
EXAMPLE
<cfoutput><A HREF="javascript:void(0)"
onclick="window.open('viewer.cfm?#HPIM0877.JPG#',
'welcome','width=580,height=440,menubar=no,status=no')">
courses</A></cfoutput>On the template with the JS pop up window. (index.cfm)
<cfset
peaks="/motorcoach/ca/images/popup/HPIM1070.JPG">
<cfoutput><A HREF="javascript:void(0)"
onclick="window.open('viewer.cfm?image=#peaks#',
'welcome','width=650,height=500,menubar=no,status=no')">
peaks</A></cfoutput>
On the template which will produce the image (viewer.cfm)
<cfparam name="url.image" default="0">
<cfoutput><IMG SRC="#url.image#" width="550"
height="413" class="image"></cfoutput>
Cheers -
Passing url variables, url stops at first &
We are making a url in a string and putting it in a form tag a lot like this
<cfset a='http://a/b/c?x=3&y=02'>
<cfoutput>
<form action="#a#"method="get">
etc
</form>
</cfoutput>
the url in the browser address box stops at the 1st ampersand in the url string
***how can we fix this?
it is an emergencyMe too, pass form elems and method is post. This situation I have to use method of get though, no control over situation. It's not an emergency anymore since the urls passed ok as links instead of buttons. Hope to have as buttons later. Thank you for answering and for advice.
-
My web page is in two panels. "A" lists company names. "B"
show the details in an Accordian panel (address, phone etc) when a
name in "A" is clicked. To update the the file, a button "Update
Data" opens a php dynamic form to update record with an "id" of
{id}. On submission of the form, we go back to the selected row
{ds_RowID}.
PROBLEM: This all works in Safari and Firefox, but on a
Windows box the "Update Data" button has no effect. Is there a URL
encode function or something that I am missing?
Test-Wesite: I can send privately the online example.
<a href="updtform.php?id={id}&row={ds_RowID}">
<input name="butt_updt" type="button" value="Update Data"
/></a>The problem is that in some browsers like IE, the button
click does not propagate upward past the button to the link.
Instead of wrapping your buttons with a link, why not use an
onclick handler? Instead of this:
<a href="updtform.php?id={id}&row={ds_RowID}">
<input name="butt_updt" type="button" value="Update Data"
/>
</a>
Do this:
<input name="butt_updt" type="button" value="Update Data"
onclick="window.location='updtform.php?id={id}&row={ds_RowID}';"
/>
--== Kin ==-- -
Can you pass an array URL variable
Hi,
Doing a form which I want to validate, then re-display with
error messages and the keyed data still in place should there be
errors, or go onto a second form if all ok.
I have tried to use <form
action="<?=$_SERVER['PHP_SELF']?>" but as the various
outcomes result in different screens I can't see how to do it
without having reams of duplicate code - I couldn't make it work
satisfactorily anyway.
So I decided to do it in two stages - form (user screen) + a
separate validation routine which passes validation results back if
there are errors by calling the first screen but with URL variables
to trigger process variations or go onto screen 2 if all ok.
But I'm struggling with this .. two questions:
i) Ideally I would like to use a session variable to pass
actual error messages back to screen one in the event of errors but
if I undertand things correctly (which is by no means certain)
$S_Session is already an associatve array so it wouldn't be so easy
to just add a variable number of messages to it and then know what
you are unpacking elsewhere ... do you know what I mean?
Perhaps if I give you my second question it may help
illustrate what I'm going on about in part 1
ii) The way I have tried to do it is to set it up as an array
($ERRORS) in the validation module and then added a text string
each time I hit a specific error. The hope was that I could then
send this back via the URL for further process but I'm getting
syntax problem so maybe this is not possible .... a brief example
Input Form php:
$ERRORS = array();
$ERRORS = $_GET['errors']
if (sizeof($ERRORS) > 0) {
echo "<p class=\"val_err_hdr\"> *** Validation
error(s) - please correct the entries and try again ***
</p>";
blah blah
Validation php:
$ERRORS=array();
if(!$loginFoundUser) {
$ERRORS[] = "This e-mail address entered has already been
registered on our database - if you have already registered you
can"; }
header("Location: input.form.php?errors=$ERRORS");
When I run this I get a syntax error 'unexpected T_IF' on the
'sizeof'' function condition.
Any help much appreciated..oO(patricktr)
> Doing a form which I want to validate, then re-display
with error messages and
>the keyed data still in place should there be errors, or
go onto a second form
>if all ok.
OK, quite common.
> I have tried to use <form
action="<?=$_SERVER['PHP_SELF']?>"
Avoid short open tags, they are unreliable. Use "<?php
print " instead
of just "<?=" to be safe and independent from the server
configuration.
>but as the
>various outcomes result in different screens I can't see
how to do it without
>having reams of duplicate code - I couldn't make it work
satisfactorily anyway.
What's a "screen" in this case? Just another part of the form
or a
completely different page?
> So I decided to do it in two stages - form (user screen)
+ a separate
>validation routine which passes validation results back
if there are errors by
>calling the first screen but with URL variables to
trigger process variations
>or go onto screen 2 if all ok.
Don't use URL parameters in such a form processing scenario.
Use a
session instead, that's what they are for. The length of URLs
is limited
and there are things you simply don't want to pass between
pages, but
keep on the server instead.
> But I'm struggling with this .. two questions:
>
> i) Ideally I would like to use a session variable to
pass actual error
>messages back to screen one in the event of errors but if
I undertand things
>correctly (which is by no means certain) $S_Session is
already an associatve
>array so it wouldn't be so easy to just add a variable
number of messages to it
>and then know what you are unpacking elsewhere ... do you
know what I mean?
The $_SESSION array itself is strictly associative, the used
indexes
must be strings or the serialization of the session data will
fail.
But if course you can always do things like this:
$_SESSION['errors'] = array();
$_SESSION['errors'][] = 'something went wrong';
> Perhaps if I give you my second question it may help
illustrate what I'm going
>on about in part 1
> ii) The way I have tried to do it is to set it up as an
array ($ERRORS) in the
>validation module and then added a text string each time
I hit a specific
>error. The hope was that I could then send this back via
the URL for further
>process but I'm getting syntax problem so maybe this is
not possible .... a
>brief example ...
As said above - use the session instead.
> Input Form php:
> $ERRORS = array();
> $ERRORS = $_GET['errors']
There's a ';' missing at the EOL (this causes the error you
mentioned
below).
Just a naming hint: Variables should not be named all
uppercase (except
for the predefined superglobal arrays). Such names should be
reserved
for constants. The most common style looks like this:
myNiceFunction()
$myNiceVariable
MY_NICE_CONSTANT
> if (sizeof($ERRORS) > 0) {
if (!empty($_SESSION['errors'])) {
> header("Location: input.form.php?errors=$ERRORS");
The Location URI must be absolute including scheme and
hostname. This is
required by the HTTP spec:
header("Location:
http://$_SERVER[HTTP_HOST
But I'm still not sure why you would need this redirect. The
entire
handling of a form (validation, processing) can be done on a
single
page. Only if the processing succeeds, you might want to
redirect to
some result page.
Micha -
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 -
Error while passing ODI variable in JNDI Url for JMS Queue XML
Hi,
Facing a weird problem while passing ODI variable in JNDI Url for JMS Queue XML.
Below is the JNDI Url configured under ODI Topology:
JNDI Url: t3://<host_location>?d=#TEST.SCHEMA_FILE&s=<schema_name>&JMS_DESTINATION=jms/<queue_name>
where,
#TEST.SCHEMA_FILE --> ODI variable storing xsd name and location
Issue Description:
If we restart ODI server then for the first run of any ODI interface using JMS Queue XML, it is unable to get the value for ODI variable present in JNDI Url (d=#TEST.SCHEMA_FILE).
It throws error message saying: No XSD found
Temporary Resolution:
As a temporary fix if we hard-code and pass the value in that ODI variable as shown below, it will successfully go through.
eg: JNDI Url: t3://<host_location>?d=C:\XSD\test.xsd&s=<schema_name>&JMS_DESTINATION=jms/<queue_name>
Reverting it back to variable later will have no issues and subsequent run will succeed.
But again anytime later if server is restarted then first run will have this issue.
Want to have permanent fix for it.
Any one having idea on it please share. Appreciate your help!What ODI version are you using? It could be related to the bug in the older version as described in support note Doc ID 1290326.1
-
Passing two variables in the body of the URL using the go to detail page SB in ASP
Hi all,
Would appreciate your assistance with the following, I'm
trying to set up a go to detail page sb that passes two variable in
the body of the URL rather than the standard one.
The code i've tried is -
<td><A HREF="gggggggtest.asp?<%=
Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
"PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
%>&"PCL1ID=" +
othermenutwo.Fields.Item("PCL2PC1ID").Value
%><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></A></td>
Where the PCL1ID and the PCL2ID are the variables
The normal code generated by the go to detail page sb with
one variable is -
<td><a href="ggggggtest.asp?<%=
Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
"PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
%>"><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></a></td>
Unfortunatley my code tweaking isn't working as the second
variable isn't being sent, any help would be gratefully appreciated
ThanksInstead of using DW's 'go to detail page' option, simply set
up the link the manual way in DW using the Link browser. Select the
file you want to link to and then use the parameters button at the
bottom of the 'Select File' dialogue to set the parameters to be
passed with the link. You can then manually set the name of the
parameter to be passed and then select its value from a recordset.
The key thing is that you can set as many parameters as you like,
so you can set both the parameters you want.
On the detail page you then filter by the parameter name you
chose (or both).
Personally I always code links this way rather than using the
go to detail page option as you get much better control of what is
going on. -
How to pass many variables to servlet using a URL? Ajax related.
I have 100 text boxes in my JSP and want to pass the values stored in these text boxes to a servlet with out the need for submitting the entire page using AJAX frame work.
I know how to peform the above in ajax if I have only 1 textbox. But how can I do that with 100 text boxes. I don't want to build a huge URL with 100 parameters.
I am thinking may be create an array and send it to the servlet, but don't have an idea if we can do it.
Please help me .You can make a POST request using an XMLHttpRequest, but you won't be "passing many variables using a URL", which seems to be one of your requirements, and which makes your question confounding(after all how do you pass many variables using a URL without putting many variables in the URL):
req.open("POST", url, true)
req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
req.send("first=Eric&last=Kaiser"); -
Passing Parameter/Variable into Dashboard URL
Hi,
Instead of having someone type in or search for a variable I was trying to determine a way to pass a variable directly into the URL
I have tried:
VARIABLE_SCREEN=X&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=XXXXXX&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=XXXXXXXXX
added to the dashboard URL:
pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=DASHBOARD
But any time I try this method it just refreshes the variable screen...
Am I missing something? Maybe I think its easier then it really is.
Thanks,Mike,
Variable_screen=x will always force the variable screen to display.
Try just variable_Screen=&BI_command etc etc -
How to pass presentation variable in column Fx using GO URL
Hi All,
I want to show a download link directly using go url .
In my dashboard prompt i am using some presentation variable .
those variables i am using in the report's column formula .
When i am applyning the prompt that it is not applying in the column Fx. so when i download the excell it shows same data for all the option choosen.
If anybody knows the syntax please help.
Thanks ...Hi,
Like this you can pass presentation variables to the columns using Go URL
'<a href=saw.dll?Dashboard&PortalPath=/shared/Test/_portal/Test%20KPIs&Page=Page1&Action=Navigate&col1="Dim%20Country"."Country%20Name"&val1='||'@{PV_Contry'||'>'||'Country'||'<\a>'
Please use backslash in anchor tag end. Since here it is not accepting I am using forward slash.
Thanks
Vino
Maybe you are looking for
-
How do I convert an iMovie file to an mp4 so I can upload it to YouTube?
I just created my first iMovie in the latest version and I need to upload it to Youtube. When I try to do that, it gives me the message that it is not in a supported file... I need to convert it to an mp4 or something similar. I am totally new to
-
Please help - "The iPod cannot be synced. The disk could not..."
Hi there. I am sooo frustrated right now! When I try to sync my iPod I get this message: "The iPod cannot be synced. The disk could not be read from or written to" followed by "The iPod cannot be synced. The required file cannot be found." I have don
-
Sending multitracks back to FCP
I'm working with HDV. I sent the time line to Color, did my magic and rendered out selected clips on this multi-track timeline. When I sent it back to Final Cut it was okay, then I reopened it later and the clips were not on the time line, but they a
-
I'm looking for a reference on deploying Skins with ADF Faces. The published howto on OTN is'nt very helpful because the sample code link is broken (See my previous post). The JDeveloper help files are somewhat helpful but I'm looking for a working e
-
hi all, is there any certification for API thanks Regards Aniz