Passing a value to the URL of a CFC
Hello.
I'm not very familiar with coldfusion CFCS but I could follow a few examples that allow me to perform selects related using cfc code.
Recently, I came across a problem and do not find the answer using Google, so I thought I would ask here.
I have a form and the URL of this form contains a variable that I need to go to the SWC but I don't know how.
Here's the URL... myform.cfm? type = normal
So on this page myform.cfm I a call to a cfc like this < cfselect multiple = "" name = 'test' bind = "SWC:test.test_func()" bindonload = "true" / > "
In the CFC, I need to be able to modify the query in the test_func based on the variable named 'type' in the form page URL string.
How can I pass this type = normal in the cfc with the link to the cfselect?
Thank you
OK, got it. "In shape, I've added a hidden field named field_val with value =" ' #URL.type # ', then past this value form like this bind = "cfc:test.test_func({field_val}).
Then in the cfc, I put an argument for find field_val and it works.
Probably not the most elegant, but its working for now.
Tags: ColdFusion
Similar Questions
-
How to open a url in a new tab/page of answers by passing a value to the url in OBIEE10g
Hi all
I am trying to create a response, a "request id" column would have a url with the id of the application, attached at the end of the url to open a web page. I got response work, I need to open the Web page in a new page rather than in the same answer obiee. We are on OBIEE10g (10.1.2.3) under Windows 2003 R2.
Can someone give me some information to achieve this?
Thank you
Vijay
What has been suggested, just to open the link in a new page that's all.
You might need to format the url, then
-> Data Format column properties-> select 'hyperlink', then
format your help url
@[html]""@""
in this case, you get the ID with hyplerlink and OnClick will open in a new window.
Just in case where to check this http://www.cool-bi.com/Tweaks/PortaBI.php
then take what you need.
Check if help
-
Problem with comma when you pass values in the URL
Hello
I have two pages, the first page to the second page, I'm passing some values using the url parameter passing
but certain values contains comma ex:-P1_NATION field contains INDIA, United States, United Kingdom
but the apex treated that as these are distinct values and assign it to separate elements
Suppose that my intention is like P2_NATION, P2_EMPLOYEE, P2_EMPID: USA, UK, INDIA, SAGAR, 123
but the apex dealing with like P2_NATION = INDIA: P2_EMPLOYEE = USA: P2_EMPID = UK
is there any solution for this
Please help me about this
I use apex4.1, db 11g, ie, chrome, ff
Thank you
SAGARSAG says:
I have two pages, the first page to the second page, I'm passing some values using the url parameter passing
but certain values contains comma ex:-P1_NATION field contains INDIA, United States, United Kingdom
but the apex treated that as these are distinct values and assign it to separate elements
Suppose that my intention is like P2_NATION, P2_EMPLOYEE, P2_EMPID: USA, UK, INDIA, SAGAR, 123
but the apex dealing with like P2_NATION = INDIA: P2_EMPLOYEE = USA: P2_EMPID = UK
is there any solution for this
The best practice is not to transfer the data in the URL, other than the minimum possible number of discrete ID. Values required in a target page can be recovered in the element source and properties by default, calculations or using these values of process ID, or by referencing the other page element values or application already in session state. Collections can be used to store multiple values in session state to use through one or more pages.
In URL of the APEX, commas in the item values can be escaped by encapsulating values of the backslashes ('-'), while the settlers may not appear at all.
P2_NATION,P2_EMPLOYEE,P2_EMPID :\INDIA,USA,UK\,SAGAR ,123
Also, do not use unescaped reserved characters in the URI.
-
Passing values through the URL GO
I use GoURL passes the value of 'Name of the monitor' (P3) of Report1 to I2. The "monitor name has the following values.
Maximum availability
Cost of downtime
''||" Service Delivery ". "" Monitor the name ":""
The output looks like
http://simwebwts09.RSC.Humad.com/analytics/saw.dll?go & Path = / Shared/ASM/Service_Delivery_Trend_Graph_per_test & action = Navigate & P0 = 2 & P1 = EQ & P2 = '20% of Service. " "" Monitor % 20Name ' & P3 = Peak
The P3 value is truncated when the space is encountered in the value. For example "Peak availability" gives only "Peak" as stated in the above result.
Please can you suggest a way to get the full value in the URL.First step:
The data format of properties/tab set column-> text HTML threat
Then write code like this:
'<--a href="../analytics/saw.dll?Go&path=/shared/ASM/Service_Delivery_Trend_Graph_per_test&Action=Navigate&P0=1&P1=eq&P2=" service%20delivery"."monitor%20name"&p3='||REPLACE("Service" delivery"."monitor="" name",="" ' =""="" ',="" '%20')||'="">'||" Service Delivery ". "Monitor the name ' | '. ' URL'. ' <-->'
Delete - a tag.
For more information, please visit:
Replacement requests for URL GO navigation and unicode
http://108obiee.blogspot.com/2009/08/go-URL-request-navigation-and-Unicode.htmlConcerning
-->--a>
Goran
http://108obiee.blogspot.com -
Problem by passing the values in the url
Hai...
I have created a report region1, because I change the link to change the values, after clicking on the edit link region.2 will appear, im passing in the url of the region.2. My problem is that the values of a ': ' in that... so by passing the values in the url im not getting the onlu 'Region.2' for values that got ':' in it... How can I overcome the issue.
im passing value contains ':' in this example:-"petroleum products: Europe.
When I pass this URL im get like this
http://nypploratest.Platts.McGraw-Hill.com:7777 / pls/dews/f? p = 100:105:1304192021604971:NO:P105_NEWS_CODE,
P105_NEWS_DESCRIPTION, P105_NEWS_CODE_HIDDEN:PDD % 2COil % 20Products: % 20Europe, 2-1 colon is included in the url
Please help me...
Thank you
DavidYes, it's possible. Depends on what you are doing. Source value of the element can be a query, so if you have spent the value PK of a line in a table to the page, then the query source of this element could extract the line using this key and use the text value retrieved from another column to fill the text element.
Scott
-
Passing multiple values at the request of the State (no status page)
Hello
[APEX 4.2.4.00.08 on the 11.2.0.3 database]
I didn't know how to explain briefly what I need in the title of the discussion, that's why I added the song "(non page rapport)". " I met a lot of threads associated with passing of selections multiple values from one page to another, or via a URL from one page to another. I know how to do this. The problem I have right now is trying to pass the commas of the values contained in an application to a report query element. Here's where the "(rapport non page) ' comes into play." I refer to the report query at the level of the application (i.e. shared components-> report queries). I wish really it had another name for it. "Report on the application of queries", perhaps?
In any case, my report query has a bind variable, AI_ID_NUMBERS, that is defined correctly in the shared-> components report queries. However, when this item application has multiple values such that AI_ID_NUMBERS = 4, 5, 6, 7 etc., my URL looks like this:
myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1:AI_ID_NUMBERS:4, 5, 6, 7
So, this returns only one record for the report where the identification number is 4, one. I tried a string parameter of Substitution of Application (URL_REPORT_1) with the two following variants (for which both return only a single record):
Substitution string = URL_REPORT_1 and Substitution value = f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = report_1:AI_ID_NUMBERS: & AI_ID_NUMBERS.
Substitution string = URL_REPORT_1 and Substitution value = f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = report_1:AI_ID_NUMBERS:-& AI_ID_NUMBERS. \
returns...
myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1:AI_ID_NUMBERS:4, 5, 6, 7
myapexsite.com/f?p=456:2:1234567890:PRINT_REPORT=report_1:::AI_ID_NUMBERS:\4,5,6,7\
.. .respectively
I really thought that the backslashes would have solved the problem. Any ideas why my report request (PDF) returns only one line?
Thank you
-Seth.
Well, too bad. I realized the mistake I did.
When you work with 'request report queries', there is an option to include variable bind, for example the application or page elements. I had already done that, but for some reason, thought that I also had to pass the parameter and its values in the URL. This is not necessary since the report query query already has the issue of the application/page related to it. The following URL works fine:
myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1
And, Yes, it's the URL that is provided when you set up a "application report query. I was thinking too hard.
-Seth.
-
a problem in passing multiple values in the loop settings for
Hi all
I am facing a problem in passing multiple values in the loop settings for.
EX:
CREATE or REPLACE PROCEDURE (pr_id OUT NUMBER) HAVE
tab type is table of NUMBER;
TEMP_TAB TAB;
BEGIN
Select the COLLECT LOOSE pr temp_tab pr_id;
I'm in 1.TEMP_TAB. loop of COUNTING
PR_ID: = temp_tab (i);
end loop;
END TEST;
OUTPUT:-
pr_id = 234578
in the example above, I'm only a value as an out parameter. but I send you PR_ID of the loop.
why I don't get all the values that the parameters.please offer a solution for me.
Thank you my friend.More clarification, let's look at your code...
-- create a procedure and have a single numeric out variable CREATE OR REPLACE PROCEDURE TEST ( pr_id OUT NUMBER ) AS -- declare a type as an array of numbers type tab is table of NUMBER; -- declare a varianble of that array type TEMP_TAB TAB; BEGIN -- query all the values from the table into the array select pr_id BULK COLLECT INTO temp_tab from pr; -- loop through each value in the array for i in 1..TEMP_TAB.COUNT loop -- set the value of the single OUT parameter, OVERWRITING any previous value it has PR_ID := temp_tab(i); -- loop around to the next value end loop; -- end the procedure with the final value of PR_ID END TEST;
-
Passing DB values to the text based on the Select Value box
Hello
I'm very big thing back to the Oracle APEX. In my project, I have a requirement in which I need to pass different values for the corresponding text boxes on a different page based on the value I select in the item "Select Value".
I tried using processes calling for demand, but could not get the desired result.
Please suggest!Hello
Can you repeat your scenario on apex.oracle.com? It will be easier to fix it this way.
Kind regards
-
in PHP how pass a value from the recordset object via a url
I have a blog set up with PHP/MySQL with two tables (1 table for blog entry) and 1 table for comments on the blog
I can view the blog and the comment with a LEFT JOIN recordset like this-
SELECT golf_blog.blog_ID, DATE_FORMAT (golf_blog.blog_created, "%%b, %Y ') AS blog_created, golf_blog.blog_author, golf_blog.blog_subject, golf_blog.blog_article, blog_comments.comment_article
FROM golf_blog LEFT JOIN blog_comments using (blog_ID)
ORDER BY golf_blog.blog_created ASC
I have a link in the this object recordset repeat region goes to a page containing the comment drag.
blog_ID is the primary key of the table blog and blog_ID is the index in the array of comment.
How do you pass the blog_ID of the recordset on a text field in the form of comments via the link insertion?
Or am even thinking about it in the right way?I figured it out and got it to do work in passing the blog_ID as a variable on the URL of the comment form page
the link looks like this
">Commentand on the comment page used this code
$blog_ID = $_GET [$blog_ID]? >and the Insert field value is
I guess that reading David Powers begins to bear fruit. Eureka!
-
I'm sure that it's something obvious and I will watch it and go 'Duh!', but can someone hit me with a stick of the idea anyway?
I have a PL/SQL report that shows a summary output per employee. I would like to create a "drill-down" type of feel by allowing the user to click on an employee to see only THAT its production in a separate page. I already have the report, I just need to have the redirect URL to pass the value and I'm stuck. Here is the URL I'm moving:
http://192.168.168.201:7777 / pls/htmldb/f? p = 102:1361: & APP_SESSION:P1361_EMP_ID:84854
But the Apache comes back with an error message:
I am starting on page 1360 and trying to pass the ID of page 1361 for the report to use. Am I missing a colon or something?Bad Request Your browser sent a request that this server could not understand. mod_plsql: /pls/htmldb/f HTTP-400 Missing '=' in query string or post form
(and if you're wondering, here's the line of the PL/SQL that generates the field/link)
htp.p('<tr><td><a href="http://192.168.168.201:7777/pls/htmldb/f?p=102:1361:&APP_SESSION::::P1361_EMP_ID:'||v_eid||'">'); htp.p(v_enm ||' ('||v_eid||')'||'</a></td>');
Hello:
It's '&' in the URL that is the culprit. You need
htp.p('
'); htp.p(v_enm ||' ('||v_eid||')'||' ');CITY
Value of the URL parameter with: do not display correctly on the page
Hello
I'm working on a page with an interactive report. One report column is a hyperlink to another page (Page deletion). This link goes to an id and a title page delete such as its poster a confirmation message to the end user before to actually delete it. If the title contains a ': ' the text after the ":" is not displayed on the page (visible in the URL on top)
Is it because that the ': ' separates parameters in a URL to the APEX and, therefore, the text after the ': ' is considered to be the following URL parameter?
How can we solve this problem?
Kind regards
Priya JetleyA solution should be not only not to work with the parameters in the URL.
Simply a process to pass values from one page to another as is:
BEGIN
IF: REQUEST = 'TEST' THEN
P2_ID: = P1_ID;
P2_TITLE: = P1_TITLE;
END IF;
END;In this case, your problem is solved, and it is safer because the user does not see what id is passed and can not manually put the id in the URL...
IOM - OAM 11gR2PS2 and 10g protected webgate application integration.
When new users trying to access to protected application the user redirected to the screen for the IOM change password (which is correct behavior) and here once the user change the password and submit does not load the protected application. SST If g 11 protected asks consulted then it works fine. Here's the use case:
To access the OHS 11 g protected page IOM: https:// < LBR_URL >: 4443/identity /
the user redirects to - >
https:// < LBR_URL >: 4443/identity/faces/firstloginbackUrl=https%3A%2F%2F < LBR_URL > % 3 A 4443% 2Fidentity & _afrWindowMode = 0 & checksum = A9745E7CE5D7A5B96116C67FB2BBA09...
Above you can see backUrl stores the value of the requested url.
after a successful change password user redirected to - > https:// < LBR_URL >: 4443/identity/which is expected.
Now with 10g Webgate (jboss) protected:
10 g webgate protected access request as https://ABCD.com:8443/ShoppingCart/default.htm
the user makes a redirect to - > https:// < LBR_URL >: 4443/identity/faces/firstlogin?backUrl=%2Fidentity%2Ffaces%2Fsignin & _afrWindowMode = 0 & checksum = F35AFC1E9A9734D0FC583669B3DD62105F897B332B7303044855B9B0CC42C072 & _afrLoop = 371...
Now you can see backUrl NOT stores the value of the requested url and some URLs as maintaining == / faces/registration.
after successful change password user redirected to->https://< LBR_URL >: 4443, identity, faces, signin? _afrLoop = 3715664044314206 & _adf.ctrl - State = fq36gphqz_77
Is there a limitation with this? I couldn't see any parameter that allows to control this on webgate 10g.
Vinay
Too bad I got the answer.
If you see the newspapers you can see the warning like:
XL not defined AllowedBackURLsMode In version IOM 11.1.2.1.4 has introduced a new improved security to prevent the use of a backurl to redirect a user to a malicious url.
It can be controlled by XL. AllowedBackURLs.
-
Vinay
Passing of value of the load capacity of the human task to query ADF VO BPM
Hello world
faced with the variable binding in the VO.
This is the scenario:
I have a page of the ADF in my BPM process that uses the variable in the flow of payload in variable display object related task.
My VO has this query:
Select FULL_NAME, user_name
of ROLE_TEAM
where in('IO-UB','AGG-CST-UB') role
and cdc =: sector
I need to pass the variable to link called 'sector' to it.
In my office, I have the variable called 'sector' but I don't know how to switch to the VO.
With the help of Jdev 11.1.1.7
Can you help me?
Thank you.
Fairlie
Well it should work, but it's a little more complicated that it should probably be. ( Dan Atwood accessories to be creative!)
You must call the method "ExecuteWithParams" on your view object before loading the page. This can be done during the loading of the page, or in the taskflow (a bit easier to explain).
First of all, as you described, create your SQL VO query with your variable binding "and cdc =: sector ' make sure 'sector' is a variable binding is set to be updated.
Then, create the link to your payload BPM 'sector' value (we'll call it SectorPayload) on your page (just drag as a text of output so that ADF automatically creates the link).
Now go to the taskflow which has your page that you are trying to view and expand the data control / view the object you want. The "ExecuteWithParams" method (in the folder of your VO in the DataControl operations) drag the taskflow. You will be prompted with an Assistant "Change the binding Action" which will have your listed parameter. Its 'value' uses the phrase EL editor develop "links ADF-> data-> of the page that you have created SectorPayload on (com_company_pagePageDef)-> variable-> inputValue. SectorPayload. The resulting expression should look like:
"#{data.com_avioconsulting_demos_showMyPayloadPageDef.SectorPayload.inputValue}".
Right-click activity and go to the activity of the brand-> by default (it runs everything first and highlights its green). Then draw a line from this activity to your view.
The view object should now be filtered according to your variable binding.
HTH!
-Kevin King
How to pass a value to the form defined in the context of security file name?
Hi all
Yet to learn JavaScript... I have a JavaScript script, save a copy of my pdf to a location on my machine. Got the privileges of working well as well.
How I spend in the field values for the file name? Right, the created pdf copy is now called .pdf [object scope]. Instead, I want to use dynamic values of in the form itself.
Then this.documentFileName gets me the name of the file (Code record trust)...
var mySaveDoc = app.trustedFunction (function (doc, subName) {}
app.beginPriv ();
var myPath = "/ c/SubInspectionForms /" + this.documentFileName + ".pdf";
saveAs is the only privileged code that should be placed
with beginPriv/endPriv
doc.saveAs ({cPath: myPath,})
bCopy: true,
({bPromptToOverwrite: true});
app.endPriv ();});
this.getField("INSPECTION_Location") doesn't the value of a field:
var mySaveDoc = app.trustedFunction (function (doc, subName) {}
app.beginPriv ();
var myPath = "/ c/SubInspectionForms /" + this.getField("INSPECTION_Location") + ".pdf";
saveAs is the only privileged code that should be placed
with beginPriv/endPriv
doc.saveAs ({cPath: myPath,})
bCopy: true,
({bPromptToOverwrite: true});
app.endPriv ();});
The script on my SaveACopy button is:
subName var = this.getField ("INSPECTION_Location");mySaveDoc (this, subName);
I need the value of the field in the function?
It is easy to think 'this. GetField"is a universal thing you can still use, but it is not. Read carefully the description of the object "Thi". It is set in some contexts, and I don't think this is allowed when using it. You must pass it as a parameter in a context where it is defined.
passing multiple values of the column to a variable in unix
sqlplus -s $USER_ID@$SID/$PWD<<EOF>sql_1.txt set feedback off set heading off select 114032 as c_1 from dual ; EOF for i in `cat sql_1.txt` do sh script_1.sh $i
Currently I am passing a column value to the single unix variable.
How can I pass values of 2 columns
sqlplus -s $USER_ID@$SID/$PWD<<EOF>sql_1.txt set feedback off set heading off select 114032 as c_1 ,sysdate c_2 from dual ; EOF sh script_1.sh $col_1_value $col_2_value
I'm on SUNOS
You can concatenate the columns in SQL by a delimiter, and then use the cut (for example) under Unix to analyze the production line in chips for the script.
Maybe you are looking for
-
I was wondering? Air drop
Dump works only when the devices are nearby?
-
Wireless satellite L30 - receive errors
Connecting to the wireless network an IP address is never achieved. Using statistics to Atheros Client Utility Diagnostics\Advanced I see that all the received tags are wrong with a constant number of CRC. Services without wire is fine and the other
-
Why Apple does not allow an iPhone to do scan WiFi?
About 4 years ago, Apple pulled all applications that have enabled an iPhone search for WiFi networks. Why? (There was something for developers who use "Private APIs"). There are a number of tools available for analysis for Macs. I helped a café owne
-
How to install mnyob99.dll to ms money
I downloaded the mnyob99.dll patch, but I don't know how to install it.
-
Windows XP refuses to install fonts open Type (OTF)
I tried to understand why this does not work for some time without success. OTF fonts are supposed to a native XP supported, but everytime I try to install various OTF fonts, if I install through the record or copy paste and no matter how many differ