Problem by setting the page_items value into session using javascript
Hi team,When I put in page article from the code below in javascript, it is not be defined.
function showdetail (t, A, B)
get var = new htmldb_Get (null, $x ('pFlowId') .value, null, & APP_PAGE_ID.);
Get.Add('P1_H_A',A);
Get.Add ('P1_H_B', B);
}
This code of java script after setting this process two fields hidden P1_H_A and P1_H_B, I call an on_demanad. Who uses this value filed hidden both in the pl/sql code.
But this hidden fileds two P1_H_A and P1_H_B do not define themselves in the session.
Please suggest me a way to solve this problem.
Thank you and best regards,
Rajendra Yadav
Published by: rajendra on February 26, 2012 02:40
Hello
There are several errors in your JavaScript code.
Try this:
Application process to create On Demand MODEL from source
htp.prn('OK');
Then JavaScript
function showdetail(t,A,B){
var ajaxRequest = new htmldb_Get(null,$v("pFlowId"),"APPLICATION_PROCESS=DUMMY",$v("pFlowStepId"));
ajaxRequest.add("P1_H_A",A);
ajaxRequest.add("P1_H_B",B);
var ajaxResult = ajaxRequest.get();
}
Kind regards
Jari
http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0
Tags: Database
Similar Questions
-
Files do not open the appropriate program
The simplest is to restore your system settings for a time before the invalid associations have been set.
1 type the word restore in your Start menu, then choose restore system files and settings...2 - Click Next, choose a date before the problem happens again, and then click Next3. about 2 minutes later, you're all set. -
How to set the minimum value of a graphic waveform window?
I have a graphics property of waveform "minimum value", but the graph is not take the value that I gave him. He tends to zero, as well as the first two sliders that I put on the graph. The maximum value "will be" no problem, just like the second slider value. Everyone knows about this problem? Here's a screenshot...
Is there a reason why my chart does not have what I have to say?
Thank you
Sometimes you may have problems if the new minimum is higher than the maximum of old. Try to write at least again in another node in property after you set the maximum value
Without seeing your VI and some parameters of the example, (old max and min) new max and min, it is otherwise difficult to say.
-
<; af:valueChangeListener >; sets the new value back to the old value
Hi people,
I'm trying to implement a search bar with < af:inputText > and < af:selectOneListbox >.
When the user selects an item in the listbox control, the inputText will be updated. After hitting the "ENTER" key, the search action will be taken.
The valueChangeListener will be called when the selection of items in the listbox.
The problem can be described by the following two cases:
(1) the user types something in the inputText box and hitting 'ENTER' key for a search. The valueChangeListener is called and sets the value of the string user typed.
(2) the user selects something in the list box, each time changes the selection in the listbox control, the valueChangeListener will be called. But when the user presses the "ENTER" key, the valueChangeListener is still called, and it sets the return value to the old value. For example, the list has 'a ', ' b', 'c '. The user selects 'a', then 'b '. After hitting the "ENTER" key, the value in the inputText is replaced with "a".
The code is as follows:
Code in .jspx:
< af:inputText value = "#{pageFlowScope.word} '"
autoSubmit = 'true' immediate = "true".
valueChangeListener = "#{pageFlowScope.update}" / >
< af:selectOneListbox valuePassThru = "true" >
< f: selectItems value = "#{pageFlowScope.items}" / >
< / af:selectOneListbox >
Bean managed code:
publicvoid update (ValueChangeEvent event) {}
This.Word = event.getNewValue (m:System.NET.SocketAddress.ToString ());
}
I don't know how the valueChangeListener behaves like that.
Could someone provide me with clues or tips?
Thank you
Carl
Carl, tell us your version of jdev, please!
There is something wrong in your implementation. I do not see an inputText field who's value stored in a variable pageflowscope "word". This field has an attached valuechangelistener which is obsolete, because the field already stores its value in the variable pageflowscope. The same that you are trying to do in the valuechangelistener. So I don't see a selectonelistbox which does not store the value selected anywhere because it doesn't have the value property for it. There isn't an attached valuechangelistener so I wonder how your valuechangelistener is called at all when you change the selectoneListBox.
Timo
-
How to set the default value of the component selectOneChoice in the table to the ADF
Hi all
I use jdev 11.1.1.6.0 version.
I used an adf table in which an attribute is selectOnceChoice.
To create the table and selectOneChoice I used the data control java bean.
and drag and drop a table and after that I have drag and drop one of the attributes as selectonechoice and linked with the return of the method list as < key, value > pair.
I want the default value to select only one option in each attribute rows.
I checked with simillar issue on post next, but not yet resolved.
My jspx code is
<af:column id="c11" headerText="Invoice To" > <af:outputText value="#{row.invoiceTo}" id="ot19"/> <af:selectOneChoice value="#{bindings.invoiceTo.inputValue}" label="#{bindings.invoiceTo.label}" required="#{bindings.invoiceTo.hints.mandatory}" shortDesc="#{bindings.invoiceTo.hints.tooltip}" id="soc3" autoSubmit="true" valuePassThru="true"> <f:selectItems value="#{bindings.invoiceTo.items}" id="si4"/> </af:selectOneChoice> </af:column>
where invoiceTo is the table attribute and the invoiceTo attribute is dragged and dropped as a SOC function list Source data mapped data value with the List attribute
and the display attribute
Data value = invoiceTo List = lovMasterKey attribute
Display attribute = lovMasterValue
that list is maintained at < lovMasterKey, lovMasterValue >
According to the value of invoiceTo line, it should show as default value is selectOneChoice, but its showing no not as a default value.
Please, help me how set the default value of selectOneChoice in the table according to each value line invoiceTo.
Thank you all for the help on this issue.
Problem has been resolved.
Reason for this was used
It is solved using code used for the list built for selectoneChoice more
List lovMasterList = new ArrayList(); SelectItem siItem = new SelectItem(); siItem.setLabel(objAfCmnLovMasterListVO1.getLovMasterValue()); siItem.setValue(objAfCmnLovMasterListVO1.getLovMasterKey()); lovMasterList.add(siItem);
Now, I used the code where the line below. InvoiceTo is the key and row.invoiceToItems are the list of articles for selectOneChoice.
Thank you very much...
-
Convert the column values into buckets
Hello
Please help me to convert the column values into buckets.
I have the values of the columns in the following way.
Age of Orderdate * 9 10 12 14 15 18 19 20 21 22 26 27 28 29 33 34 40 45 * and so on
But the requirement is the column values should be displayed in form
Age by order date * 15 1 2 3 4 5 6 7 8 9 10 11 - 16-20 21-25, 26-30 30 + *.
Please someone give me the solution.
Thanks in advance.
Hervé RamaHi Richard,
Just to double check, you have Setup buckets for 1, 2, 3, 4, 5, 6, 7 and 8 individually (each with a fair value). The problem is that you simply do not have all data fall into buckets above, correct?
If this is the case, it looks like has been answered your original question. If so, the label would assign 'Proper' points by clicking on the button label correct next to the appropriate response and open a new thread with your new question. The reason why I say this is it will help other people who have a similar bucket question to your solution, without complicating the issue with subsequent questions.
If you can post a separate thread, I'd be more than happy to help you with your secondary problem.
Best regards
-Joe
-
Set the first value after the select statement
Hello
I have a problem here.
After you run the statement select, it'll come to me:
COM
DLY
EXC
NRD
RDY
My question: How can I set the first value instead of 'COM' in "EXC"?
Thank you.Hello
Where you use this instead:select * from ( select col_name ,case when col_name='EXC' then 1 else 0 end as "id" from table_name ) order by "id" desc
-
Extension of EO or CO to set the default values?
Hi all!
I spread an EO, ExtBankAccountsEOImpl, which contains the bank details of a provider.
When I create a new retail bank, I want to set the default value of some fields (for example the currency)
According to the nationality of the supplier (all fields are null by default oracle). See below.
Is this possible with EOs? Can the EO extended somehow get their hands on the party_id?
Or do I have to extend the CO instead?
Best regards
Christian
Christian,
Thus, your EO extension works very well, no?
You need to check the standard code (controller and methods of AM which is called by the CO) and see if the party_id is stored as part of the operation or not. If so, you should be able to get the values in extended OS.
If this isn't the case, you must extend the CO.
Note: Changes made by extension EO EO will affect all pages using the OS, if any other page exists.
I hope this helps.
See you soon
AJ
-
Mr President.
How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?
Concerning
For the date, you can use groovy expression adf.currentDate to set the current date. reference http://adfgouravtkiet.blogspot.in/2012/11/how-to-set-default-values-for-entity.html
You already have ways to use the sequence.
How do you add a new value in the form. You're creating a new line of your page (user interface) and by engaging with validation operation? Unless you commit you will not be able to see anything in the table.
Thank you
-
How to set the initial value programmatically in af:selectOneChoice
Hi all
How to set the initial value programmatically in af:selectOneChoice
filled with view object instance, but I want to show the value initial programmactically
This can help you: Re: how to set the default value of the component selectOneChoice in ADF
and the default af:selectOneChoice programmatically from backing bean
-
How to set the return value of the method to the /outputText inputText field
Hello
How to set output return value method of a /outputText adf inputText field
Concerning
sevanan
Well put method's return value to a managed bean variable.
Create a variable in the bean and set the return value to this variable.
the inputText and outputTextValue to this managedBean.variable value
That's all...
and add partial trigger for inputText programmaticly
-
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
-
Call a method before the following operation to set the selected values
Use case: I display a VO as an ADF multiple checkbox select. This VO is the detail of a master/detail. I managed to store the selection state in a bean managed on autoSubmit. Then the user navigate to the record of the master, and then goes back to the previous record. The buttons next and previous were created using operations in data controls. I want to back up the State of the selection by clicking previous or next.
There are a lot of tutorial on how to get the selected values, but none on how to set the selected values. How would you do it?
11 GR 1 material JDev
What I ended up doing:
1 redefine listener action for the navigation buttons
{} public void nextQuestion (ActionEvent event)
saveSelectedState();
navigateQuestion ("Next");
restoreSelectedState();
}
{} private void navigateQuestion (string operation)
OperationBinding operationBinding = ADFUtils.findOperation (operation);
operationBinding.execute ();
}
2 Save and restore the selection state using bindings
Guava Multimap
Private ListMultimap
selectedIndices. private void saveSelectedState() {}
Get id question
DCIteratorBinding questionBinding = ADFUtils.findIterator ("QuestionsView1Iterator");
Question of rank = questionBinding.getCurrentRow ();
Number questionId = (Number) question.getAttribute ("Id");
JUCtrlListBinding listBinding = (JUCtrlListBinding) ADFUtils.getBindingContainer () .get ("AnswersView2");
int [] valueIndices = listBinding.getSelectedIndices ();
selectedIndices.putAll (questionId, Ints.asList (valueIndices));
}
private void restoreSelectedState() {}
Get id question
DCIteratorBinding questionBinding = ADFUtils.findIterator ("QuestionsView1Iterator");
Question of rank = questionBinding.getCurrentRow ();
Number questionId = (Number) question.getAttribute ("Id");
int [] valueIndices = Ints.toArray (selectedIndices.get (questionId));
JUCtrlListBinding listBinding = (JUCtrlListBinding) ADFUtils.getBindingContainer () .get ("AnswersView2");
listBinding.setSelectedIndices (valueIndices);
}
-
ODI 11 g | How to set the default value in the Interface mapping?
Hello
I m interpreting data OID of Oracle DB load target FOR Hyperion Essbase.
Its my requirement to set the default value for any size target source system it becomes same record for a specific column.
I thought that it would be fixed in the Interface, but I was not able to do.
Example:
Target Essbae Dimension
Size of account must have the value "FixAccount".
Dimension of the year must have the value "FY13.
Dimension of the view must have the value "ActiveView.
looking for your
Concerning
SherYes
-
How to set the threshold value for single tablespace in the 11g grid control
Hello
I want to set the threshold value for a single tablespace in the 11g grid control,
Please give me a navigation path.Sandy wrote:
Can you please give me the full navigation path?go to the target--> databases
Select the database that you want to set this alert to
Link select settings and policy settings
Maybe you are looking for
-
I tried to install from scratch and the upgrade and after the upgrade, it comes up with this error and won't load. I have to remove and reload 6.0.
-
not possible to have beta12 3.6.15 and 4.0 on the same computer
I had on my machine (win7) firefox 3.6.15These days, I discovered firefox 4.0Beta12 and install it. It's great. I put the finger on the task bar the two of them.After a reboot it is not possible to run the 4.0Beta12 again. no taskbar, no "C:\Program
-
I can't print my screen says replace 940 black basket. I replaced it and the error will not go away. I tried the power switch off and clean the print heads, but I get the same message and could not print or clean the heads. Any suggestions befor
-
Salve ho server it in oggetto PowerEdge 840 all'improvviso TR e spento e che frontalmente lampeggia alternativamente he led verde di sinistra e giallo di destra (fermo provided che è anche a disco del raid da auswechseln perched no adapter). Provando
-
Radio button selections does not save
I'm creating a form of performance review. I have a section where employees need to rate themselves on a scale of 1 to 5. (1 = low, 2 = good, 3 = meets expectations, 4 = exceeds expectations, 5 = outstanding) I radio for each option buttons so that t