Dynamic action in two selection list
Hi allI created two select lists.one is parent of other child.
I can get the child list correctly from the article values parent lov cascading
For example: the company name of parent element values: x, y, z, etc.
x with 3 customers say a, b, c
There is no customer for y
z with 2 customers say e
now, I want to hide the element of the child when the parent having no child.
Now when I select 'y' for the example above, I would like to hide the child element.
How can I do?
Hello
You can do the following:
1. create a hidden page element, say PX_HIDE_SHOW_FLG
2. create a dynamic Action of type 'Set value' on the element parent to update PX_HIDE_SHOW_FLG. You can choose the "value Type" as "body of the PL/SQL function. The code in the function must return "Y" or "n" based on logic (count the number of children under the selected parent). You can trigger this DA on 'change' of the parent element.
3. now, create another DA on PX_HIDE_SHOW_FLG to hide and show the child LOV article based on its value. For example, if value (of the page hidden item) = 'Y', and then hide, another show.
Thank you
Rohit
Tags: Database
Similar Questions
-
Help with dynamic action and the selection list item
G ' Day Apex gurus.
I have problems trying to achieve to trigger the Help window from an element automatically select. A Help window is triggered when it is clicked on the label of an item, but my customer wants to be triguered automatically as soon as the user clicks to view the options in the select list.
I think I should be able to do with dynamic actions but I can't function.
I know when someone clicks on the label of the item selection list trigger this JavaScript
JavaScript:popupFieldHelp('277938589795252851','1545903379570909')
So I want to trigger the javascript also when the user click on the item selection list and pull down the options and for that I think that the dynamic action is the way to go, but I can't do things.
That's what I have to do:
I created a dynamic option as follows:
Name: test
Sequence: 30
Even: click
Selection type: product (s)
Article (s): P1_RATING <-a selection list item
Condtion: - no requirement.
Real Actions
Sequence: 10
Action: Run the JavaScript Code
Fires when the result of the event is: true
Fire on loading the page: checked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
Thank you anyone who can tell me what I'm doing wrong here or bring a solution to my problem to trigger the Help window from an element automatically select.
Kind regards
CarlosHi Carlos,
I've set up a test case of exactly in the same way and it worked fine for me. I've created a page element called P1_DA_DEMO and added some values of the static selection list, then added a help text. I used the settings are lower, I suggest you try again, but also make sure that you have no other Javascript errors on the page. Use a tool like firebug to check.
Name: Action Dynamics demo
Sequence: 10
Even: click
Selection type: product (s)
Product (s): P1_DA_DEMO<- a="" selection="" list="">->
Condtion: - no requirement.Real Actions
Sequence: 10
Action: Run the JavaScript Code
Fires when the result of the event is: true
Fire on loading the page: unchecked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')Scope of the event set a Bind s.
Thank you
Paul
-
Two Select lists with Submit single page branching to different page each?
Hi all
I have a page (No. 1) with two 'select list with Submit"(A and B). This page contains also two branches defined. I want to realize that the first list selection with present (A) would always use the first branching (at page n ° 2) and the select list a second with the submit (B) would use the second fork (at page no. 3).
How can I achieve this? Y at - it a tutorial describing lists of selection and the ramifications?
Thank you for your time.
DanielWhen the selection list submits the page, the value of "motion" is the name of the selection list item. So all you need to do is add a condition to each Directorate-General: Request = Expression 1 and enter the name of the element (top) in the field of 1 the condition Expression.
Scott
-
Newb AJAX - construction hyperlink from two selection lists
Hi people,
Would anyone familiar with care of AJAX to help out me? I am very new to AJAX, and I'm trying to set up a page that generates a URL hyperlink based on two input chooses. By example, if the first select statement was 'IT' and the second 'APPL' the URL to be returned would be
http://Apex.Oracle.com/pls/OTN/f?p=28213:2:803955090371716:no:2:P2_SUPPORT_DEPT, P2_SUPPORT_TYPE:IT, APPL
The reason for this is because I want an easy way for employees to create links in their email signatures that correspond to their assistance and group service. In this way, when a customer clicks the link in the signature of the employee these two selection lists is already selected for customer when they submit comments on this employee.
We invite you to check what I have up here on apex.oracle.com:
WORKSPACE: ARES_APEX
USERNAME: ACE
PASSWORD: h3lpf4l
(MBDR - 28213)
My error console JavaScript told me that two of my functions are not defined, but I know that 'change_support_type()' works is a "show_url()" I think that I probably need a lot of help.
Thank you all for all the wonderful help that you have provided and will provide this forum. :)
-Anton
Published by: sleeper on August 28, 2008 12:07
Published by: sleeper on August 28, 2008 12:29Hello
You had a few problems with your javascript code.
The one that you just had a plain error (wrong number of media which has been lifted) and the error.You select AJAX were working properly, but then to get the other content, you tried pulling XML reuse and analysis and the other which is excessive. He needed just to get the snippet of text and push it into the page.
Here is your http://apex.oracle.com/pls/otn/f?p=28213:4 working page
and here is your new code
function change_support_type(pThis,pSelect){ var l_Return = null; var l_Select = $x(pSelect); var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=change_support_type_page_4',4); get.add('P4_SUPPORT_DEPT',pThis.value); gReturn = get.get('XML'); if(gReturn && l_Select){ var l_Count = gReturn.getElementsByTagName("option").length; l_Select.length = 0; for(var i=0;i
;appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)}}get = null;} function appendToSelect(pSelect, pValue, pContent) {var l_Opt = document.createElement("option");l_Opt.value = pValue;if(document.all){/* why is ie different ask bill */pSelect.options.add(l_Opt);l_Opt.innerText = pContent;}else{l_Opt.appendChild(document.createTextNode(pContent));pSelect.appendChild(l_Opt);} } function show_url(pThis, pThat){ var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=show_url',4);get.add('P4_SUPPORT_DEPT',$v('P4_SUPPORT_DEPT')); get.add('P4_SUPPORT_TYPE',$v('P4_SUPPORT_TYPE')); gReturn = get.get(); $x('drop_content').innerHTML = gReturn;get = null;} You can read more about our Ajax framework here [http://apex.oracle.com/pls/otn/f?p=11933:63] Also when developing AJAX you should use Firefox with the Firebug addon , even if your building for an IE only environment, it makes debugging AJAX and javascript issues much easier. Edited by: Carl Backstrom on Aug 28, 2008 12:56 PM -
dynamic action on the selected value shuttle
Hello
Can anyone help me in this.
I guess a requirement
There is a shuttle Apex and multiple selection is allowed
and there are values such as:-others, first, second
but when we choose other no other value should be able to select
in what other is selected in the shuttle a textbox is displayed by dynamic action
example on https://apex.oracle.com/pls/apex/f?p=76604:3:4326822625865:
workspace:-REEMATEST
username:-test
password:-test
76604 application
page 3
ReemaPuri wrote:
can you give me a link for the dynamic creation of checkbox
FOR EXAMPLE BASED ON CREATED LOV SHARE COMPONENT
Select the column name as the name of column d, r
the name of the table
Boxes are just another way to make a LOV. For a dynamic set of checkboxes, the standard pair of value/label LOV SQL projection is required in the definition:
select initcap(dname) l, to_char(deptno, 'tm9') v from dept order by v asc
If additional values are required, they can be included in the query using unions:
select initcap(dname) l, to_char(deptno, 'tm9') v from dept union all select 'Other', 'OTHER' from dual order by 2 asc
Checkbox events can be handled by dynamic actions as indicated on page 586 of your test App. Note that I prefer to enable and disable the controls on form rather than hiding and showing them that there is less confusion for the user. It is simple to change the disable/Enable dynamic actions to hide and show if necessary.
-
Selection list refresh / 'display additional values '.
I'm refreshing a list of selection with dynamic action and then after with dynamic action to set the value to the max value. The problem is that it assigns the first item in the list. Seems to act as the game happens before the update is completed. I have the option "display additional values" but I can't find a way to set the value of a dynamic action - it does not accept the additional value. This should work?
It's not a bug, discounting is a reminder of the AJAX and success raises an apexafterrefresh event.
You can add a second dynamic action for the selection list:
Event: after refresh
Selection type: point
And then the new value must be available.
The display of the values additional option has another purpose. Explained in the help text to the Apex 5.
Display additional values
An element can have a value of session state that does not occur in the given list of values definition. Specify if this list of values this additional session state value. If you choose not to display this additional session state value and there is no matching values in the list of values, the first value in the list of values is the value selected and displayed.
-
How a select list to cascaded in a table?
Hello
I would like to know how to create a pick list cascading tabular.
In the screenshot next, for example, when select "2081: Alice Fan", the next filed should watch only "ID: name of the element" belongs to Alice.
Usually I do this simply for an article by implementing the SQL query and cascade LOV parent as follows.
However, I can't find it in the form of tables?
One can help with the solution?
I hope that this can be done to reload partially after the first field had changed, but not to present an entire page.
Thank you!
Alice
Hi AliceFan-Oracle,
AliceFan-Oracle wrote:
Please see application 81653, page 2 (Test in the navigation menu).
It's the ERT_TABLE_Item.
If 'point ERT ID' is cascaded by ERT ID,
When select "2221" ERT ID, it takes only the concerts "2521" and "2541" at the point of the ERT ID.
When select "2222" ERT ID, it takes only the concerts '2561"in ERT item ID.
ID ERT and ERT tabular item ID are columns 29th and 30th.
Check your Application-> Page 2 81653 on your instance of apex.oracle.com. I implemented the LOV cascading using the solution of Jari.
Reference: APEX Blog of Jari: Article Cascading select list in the form of
Here are the steps how this is implemented:
- Edited your Page attributes-> section JavaScript-> 'Function and Variable global statement' has added the following code:
(function($){ /*** Cascading select list ***/ $.fn.htmldbCascade=function(parent,onDemand,options){ options=$.extend({ trigger : false, extrVal : false, nullShow : false, nullValue : "", nullDisplay : "- Select -", disAlias : "DIS", retAlias : "RET", loadingTxt : "Loading ...", loadingCss : {"width":"80px"} },options); return this.each(function(i){ var self=$(this); var lParent=$(parent).eq(i); var lSelfVal=self.val(); if(!lSelfVal){lSelfVal="";}; if(!lParent.data("htmldbCascade")){ lParent.change(function(){ var lParentVal=$v(this); if(!lParentVal){lParentVal="";}; $.extend(options.loadingCss,{"height":self.parent().height()}); self .hide() .empty() .parent() .find("div.ui-autocomplete-loading") .remove() .end() .append($("",{"html":options.loadingTxt,"css":options.loadingCss}) .addClass("ui-autocomplete-loading")); if(options.nullShow){ appendOpt(self,options.nullDisplay,options.nullValue); }; $.post("wwv_flow.show",{ p_flow_id:"&APP_ID.", p_flow_step_id:"&APP_PAGE_ID.", p_instance:"&APP_SESSION.", p_request:"APPLICATION_PROCESS="+onDemand, x01:lParentVal },function(jd){ var lExists=false; $.each(jd.row,function(i,d){ if(d[options.retAlias]===lSelfVal){lExists=true;}; appendOpt(self,d[options.disAlias],d[options.retAlias]); }); if(options.extrVal&&!lExists){ appendOpt(self,lSelfVal,lSelfVal); }; self .val(lSelfVal) .show() .parent() .find("div.ui-autocomplete-loading") .remove(); if(options.trigger){self.trigger(options.trigger);}; },"json"); }).data("htmldbCascade",true).trigger("change"); } }); /*** Append option ***/ function appendOpt(pThis,pDis,pRet){ pThis.append( $("",{"html":pDis,"value":pRet}) ); }; }; })(apex.jQuery);
- Edited your ERT_ITEM_ID column and added the following code to query LOV:
SELECT NULL d, NULL r FROM DUAL WHERE 1 = 2
- Application G_TEMP element created in shared components-> section elements of enforcement with Protection of Session State"set to"Unrestricted ".
- Created AJAX callback information Page at the request of GET_ERT_ITEM_ID process with the following code:
DECLARE l_sql VARCHAR2(32700); BEGIN IF APEX_APPLICATION.G_x01 IS NOT NULL THEN APEX_UTIL.SET_SESSION_STATE('G_TEMP', APEX_APPLICATION.G_x01); l_sql := ' SELECT ERT_ITEM_ID||'': ''||VENDOR_ID DIS, ERT_ITEM_ID RET FROM ERT_TABLE_ITEM WHERE ERT_ID = :G_TEMP ORDER BY 1 '; APEX_UTIL.JSON_FROM_SQL(l_sql); ELSE HTP.prn('{"row":[]}'); END IF; APEX_UTIL.SET_SESSION_STATE('G_TEMP', NULL); END;
- Created the dynamic action named "Set LOV cascade after refresh and onload", with the following attributes:
Event: After refresh
Selection type: region
Region: Update purchase order (15)
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:
$("[name=f30]").htmldbCascade( "[name=f29]", "GET_ERT_ITEM_ID",{ nullShow:true, nullDisplay:"- Select -" });
Assigned items: no
- 'Action' button "ADD a line" changed "defined by the dynamic Action. Created another dynamic action named "Cascading select list Set for the new line" with the following attributes:
Event: click on
Selection type: button
Region: ADD Row
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: No.
Code:
apex.widget.tabular.addRow(); $("[name=f30]:last").htmldbCascade( "[name=f29]:last", "GET_ERT_ITEM_ID",{ nullShow:true, nullDisplay:"- Select -" });
Assigned items: no
Kind regards
Kiran
-
Selection list cascading in the dialogue window
Hello
I'm developing in Apex 4.2.5.
I have an Apex with a classic report region, in which a link edit page opens a dialog window (in the same page apex) to edit the selected line. The same dialog window is used to create a new line. The dialog window contains a cascading pick list. Two selection lists are defined to display NULL values and correctly fill in mode 'create '. My problem is that mode "Modify" the list of the second selection is not good value. The second selection list contains it however the right subset of values according to the parent, select the list and therefore don't does not contain the correct value, but it is not selected.
I use a javascript function to fill in the fields in the dialog.
....
$s ("P3_EVENT_TYPE", arguments [1]);
$s ("P3_EVENT_SUBTYPE", [2] arguments);
....
Then the display of the dialog window
openDialog ('editEvent');
The population of P3_EVENT_SUBTYPE list seems to happen but sometime after that all the fields in the dialog were assigned and the dialogue window displays.
I see that I need to somehow update the list of selection in cascade, P3_EVENT_SUBTYPE, before assigning the value. My problem is how can I do this in the same javascript function?
Kind regards
Derek
Eventually answered my own question-
I created a hidden field in which to store the value of the event subtype.
Created a dynamic of Action, after refresh of affected P3_EVENT_SUBTYPE subtype value = hidden field event.
-
Hello
I searched for the answer for a while now, but could not find a solution to my problem. It's a rather trivial issue, but after dealing with more urgent problems, I stuck with it and I can't move forward I use Apex 4.2.1
OK, lets start with a description.
I have two selection lists. After making a choice in the first, I would like to than the second value to change. It is not cascade LOV case, however, at least I don't.
Let me give you an example. Suppose we have a table with name and default to the occupation.
Name By default occupancy John Doctor Mark Firefighter George Firefighter Tom Concierge End user first selects the name in the first list, then the occupation of another. It's perhaps not clearly in the example given, but the order of the questions.
What I want is to force a change in the second value in the list after a choice in the first. So after the name is chosen, the occupation should switch to the default.
The assignment is the most typical, but not the only one. So I want the end user to be able to change the occupation if necessary. Tom of sense is not to be janiotor, it can be whoever he wants this is why it is not cascade LOV problem.
I tried with dynamic action - definition of value and then refresh. It works when the second selection list is the text field. I can't find a way to make it work with another selection list.
Hope you can help.
Concerning
AEMs salvation,
What I wanted with display and return value, you usually have a list of selection like this query:
SELECT occupation d, occp_id r
OF professions
If your return value is an identifier. To use the text as return value is rather rare. Where my question, because obviously you must select the return value in your query, NOT the display value.
So let me explain what is a set value. It takes the value of the server by using your query and AJAX in the background, then uses Javascript to set the value of the item in the browser.
At this point your selection list still has the OLD value in the session. Then, you do a refresh and the element uses the old value, and it seems that nothing happens.
So solution:
-clear default values, you don't need those
-get rid of refresh it in your DA
Kind regards
Joni
-
Refresh the report area of PL/SQL (not Page) using the value of the select list
Hello
I have a report region based on a "body of the PL/SQL function returning a query'which SQL is generated on the selection of a value of an element from the selection list, select action list is"Redirect and set", but this causes the entire page refresh rather than just the region report." I tried to update the report using only a dynamic action on the item list select (Action now reset to 'None'), but now the report does not appear on the choice of the list. Can someone suggest a solution that will allow me to update this report without refreshing the page? I use APEX 4.2.2 and the syntax of the statement is as follows:
DECLARE
v_statement VARCHAR2 (500);
BEGIN
SELECT query_text
IN v_statement
OF sql_queries
WHERE query_id =: P2_QUERY;RETURN v_statement;
END;
where P2_QUERY is Select list item,
Kind regards
Kevin.
KevinFitz wrote:
The displayed report region is subordinate to the point P2_QUERY is NOT NULL. I guess that the region appears not is because the Action for the select list item is set to None, and so P2_QUERY is always NULL.
No, the region does not appear because it is subordinated to the P2_QUERY being NOT NULL. This means that the region of report never exists on the page displayed in the browser, so it cannot be updated dynamically. (Dynamic updating is not to evaluate the conditions of the region, and she makes only the content of the report, not the whole region again).
Remove the condition on the region to report, check the update works and then go back on what exactly are the requirements here. If you want to the area appear only when P2_QUERY has a value, and you want it to be regenerated without submitting and reposting of the page, the region must then be hidden rather than conditionally restored and shown via dynamic when action P2_QUERY Gets a value.
I tried to add a further Action for the event real value DA but has been a mistake, as stated above,
All irrelevant if Page to submit items on the region is used correctly.
-
Dynamic action to display the button
Hi all
I use Apex 4.1
I want to build a dynamic action:
If a value in the select list is changed - a button must be indicated.
It does not work!
Yes, I did:
In the model of button:
either:
< button value = "" #LABEL # "class ="grey button"type ="button""
#BUTTON_ATTRIBUTES # >
< span > #LABEL # </span >
< / button >
or this:
"< button value =" "#LABEL #" class = "grey button" type = "button" onclick = "#LINK #
#BUTTON_ATTRIBUTES # >
< span > #LABEL # </span >
< / button >
The button:
The button attributes:
ID = "button_dyn_action".
In dynamic action:
Event: change
Selection type: elements
Product (s): P51_KW_ID
Condition: No strings attached
Action: show
Fires when the result of the event is: true
Fire when the Page loads: no
Items affected
Selection type: DOM object
DOM object: button_dyn_action
Would be nice to get help in this forum about this, as a dynamic action to display the buttons are not described anywhere!
Published by: oraman on December 12, 2011 07:42oraman,
I think this thread is cursed. He deleted my answer!
I made a mistake in my first post. Your model of button should look like this:
and you must include the following in your attributes of button, then your button is hidden when the page loads:
style="display:none;"
Here's a demo: http://apex.oracle.com/pls/apex/f?p=43401:34:0
See you soon,.
Janet TysonPublished by: Tyson Janet December 12, 2011 10:30
Published by: Tyson Janet December 12, 2011 10:33
-
Using AJAX code for the conditional selection list.
Hello
I use AJAX code for the first time, I have no knowledge in java, I got the code from this forum and try to manipulate my requirement.
My requirement is that I have two selection lists, host_name) 1 and 2) database_name.
As soon as I pick/choose the value of host_name select list, I need to fill in only the databases on this particular host. I don't want to send the page for this action.
Here is the code, thank you if anyone can help.
On request the code application process:
-----------------------------------------------------
declare
number of l_counter;
l_o_name varchar2 (2000);
Start
owa_util.mime_header ("text/xml", FALSE ");
HTP.p ('Cache-Control: non-cache');
HTP.p ('Pragma: non-cache');
owa_util.http_header_close;
HTP. PRN ("< select > '");
for rec in (select "ORA_DATABASES_VW". "' Database_name ' as 'database_name ',.
'ORA_DATABASES_VW '. "" DB_ID "as"DB_ID ".
of 'ORA_DATABASES_VW '.
where 'ORA_DATABASES_VW '. ("' HOST_NAME ' =: TEMP_ITEM)
loop
HTP. PRN ("< option value ="' | rec.db_id |) '">' || Rec.database_name | ("< / option >");
end loop;
HTP. PRN ("</select > '");
end;
Header HTML on this page:
=================
< script language = "JavaScript1.1" type = "text/javascript" >
function get_List_XML (source_item, target_item) {}
var v_Target = html_GetElement (target_item);
var v_Source = html_GetElement (source_item);
var ajaxResult = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = POPULATE_LIST_XML', 0);
ajaxResult.add ('TEMP_ITEM', source_item.value);
var v_result_xml = ajaxResult.get ('XML');
If (v_result_xml & & v_Target)
{
var options_Contents = v_result_xml.getElementsByTagName ("option");
v_Count = options_Contents.length;
v_Target.length = 0;
for (var i = 0; i < v_Count; i ++)
{
var v_opt_xml = v_result_xml.getElementsByTagName ("option");
appendToSelect (v_Target, v_opt_xml.getAttribute ('value'), v_opt_xml.firstChild.nodeValue)
}
}
}
function appendToSelect (target_item, option_val, option_content) {}
var v_Opt = document.createElement ("option");
v_Opt.option_value = option_val;
{if (document. All)}
target_item.options.Add (v_Opt);
v_Opt.innerText = option_content;
} else {}
v_Opt.appendChild (document.createTextNode (option_content));
target_item. AppendChild (v_Opt);
}
}
< /script >
Attribute of the form in the host_name column element. P935_INSTANCE_DB_NAME is my page for database_name.
OnChange = "get_List_XML (this,"P935_INSTANCE_DB_NAME").Feel free to mark the answers useful or correct ;)
-
tabular cascading selection lists
APEX - 4.1.0.00.32
Version of DB - 10 g
Web - OHS server architecture
Browser - IE8
Theme - 9
Hello
I have a tabular layout with two selection lists, I would like to select a value from the first list that will help determine what appears in the second list. The name of the column in the first select list is 'DL_DETAIL_PROJECT_ID', so I wish I could have a charly second selection list that looks like
Select d, r id desc
< table >
where < other id of the table > = DL_DETAIL_PROJECT_ID
but I don't know how to get the value of DL_DETAIL_PROJECT_ID?
Also the list of regular article values of the shows an option for cascading lists, but the form of tables, list of the values section is not, is it possible to have cascading lists in a record on a tabular presentation?
Thanks in advance for any help.Yes you can. See the links provided:
http://Apex.Oracle.com/pls/Apex/f?p=39514:1:
http://www.inside-Oracle-apex.com/generic-solution-for-cascading-select-listslovs/
http://dbswh.webhop.NET/dbswh/f?p=blog:read:0:article:2003800346210117 -
Hi all
I need to hide/show buttons with dynamic action, in the Actions of true/false, I tried with the object DOM and selector withjQuery, but it does not work.
Can someone help me, please?
SergioSergio,
As you guessed, buttons are currently not well supported with dynamic actions, something we hope to treat in the future. However, it is possible to work around this problem. First of all, I assume that you use the "Template" based keys: and not "HTML". The "HTML" buttons automatically generate an ID set to the value of the button name, so if you tried to use "DOM object" with the value of button name, then this should have worked. The "HTML Code" buttons are certainly easier to control with dynamic actions, however if you're set on using the buttons "Template" based, it is a bit more complicated, but still possible.
The fundamental problem is that "Template" based button generate an ID has the default value, and the simplest for dynamic steps control the individual buttons (and any element) is by referencing by ID. In addition, there is no substitution string available in the template of the button to the name of the button (only LINK, LABEL, BUTTON_ATTRIBUTES, and BUTTON_ID), so you can't do this on the side of the model. (I know there is a BUTTON_ID, but it is the internal ID, and it is a different set of challenges, I don't think it's better to continue to do this). If we want to give the button ID, the name of the button. To do this:
- Make sure that the substitution string #BUTTON_ATTRIBUTES # is included in your button template, something like:
- In your button, verify that the template is selected, and then you have to specify the ID attribute, whose value can be given in the field "attributes button" the same as the name of the button:
id="my_button"
You encounter so, essentially, to reproduce the name of the button, as well in the name of the button and the added value of ID ideally, you'd be able to do this in the model, as explained, but this is not possible.
- Now, you can reference this button against the 'affected elements' dynamic actions, using a selection of type "Object DOM" and the value of the button name / ID specified.
Sorry it's a bit lengthy. As explained, based HTML buttons are certainly easier currently, you don't have to worry about all that extra work to get the generated ID, it's right there already. And in a later version of the SUMMIT, we want to allow just completely declarative selection of dynamic action buttons that work, without having to make these types of additional solutions.
Hope that helps.
Anthony.
- Make sure that the substitution string #BUTTON_ATTRIBUTES # is included in your button template, something like:
-
Slight problem of AJAX selection list, I hope...
I probably looked at all the examples that uses AJAX to fill selection lists that are out there and eventually got a job almost completely.
In my application, I use a form on page 23 to create a folder and then also use a form on page 22 to update a record. Two of these pages, I have 2 selection lists that use AJAX to complete each other. On my page of form creation, these two select lists display properly and correctly submit a report page.
Now, when I click on the document I just create the homepage, I get redirected to the update (page 22) page where I just submit all items are displayed correctly except the second selection list. The second selection list displays the correct list of the elements in the selection list, not the one I had just chosen. What is shown is the first option in the selection list, no matter what I had selected when I created the folder. Always the first option display anything in my code?
Thank you
Deanna
For example:
My current output:
P.23 (creation of registration)
Parameters:
: P23_CASE_NUMBER - 9999999999
: P23_CONT_FACTOR_CATEG - driver distracted by
: P23_CAUSES - other electronic devices
PG.22 (update record)
Parameters:
: P22_CASE_NUMBER - 9999999999
: P22_CONT_FACTOR_CATEG - driver distracted by
: P22_CAUSES-Mobile (cell) phone (WRONG)(first option in the list)
--------------------------------------------------------------------------------------------------------------------------------------------------
The output that I would see:
P.23 (creation of registration)
Parameters:
: P23_CASE_NUMBER - 9999999999
: P23_CONT_FACTOR_CATEG - driver distracted by
: P23_CAUSES - other electronic devices
PG.22 (update record)
Parameters:
: P22_CASE_NUMBER - 9999999999
: P22_CONT_FACTOR_CATEG - driver distracted by
: P22_CAUSES-other (CORRECT) Electronic Devices
Current code page 22 (Update Page):This is from the Header HTML --------------------------------------------------------- <script language="JavaScript1.1" type="text/javascript"> function get_TASK_SELECT_XML(pThis,pSelect){ var l_Return = null; var l_Select = $x(pSelect); var get = new htmldb_Get(null,$x('pFlowId').value, 'APPLICATION_PROCESS=TaskXML',0); get.add('WORK',pThis.value); gReturn = get.get(); gReturn = get.get('XML'); if(gReturn && l_Select){ var l_Count = gReturn.getElementsByTagName("option").length; l_Select.length = 0; for(var i=0;i<l_Count;i++){ var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
}
}
get = null;
}
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
}
}
</script>
This is the application process - TaskXML
--------------------------------------------------------
begin
owa_util.mime_header('text/xml', FALSE );
htp.p('Cache-Control: no-cache');
htp.p('Pragma: no-cache');
owa_util.http_header_close;
htp.prn('<select>');
htp.prn('<option value="' || -1 || '">' || ' - Select-' || '</option>');
for rec in (select cause , cause
from cause where categ = :WORK)
loop
htp.prn('<option value="' || rec.cause_number || '">' || rec.cause || '</option>');
end loop;
htp.prn('</select>');
end;
Hello
There are a number of issues here:
1. remember that creation and editing features are on TWO different pages - when you refer to "the page is not save...". ' is in fact another page
2. in the CHART table, you have an ID column AND a column RECNUM. You use the RECNUM column in the report link. In the CHART table, there are plenty of duplicates in the column RECNUM, which made it impossible for me to test - whenever I've created a new record that he got the same RECNUM value as an existing record, and I couldn't change then my new record as the process of "search...". ' incorrect 'more than one folder. You must use the ID column in the link, because it is unique
3. on the selection of CAUSE list, you had a few items in quotes - I have no idea why. It was actually a good deal to do for your original problem. During the construction of the selection list, the value of the CASE is used as the VALUE attribute on the OPTION tag by enclosing it in quotes. What were you end up with is: < OPTION VALUE = '"sometext" ' > 'etc' < / OPTION >. The VALUE is, therefore, ""-an empty string. I removed the quotes from the data
4. more importantly, as the CAUSE table made a unique ID column, this should be used as a return value for the list and therefore, the value stored on the CARD table. If you do this, you use the quotation marks if they are in some casesAndy
Maybe you are looking for
-
Heads up to all my iPhone 6 s failed to reboot after performing a full update. He has been connected to my work that does not have iTunes installed, only the necessary drivers to allow access from the Win7 Explorer iPhone laptop. The phone is connec
-
The code appears in the Explorer, but does not exist in Firefox
I'm trying to update an older html site by adding a link in the sidebar on Twitter and Facebook. It looks fine in Explorer, but the code is just not in Firefox. It simply is not there. What would be the cause of Firefox to remove two chiclets with a
-
Satellite A500-19N - Wlan switch between on and OFF in battery mode
Hallo, I bought a new A500-19N Satellite three days ago and one have the problem,When I used the laptop battery, the wlan switch mode between connect and disconnect.With powersupplier, I have no problem. All energy wlan settings I adjusted to full pe
-
Re: Disabled the connection Wireless on Win 7 - Portege R600
I installed Windows 7 (new installation) on Toshiba Portege R600 laptop and the built in 3 G modem does not work.When I run Toshiba Wireless Manager, he wrote "the Radio is off. To activate, activate Mobile switch. ». I'm sure that this switch is on,
-
Have 4 pc and ask suggestion: how to clean house. One's Windows 10, 64-bit, second is that Windows 7 HP, 64-bit and two laptops Windows XP 32-bit. Thanks to advans