How to pass the variable to bind page ADF view object
Would appreciate your help on this.Set up a view with a variable binding object: param1 in where clause.
I want to pass the value of the variable to link from a page of the ADF (.jspx)
I know that one Option using executeWithParams() method binding in the ADF page.
But, I want to pass a pageFlowScope parameter (which is already set when loading the page) to the variable binding VO, and the VO should also display the results filtered on the page the first time itself.
Could someone help me understand with a code, how to achieve the same. (Is there a groovy expression to access the param pageflowscope?)
Thank you
Published by: user5381160 on August 12, 2010 20:01
You should also consider dragging operation executeWithParams on your workflow and of wiring to occur before your page instead of in the definition on the page itself - so it is more clear what is happening and is the approach recommended for 11 g applications. When drag-and you - drop operation, you can use the dialog box bind the parameter to your page flow - scope variable by providing the good EL there.
There is no expression Groovy in the model layer to access the workflow variable scope page (which is in the controller layer) because this would violate the separation of concerns inherent in an MVC application.
John
Tags: Java
Similar Questions
-
How to pass the variable in the table?
Hello. I try to pass the variable created in RTF and after I enter in the table.
In RTF:
<? xdoxslt:set_variable($_XDOCTX,_'var',500)? >
After the table:
chart:
.....................
< DataValues >
< RowData >
[< xsl: for each groupe-select=".//ROW[Edad16]" group by = "Edad16" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" > ".
< cell >
xdoxslt:get_variable($_XDOCTX,_'var')
< / cell >
< / xsl: for each group->
< / RowData >
< RowData >
[< xsl: for each groupe-select=".//ROW[Edad16]" group by = "Edad16" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" > ".
< cell >
50
< / cell >
< / xsl: for each group->
< / RowData >
< / DataValues >
< / LocalGridData >
< / chart >
And it isn´t work :-(
Any ideas?Hi, Benito,.
It wil work
-
How to pass the variable in the lov using like operator SQL
Hello.
I want to use a lov I pass a variable using like operator.
my query is
Select empno, name of the table where empno as ': ed %';
I want to show a % or B empno % so my empno is A001 to A199 AND B001 to B199
How can I do this?
regardsSet the property default_where to the block and run the query
set_block_property ('myblock ', default_where,' like upper (Ename)' |: mybind |) » %');
-
How to pass the variable to a swf into another swf
I declared a variable in the one.fla file
I open another file swf on a button.
the code is as follows
name = 'personName ';
myButton.onRelease = function () {}
trace ("liberation" + name); personName
loadMovie ("mainPage.swf", _root);
_root.loadMovie ("mainPage.swf");
}
I want the variable 'name' of access to another swf file. IE (mainPage.swf)
How do I do that?
You want to use the MoveClipLoader class (using loadClip() and addListener methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it. You can create an empty movieclip to load the SWF in, and in this way the loaded file can be targeted using the empty movieclip instance name.
-
How to pass the variable in a procedure as parameter
CREATE OR REPLACE PROCEDURE APPS. "" QFJS_LMO_TIMESLOT_PROC ".
(
a_std IN VARCHAR2,
TYPE str_table IS TABLE OF CLOB directory INDEX;
timeStr OUT str_table;
)
It's in error!
Help, please!That's what you're looking for? (you can also create the type of your database)
CREATE OR REPLACE PACKAGE APPS.MY_PACKAGE AS PRAGMA SERIALLY_REUSABLE; TYPE str_table IS TABLE OF CLOB INDEX BY BINARY_INTEGER; PROCEDURE "QFJS_LMO_TIMESLOT_PROC"(a_std IN VARCHAR2, post_std IN VARCHAR2, a_time IN VARCHAR2, post_hc IN NUMBER, pre_hc IN NUMBER, ods_schedule_date IN DATE, timeStr IN OUT str_table); END MY_PACKAGE; / CREATE OR REPLACE PACKAGE BODY APPS.MY_PACKAGE IS PRAGMA SERIALLY_REUSABLE; PROCEDURE "QFJS_LMO_TIMESLOT_PROC"(a_std IN VARCHAR2, post_std IN VARCHAR2, a_time IN VARCHAR2, post_hc IN NUMBER, pre_hc IN NUMBER, ods_schedule_date IN DATE, timeStr IN OUT str_table) IS v_clob clob; BEGIN FOR i IN 1 .. timeStr.COUNT LOOP v_clob := timeStr(i); -- ... END LOOP; END "QFJS_LMO_TIMESLOT_PROC"; BEGIN NULL; END MY_PACKAGE; / BEGIN APPS.MY_PACKAGE.QFJS_LMO_TIMESLOT_PROC('1','2','3',4,5,sysdate,APPS.MY_PACKAGE.str_table('clob1', 'clob2', 'clob3')); END; / -- Hugs, Philips
-
How to pass the PHP variable to menu jQuery Modal popup
Hello
Need help to find how to pass a variable in php (which is recovered in a while loop) in a modal window.
There is a list of users on the page (shown with a while loop), with buttons Remove next to each of them.
When the administrator clicks the button Delete for that specific user, a modal window appears confirming their action.
I can't find a simple way to communicate the id of the user to be removed the modal (where the query is performed, once 'Yes to confirm deletion' is clicked).
I deleted the jQuery, seeing as how this could change how the modal opens and closes.
This is the modal:
< div class = "modal" >
< div class = "modal_wrapper" >
< div class = "modal_title" > are you sure you want to delete this user? < / div >
< div class = "modal_content" >
< div class = "modal_button_no" > n < / div >
< div class = "modal_button_yes" > Yes, delete it < / div >
< / div >
< / div >
< / div >
< div class = "delete_btn" > delete user < / div >
The variable with the user name is:
$user_id
Any help would be much appreciated!
Thank you
It is a fairly simple procedure. Personally I'm not sure that its worth the effort for a box of administration but good we all have different opinions - there is no wrong or it.
Suppose that your buttons delete on your page are anchor tags and you have locked down your database of names to create anchor tags. The value of dir below has been inserted via php through loop and is your RegID.
When you click the anchor tag (that class name "delete") opens a lightbox. You also have to collect the value of "dir" at the time the lightbox opens - happening of value to a hidden in the lighbox code entry field.
$(document).ready(function() {
$('.delete').click(function(){
var record_id = $(this).attr('dir');
$('.record_id').val(record_id);
});
});
The value of the "dir" command is passed to the light table in a hidden form field:
"You have a delete button in the light table with the class of ' delete_record ':
Delete the record
When the user clicks on the button Delete in the light table the value of hidden form field is harvested and forwarded to your page of delete_record.php via the jquery/ajax script below, were also on the same page.
$(document).ready(function() {
$('.delete_record').css('cursor','pointer').click(function(){
var record_id = $('.record_id').val();
;
$.ajax({
type: "POST",
url: "delete_record.php",
data: {
record_id: record_id
}
}).done(function() {
alert( "Record was deleted");
});
});
});
Your delete_record.php would look like below, assuming that you use mysqli or if you are using mysql then you would follow the same delete procedure as usual.
<>
$conn = new mysqli ('localhost', 'root', 'root', 'name');
{if ($conn-> connect_errno)}
echo $conn-> connect_error;
Die (' sorry, can not connect to the moment, try again later ');
}
?>
<>
delete the record
$record_id = $conn-> real_escape_string (stripslashes (trim($_POST['record_id'])));
$conn-> query ("' DELETE FROM names WHERE record_id = ' $record_id ' '");
$record_deleted = "true";
?>
An alert box will appear at the end, confirming that the record has been deleted. You do not have to deploy an ugly alert box - you sends the data to the device of light therapy from the delete_record.php page in a few nice melted in
If you want to be more subtle about it. -
How to pass the album Live view mode Design while working on a fluid page? The drop down option isn't there as if it was on other pages.
You can not. If you want to work with FGLayouts, I recommend drop back to the Release of June 2014 CC before they took the Design of FGLayouts mode.
You can get the version of June 2014 DW direct links below:
Win: http://download.adobe.com/pub/Adobe/Dreamweaver/WIN/CC/Dreamweaver_14_LS20.exe
Mac: http://download.Adobe.com/pub/Adobe/Dreamweaver/Mac/CC/Dreamweaver_14_LS20.dmg
Solution #2: Modify your CSS FGLayout file by adding an X to the code as shown below. This trick DW into thinking that it is a normal page, so you can use the new Design view. NOTE: Do not change the CSS in design Panel. Do it in Code view. Record. Close DW. New launch DW.
/*
Properties Grid Dreamweaver fluid
----------------------------------
DW-num-CLO-mobile: X4;
DW-num-CLO-Tablet: 8;
DW-num-OCOL-Office: 12;
DW-gutter-percentage: 25;
=====================================
Nancy O.
-
How to find the query select bind variables
How to extract the variable name to bind to AS suite of sql queries
' SELECT NAME IN: NAME OF THE DOUBLE '
or
"SELECT * FROM WHERE DOUBLE (: NAME = NAME)".
or
"SELECT * FROM WHERE DOUBLE: NAME IS NULL'."
or
"SELECT * FROM WHERE DOUBLE: NAME | NAME = LAST_NAME'
or
' SELECT * FROM DUAL WHERE: a = 10'
or
"SELECT * from where DOUBLE: A > = 10'.
or
"SELECT * from where DOUBLE: A < = 10 '.
Give a solution using SUBSTR, REGEXP_SUBSTR, please answer quickly
best answer will be marked correct/good...Search: and then search for the following word breaker then have the substr for them: and the separator.
You can build an own function to find the same. -
How to pass a variable to a swf file in another using the Loader?
I'm loading a swf file from another swf using the method as follows:
var myLoader:Loader = new Loader();
addChild (myLoader);
var url: URLRequest = new URLRequest ("myExternalMovie.swf");
myLoader.load (url);
How to pass a variable to the first SWF in the second?
I'm not sure that "passage" is a term there, given that this generally applies to what happens with functions that can host variables to pass as arguments in the.
When using the charger, you can assign an event listener to determine whether the activity of loading is complete and have an event handler that targets its contentLoaderInfo property to the event.currentTarget.content, which in your case would be the loaded swf file. At this point, you can assign a value to a variable in this swf file by targeting...
var myLoader:Loader = new Loader();
addChild (myLoader);
myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadComplete);
myLoader.load (url);
var loadedSWF:MovieClip;
function loadComplete(evt:Event):void {}
loadedSWF = MovieClip (evt.currentTarget.content);
loadedSWF.someVariable = ';?
}
It is probably possible you may also have the loaded swf the value rtrieve by targeting to the parent swf file, which would be both parents away because of the charger is the relative of the SWF loaded... unevariable = MovieClip (parent.parent) .someValue;
-
How to pass the value of the variable record type in the procedure
Hai All
My Question is
I have a table named Emp and the structure
ID Varchar2 (25)
Name varchar2 (25)
Number of salary
And now, I created a folder named Rec_Emp
Like this
Type Rec_emp is made
(Rec_Id varchar2 (25),)
rec_name varchar2 (25).
Number of Rec_salary);
rec_emp emp_record;
I created a SQL type
Now how to pass the value type in the procedure
Thanks and greetings
SrikkanthMYou are looking for something like this
create table my_emp (id integer, name varchar2(100), sal number) / create type my_emp_obj as object(id integer, name varchar2(100), sal number) / create or replace procedure insert_into_my_emp(pEmp_Obj in my_emp_obj) as begin insert into my_emp (id, name, sal) values(pEmp_obj.id, pEmp_Obj.name, pEmp_obj.sal); end; / begin insert_into_my_emp(my_emp_obj(1,'karthick',1000)); end; / select * from my_emp /
-
passing the parameter through links page (navigation)
Hello
suggest me the way to pass the parameter through links in the page navigation.
I tried it in EL, I'm not able to get on the page.
is it a right approach or any other.
Thank you
A
After showing the steps in the similar thread, I found this thread then re-post here.
Pass the connection parameter to connected in portal Builder page
Here are the steps to pass the parameter in a URL to another page:
- Add a custom attribute to the attributes of the current portal (say MyPortal1) page [link Direct: http://127.0.0.1:8888 / webcenter, portal, MyPortal1, attributes ]
OR
Sign in to your personalized Portal (say MyPortal1)
http://127.0.0.1:8888 / webcenter/Portal/MyPortal1
Click the settings (e.g. Pages & portals Actions)-> manage-> all settings
It will take you to the page view of all of the current portal (i.e. MyPortal1).
Then click attributes in the left pane, and you can create/edit/delete the custom attributes for the current portal on the right side.
- Click Add an attribute and specify the following information:
Attribute name = myvar
This is the attribute that we will refer to any page using the EL "MyVar".
Attribute value = #{param.myvarval}
"Myvarval" is the name of the query parameter (i.e. suffix query param & myvarval = TestSuccess will be passed as part of the URL later)
- Now, create a new page "TestPage" and add the element of HTML markup on the page using the composer.
- In the Properties window, change the HTML markup element.
Replace the existing value
#{componentExtensionBundle.OUTPUT_TEXT_TEXT}
with
#{spaceContext.currentSpace.metadata.customAttributes ['myvar']}
- Click apply and then click OK to close the pop-up window.
- Click on save and view Portal
- CHECK: Replace/change the URL the following OR open in a new tab in the browser
Http://127.0.0.1:8888 / webcenter, portal, MyPortal1, TestPage ? myvarval = TestSuccess
and you will see "TestSuccess' message in the"TestPage"rendered using the HTML markup component.
This confirms passing the parameter to a page URL works as expected.
Now, to add a link to the "TestPage" passing a parameter in the URL of the page in another page (Home Page say).
- Now goto homepage, correct it in composer and add the hyperlink element. Click change to set the hyperlink in the Properties window.
- Set the title to display (i.e. the value of the title TestPage)
- Set the Destination URL by clicking on the search icon and choose "TestPage".
Destination is defined with values that resembles
/faces/Oracle/WebCenter/page/scopedMD/sf5926dd1_9e6a_45ab_a99c_d79fabb362c0/Page1.JSPX
Add a suffix '& myvarval = TestWorks' to him.
- Click apply & OK.
- Click on save and view Portal
- CHECK: Since your home portal or the home page, click on the link "TestPage" which brings you to the TestPage and you will see "TestWorks' message in the"TestPage"rendered using the HTML markup component.
I hope it helps.
References:
How to pass a parameter of argument the query URL to a parameter input workflow? (Doc ID 1545808.1)
https://mosemp.us.Oracle.com/epmos/faces/DocumentDisplay?ID=1545808.1
Works with the global attributes in portals
http://docs.Oracle.com/CD/E29542_01/WebCenter.1111/e27738/wcadm_ps_attrib.htm#WCADM11701
-
Hallo,
I have a request based on VO.
The query contains a where clause clause and a bindi variable.
In a managed bean I would like to access the iterator of VO setting the value of the bind variable and read the result.
I found this code it is good start, but I do not know how to set the variable binding.
BindingContext bctx = BindingContext.getCurrent(); BindingContainer bindings = bctx.getCurrentBindingsEntry(); DCIteratorBinding iter = (DCIteratorBinding ) bindings.get("MyVO1Iterator"); iter.execute();
You kindly help me?
Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.
In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.
Sorry if these questions may seem artificial, but I am a beginner, I have many doubts and so I would be happy to receive some tips regarding best practices.
Thank you
Federico
You can use:
iter.getViewObject().setNamedWhereClauseParam("yourBindVar", value);
Note that this approach is used if you have bind variable in the where clause.
To set variables bind to ViewCriteria, you must use VarableValueManager.
This post may be useful for you: binary: how to set the Bind variable values at run time?
Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.
You must set "use VO directly.
For example, from the point of architecture, is probably best to use the method in the model project which will set the bind variable and execute the query.
Or you can use the ExecuteWithParams operation in your the view layer.
In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.
Not to complicate your life
All VO lines are represented as ViewRowImpl class if you already have "custom class".
Finally, you can generate your own ViewRowImpl class if it is necessary for this.
Dario
-
How to pass the value of the run-time file .sh by Oracle procedure
I have a file test.sh that contain
#1/bin/bash
exp test/test@orcl file=/home/oracle/dump/test.dmp log=/home/oracle/dump/test.dmp grants = Y = index constraints Y = Y = (test) owner statistics = none
Exit 0
I craete a work called Create_job_proc in this work, I want to pass the value of job_action is the location of the file test.sh to
/U01/home/Oracle/dump/test.sh and want to spend the test/test@orcl as a variable...
Please suggest me... how to pass the value of Job_Action which will replace the .sh file content test/test@orcl to the value of the time of execution as scott/tiger@hr
Thank you much Parth... It works perfectly...
Thank you all for your help...
-
How to add the chapter name and page not for reference
Hello
How to add the chapter name and page not for reference in indesign CS6.
Thank you
Please try variable notion of text
-
by passing the variable char in the sliders
HI I try to move the tank for the cursor variable, but it is not taking, if I hardcode the values of the slider that he takes
Here's detailed... any body can say why it is not taken and tell me how to pass the values through it...
declare
v_Name tank (6);
cursor c1 (c_name tank) is
Select name, parent, child, relationship status
First name = '% '.
Connect prior parent child =
Union
Select name, parent, child, relationship status
First name = '% '.
connect by prior child = parent
order by 2;
v_c1 c1% rowtype;
Start
v_Name: = ('A');
Open c1 (v_name); - here the value of v_name does not... If like hard-code open c1('c'); then work... I need to pass - value not hardcode
Fetch c1 in v_c1;
dbms_output.put_line (v_Name);
dbms_output.put_line (' name ' |' parent ' |' child ' | ' status "");
While c1%
loop
dbms_output.put_line (v_c1.name |) » '|| v_c1.parent | | » '|| v_c1. Child | | » '|| v_c1. Status);
Fetch c1 in v_c1;
end loop;
Close c1;
enTry it with a varchar2 variable (6)
declare v_name varchar2(6) ; cursor c1(c_name varchar2) is select name, parent,child,status from relation start with name='%' connect by prior parent=child union select name, parent, child , status from relation start with name='%' connect by prior child=parent order by 2; v_c1 c1%rowtype; begin v_name :=('A'); open c1(v_name);---Here the v_name value is not taking.. if hardcode like open c1('c') ; then working.. i need to pass -- value not hardcode fetch c1 into v_c1; dbms_output.put_line(v_name); dbms_output.put_line('name '||'parent '||'child '||'status '); while c1%found loop dbms_output.put_line(v_c1.name||' '||v_c1.parent||' '|| v_c1.child||' '||v_c1.status); fetch c1 into v_c1; end loop; close c1; end
Maybe you are looking for
-
I've had trouble finding my mail app downloads. First of all, they won't in the 'Mail download' folder located in my Finder window. Sometimes they are found in the "Downloads" folder Other times, I can't immediately find their. But if I search th
-
OfficeJet Pro 8600 N911a not connect to the network
Hello. I hope someone can offer a solution to my lack of connection network printers. I followed each step that I can find to understand why the printer is not connecting to the network. Including uninstalling/reinstalling, turn off and turn on all s
-
HP ePrint: now you can send to multiple recipients
See the following link on being able now to send print jobs to the printer and be able to 'Cc', others you need to get the same information to note that you cannot even use "Bcc" because who would do the job to fail. Here is the link, he again lists
-
I have this CD with the music on this topic and I want to do is import the music to an IPAD I have already ripped music at the library of computers but don't know how to do the rest. Thank you
-
(Redirected) Reference Dell 3442 speaker
Just bought my new laptop of Dell 3442 and having problems with the sound from the speaker. the voice is too small even if only I put it at nearly maximum level... need help for this kind of problem. Thank you