Problem of setting a value for the hidden item click on the button with processes action or pl/sql dynamic
Apex 4.1
Oracle 11g
I have a page which consists of a main and several sub-regions area. I have a pl/sql process in after the header SET_DISPLAY(:P400_DISPLAY:='MAIN';))
Three subregions have a contional show where P400_DISPLAY = STORE. It works in the hiding of the sub regions.
Now, I want to change the value P400_DISPLAY to the STORE to show the subregions when I hit a button.
I tried to create a dynamic action for the click on the Add button, but get the following error:
The selected button uses a model of 'button' that does not contain the #BUTTON_ID substitution string #. |
I went to the models and found:
Substitution string | Referenced | De | Description |
---|---|---|---|
#LINK #. | Yes | Model | To be used in an attribute "href". |
#JAVASCRIPT #. | NO. | To be used in an "onclick" attribute | |
#LABEL #. | Yes | Model | Button label |
#BUTTON_ATTRIBUTES #. | NO. | The attributes button | |
#BUTTON_ID #. | NO. | ID generated button will be ID either the static button if defined, or if not will be a generated ID internally in the format 'B ' | [Internal ID of the button. |
I then tried to create a page process, pl/sql,: P400_DISPLAY: = 'STORE '; If the button is pressed. The action of the button is submit page. However, it does not change the value of P400_DISPLAY and the subregions are hidden.
Suggestions please on how to fix the template or change the value of P400_DISPLAY?
The question of the root, it's that, even if you change the value of the element of your page, it is not visible to other areas of the page until it is in the session. Thus, any other action based on the value of the element of your page. the visibility of a control, a report based on the value of the item, etc. will be affected by changing the value of the item page until it has been changed in the session. Even after that, items are stored in the session, then you must do something to influence the revalued value. To see the effect of this, observe that your page will load and assesses the value of the element of your page, it sees which is the "MAIN" and mask areas. However, he didn't reassess after that.
Then; your choices for this value set at the session are send the page, or use JavaScript to set the value in the session. If you use the latter, you will have to do extra work to make visibility tests be re - run, so, let's stick with the submit method.
What you did above sounds correct to do this but, there are a lot of decisions, that you might have done that may have caused things to do not occur in the correct order.
First of all, we will confirm that what I describe above is your problem. From the development environment, load the page, click on the button to change the value and submit. Now, click on the link marked the Session. He is always at HAND? If the answer is "Yes"; That's your problem.
Let's start with your calculation after the header. You set it to * only * run if the current value of the element of your page is null? If this isn't the case, it's your problem.
Load the Page-> Item set to 'Hand' by calculation-> click on the button--> Item set to STORE-> Submit-> Page Load-> point by calculating the value 'hand '.
See the problem?
Assuming that's not the question, you have created a branch to the same page, right? What is your process for the branch point? Is it * after * Validation, computation etc.? Because if not, you are not changing the value before that didn't get to submit.
I bet that's the first question, but take a look at these.
See you soon,.
-Joe
Tags: Database
Similar Questions
-
Set a value for the range selector
Hello
I'm trying to set a value for a range by script selector but without success.
Here is my line of code:
-app.project.item (1).layer("Text1").property ("ADBE Text properties") .property ("ADBE Text Animator").property("ADBE_Text_Selector").property ("ADBE Text Index End") .setValue (3);
the error I get is "Undefiened is not an object.
Maybe the property method does not work for the range selector.
I am rookie in script... that could explain the issue
Thank you
Aurélien
Looks like you're missing a few steps. A host of text is included in the Group of text animations. A range selector is in the Group of selectors of text. Each of them can be referenced by name or index (you can have several animators and selectors).
App.Project.Item (1).layer("Text1").property ("ADBE Text properties") ("ADBE Text animators") .property .property (1).property("ADBE_Text_Selectors").property (1) .property ("ADBE Text Index End") .setValue (3);
I recommend you google and download the script "GimmePropPaths" from Jeff Almasol. Invaluable for this kid to reference.
Paul
-
Apex. Submit in javascript do not set a value for the element
Hi all
I work with Application Express 4.1.1.00.23.
I am trying to use this
in order to assign a different value to P30_SELECTED_ROW_ID, and depending on demand, run the processes corresponding, but even if the beginning of the process correctly the value of the element sucks.apex.submit({request:parRequest,set:{'P30_SELECTED_ROW_ID':parID},showWait:true});
I also try to call the apex.submit using a javascript function to check the parameters passed and the value of Thierry is correct and NON NULL .
Thanks in advance for any help or suggestion.
AlexHello
article P1_SELECTED_ROW_ID is about to "view only".
If you replace this 'hidden' and unprotected, it should work.But because of the check constraint DEMO_CUST_CREDIT_LIMIT_MAX credit_limit<= 5000="" there="" will="" be="" an="" error="">=>
Good luck, Erik-jan
-
How to set default values for the GET_SEARCH_RESULT Service
Hello
Can someone help me to pass values by default for search results
3:setLocalValues:QueryText,: 0:null
< td > < table > GET_DATA_ACCESS_PAGE
DocService < td >
50
StandardResults
null
value Null < br >
! csUnableToRetrieveExpiredList < table >
< td > 3:setLocalValues:QueryText,: 0:null
3:doScriptableService:GET_SEARCH_RESULTS:0:null < table >
I want to pass parameters such as below
QueryText = dDocType < start > "has".
Ignore my previous mail. It should be Mappername and not DocService. This one works for me. Just change the name of the service and the querytext.
CUSTOM_SEARCH_RESULTS SearchService 33 StandardResults null null
!csUnableToRetrieveSearchResults3:setLocalValues:useOnlyLocalForDpTrigger,1,QueryText,`BCD` xComments:0:null 3:getSearchResults::0:null 3:loadProfileForRequest:Search:0:null -
ADF: How to set default values for the attributes of each Insert online?
Hello
I am new to the ADF. I'm developing a simple Application from merger where a column of af: table has to be displayed with the user name (default) on each insertion.
I tried using below EL:
< af:inputText value = "#{null == row.bindings.SalesPeople.inputValue?" "{userBean.strUserName: row.bindings.SalesPeople.inputValue}"...
And I am able to display the logged in user name by default on the side of the user interface, but the name of the user isn't getting recorded in the database.
The action that I used to insert a new line is "CreateInsert".
< af:commandButton text = 'Add new record' id = "cb1" actionListener = "#{bindings." CreateInsert.execute}"partialSubmit ="true"/ >
Please help me how to solve this problem...
Thank you
Alexander
Thank you all,
I was able to solve this problem in action appellant and here is the code snippet
actionListener = "#{bindings." CreateInsert.execute}"action =" #{testBean.getSalesPeople} ' "
partialSubmit = "true" / >
----
public void getSalesPeople() {}
Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry (); UserInfoBean userBean = (UserInfoBean) JSFUtils.getManagedBeanValue ("userBean"); DCIteratorBinding quoteIter = bindings.findIteratorBinding("SalesQuoteView1Iterator"); RowSetIterator quoteRSIter = quoteIter.getRowSetIterator (); RowKeySet rowKeySet = m_SalesQuoteTbl.getSelectedRowKeys (); If (rowKeySet! = null & rowKeySet.size () > 0) {} Iterator rksIterator = rowKeySet.iterator (); The list rowKey = (List) rksIterator.next (); Key = (Key) rowKey.get (0); Line currentRow = quoteRSIter.getRow (key); currentRow.setAttribute ("Sales", userBean.getStrUserName ()); } Appreciate your point of view on my solution.
Thank you
Alexandre Ali
-
set up forms for the execution with pure java
I know that the file formsweb.cgf is where I can fix this, but that someone has
with java WORKNG pure (without jinitiator) and has any problem to navigate between fields?
EMH is my java section in formsweb.cfg
[appjava]
pageTitle = Java Forms Version 10.1.2
Form = init.fmx
envFile = javaenv.env
baseHTML = webutilbase.htm
baseHTMLjinitiator = webutiljpi.htm
baseHTMLjpi = webutiljpi.htm
baseHTMLie = webutiljpi.htm
webUtilArchive = webutil.jar, jacob.jar
Archive = gif.jar, frmall.jar, laf_1012.jar
lookAndFeel = oracle
imageBase codeBase =
separateFrame = true
networkRetries = 30
and the file javaenv.env (without the commented lines)
-------------------------------------------
ORACLE_HOME = / opt/oracle/ias
FORMS_PATH = / opt/legadmi/formas: / opt/legadmi/pll: / opt/oracle/ias/forms: / opt/legadmi/webutil/forms
WEBUTIL_CONFIG=/opt/legadmi/webutil/Server/webutil.cfg
FORMS_RESTRICT_ENTER_QUERY = FALSE
CLASSPATH=/opt/Oracle/IAS/forms/Java/laf_1012.jar:/opt/Oracle/IAS/forms/Java/gif.jar
PATH = / opt/oracle/ias/bin
GRAPHICS60_PATH =
LD_LIBRARY_PATH = / opt/oracle/ias/lib: / opt/oracle/ias/jdk/jre/lib/i386: / opt/oracle / / jdk/jre/lib/i386/ias Server
-------------------------------------------------
He begins to java, but I can't navigate between fields, in some forms,
any help?
Thank you!Solution: migrated to 11g
-
Toggling the buttons with different actions
I have 4 buttons on the stage, and each button is correlated to a separate movieclip.
Btn1 - mc1
btn2 - mc2
btn3 - mc3
btn4 - mc4
I want each mc appear when corresponding btn is clicked, but it must be the only mc on the stage... which means that some mc was currently must disappear. I played with many had to make this work, but I know there is a more efficient method for code to do so than the code that I have below. And I won't use any scenario.
import com.greensock.TweenMax;
com.greensock.easing import. *;
var currentTool:MovieClip;Btn1.addEventListener (MouseEvent.CLICK, onToolClick);
btn2.addEventListener (MouseEvent.CLICK, onToolClick);
btn3.addEventListener (MouseEvent.CLICK, onToolClick);
btn4.addEventListener (MouseEvent.CLICK, onToolClick);function onToolClick(me:MouseEvent):void
{
currentTool = me.target as MovieClip;
If (currentTool is btn1)
{
TweenMax.to (mc1, 3, {alpha: 1});
TweenMax.to (mc2, 3, {alpha: 0});
TweenMax.to (mc3, 3, {alpha: 0});
}
ElseIf (currentTool == btn2)
{
TweenMax.to (mc2, 3, {alpha: 1});
TweenMax.to (mc1, 3, {alpha: 0});
TweenMax.to (mc3, 3, {alpha: 0});
}
ElseIf (currentTool == btn3)
{
TweenMax.to (mc3, 3, {alpha: 1});
TweenMax.to (mc1, 3, {alpha: 0});
TweenMax.to (mc2, 3, {alpha: 0});
}
else {}
return;
}
}If your buttons are movieclips, then you can assign a number to each, and allows to treat interpolations more generically...
Btn1. Num = 1;
btn2.Num = 2;
btn3. NUM = 3;
btn4. NUM = 4;function onToolClick(me:MouseEvent):void {}
currentNum = .num MovieClip (me.currentTarget);
for (var i: uint = 1; i<5;>5;>
if(i == currentNum) {}
TweenMax.to (this ["mc" + String (i)], 3, {alpha: 1});
} else {}
TweenMax.to (this ["mc" + String (i)], 3, {alpha: 0});
}
}
} -
Hallo,
in my tables and forms (created from VO istances) there are some areas for which, insert and update, I calculate and set the value programmatically when a record is created or updated.
In some cases, I put the necessary values using the 'CreateWithParams' in the workflow diagram...
In some other ones, I associate an action, a bean, a created button drag-and - drop operation 'CreateWithParams' of the istance VO...
public String cwpButton_action() { BindingContainer bindings = getBindings(); OperationBinding operationBinding = bindings.getOperationBinding("CreateWithParams"); // here I calculate and set the needed params // ... Object result = operationBinding.execute(); if (!operationBinding.getErrors().isEmpty()) { return null; } return null; }
And is ok if I can calculate the values for the attributes before a new record is created.
But the approach that I have used to define the attributes (for new and updated records) whose value should be caluclated after the user has filled in the fields, before committing to the database?
Thank you
Federico
Federico,
Let me first tell you that our code is activity masking errors (the cache instead of working on them).
- If (! operationBinding.getErrors () .isEmpty ()) {}
- Returns a null value.
- }
- Returns a null value.
This means that you do not check the errors at all. You must at least print a log with the error message, you receive, if you get one!
To solve your problem, you override the method prepareForDML() of the entity or entities in question. You can calculate and set the necessary attributes until they get engaged in the doDML(). Do not use doDML() because it is too late in the life cycle.
Timo
-
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;
-
When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?
Hi kevin7frg,
You can go to "file > create > scanner > configure presets PDF»
The dialog box that appears, you can choose 8.5 X 11 as the default width and height of PDF pages to scan.
Hope that helps.
Kind regards
Ana Maria
-
Syntax to set a default value for the metadata of Web site field
In my profile, I have a rule where I did the infoOnly metadata xWebSites field and define a default value like this:
< $dprDefaultValue = # active.xWebSites$ >
Y at - it something I am doing wrong? Incorrect syntax?
Thank you!!
I found this in the documentation of the Site Studio:
"To identify the ID of an article or a website, open the page to check content on the content server and click Browse next to the"Section of the Web Site." In the window choose the Web Site Section, select your Web site and notice the ID in brackets next to each section (Figure). »
Can I set the default value for the ID?
-
DEU-00014: invalid value for the setting, "include".
Hi, I need to do an export of paintings from a schema and a particular query executed will apply to all the specified tables in "INCLUDE = TABLE: '('TBL1', 'TBL2') IN' in the command expdp.»
Now, I get the question in this setting INCLUDE. I have about 200 paintings to be included and I add this parameter INCLUDE in a separate parameter with all table names 200 file in Informatics and with the help of this parameter file in the expdp command.
Error message I get:
DEU-00014: invalid value for the setting, "include".
When I use the same process for 2 tables, this works very well. I think that there is a limit to the number of characters that can be used in the INCLUDE parameter. If so, then how do I use expdp to select only those 200 tables of 500 paintings in my diagram. I'd appreciate any help on this. Thank you.Hello
I'm sure that the limit is 4000 characters, but there are fairly simple workaround.
Create the table my_tabs (a varchar2 (30));
insert into my_tabs values ('your_table_name');
Repeat this step for each of your 200 tablesinclude = TABLE: "in ((SELECT from MY_TABS)) '"
You may need to mess you with the quote, but the value you were using is just an expression. It is only by using a different expression.
Dean
-
Best way to set the default values for the form elements
Hello
I have a form with a lot of defaults that is mentioned below...
I am currently using calculation-> after presents... then when we create/update a record... these computaion takes place and the default value for the inserted values get... THIS WORKS PERFECTLY WELL.Field value created by :APPL_USER creation_date SYSDATE last_updated_by :APPL_USER last_update_date SYSDATE item1 value1 item2 value2
I want to know... If this approach is fine OR we can have a better approach to achieve...?
Thank you
DeepakHello
I think it's good if it fits your need.
But why you have these fields in the form?
created by: APPL_USER
CREATION_DATE SYSDATE
last_updated_by: APPL_USER
last_update_date SYSDATEThe user can enter the ones?
I thought that those who are to audit and I would fill those drop with trigger in the database.
So that you get the same "correct" values if you need to manipulate the data with example of sql clientBR, Jari
-
Can set the default value in the field with the rule
I have a rule to set the xWebStartDate to dateCurrent(), but it does not work. I disabled all other rules, so there is no conflict. This rule is only to try to fix the date of xWebStart, nothing else.
'Use the activation of rule condition' is checked. I selected 'Action of use' and 'check in Selected. I have added the xWebStartDate field and I have a default custom
< $dprDefaultValue dateCurrent () = $ >
Thus, it is for content that already exists and someone is to check in a new revision.
I know that my rule works, because I added the dDocAuthor field and set it to "infOnly" and that works. This problem occurs if the action is updated also. But for check-ins again, I put the xWebStartDate to dateCurrent successfully.
Update: it's existing content, which already has a xWebStartDate. The rule must replace the existing value.
Edited by: ironarm February 1, 2013 17:58In your case, you cannot use default value for the new revisions, because your content is already a value for the metadata field.
Alternative:
(1) change your rule
(2) on the general tab, check "Use activation Condition rule" and click Edit
(3) in 'Edit Activation Condition' window, click on the tab "side effects".
(4) add the following...<$if isCheckin $> [[%or you can also use (IdcService and IdcService like "CHECKIN_SEL_FORM")%]] <$xWebStartDate=dateCurrent()$> <$endif$>
-
Definition of default values for the inputs of button and the cursor?
Hello
I use Labview 8.5.1 and have a few entries button and zipper-type on my front. How can I set some of them having specific (as opposed to zero) default values when the VI is executed?
Thanks for the help
The default value for the type of slide of entry (or button).
Right-click on the control.
Select "Operations on the data" > "default to the current value of doing."
Maybe you are looking for
-
Yoga 2 pro wifi lights / find the home network
Yoga 2 wifi pro suddenly stopped working. 1 that he would not turn 2nd finally it turned on but not find any network, at the safe house of the network which was connecting to more than one year. The list is empty. Help, please.
-
59020414 530 Y no bluetooth device
Hello I can't install the device bluetooth as I do not know this model has bluetooh device When open wireles switch and fn + f5, I see just Wi - Fi legacy I can't see the list in Device Manager What can I do to see that this model has bluetooth or de
-
He asks me if I'm sure I want to uninstall this program and click on the button it just goes back to the list of programs, and it is still listed.My HP F4280 printer in not sweeping. I try to reconnect it. I have run all diagnostics by HP already. St
-
How can I find the battery edge in my compag presario Desktop 6000?
I'm trying to locate the edge battery in my compag presario Desktop 6000 so I can replace it