How to set the Selectonechoice Value associated with MethodAction
Hi All,
I am using Jdeveloper 11.1.1.5 and i have a two textbox on my page and one selectonechoice.I am fetching the values from the Master Table in the dropdown by sending the supplierVatId and SupplierPostCode and the base dataSource of the selectonechoice is my transaction table(InvoiceHeaderTable).
My jspx page source is :-
<af:inputText value="#{bindings.Suppostcode.inputValue}"
binding="#{backingBeanScope.backing_parkSupplierId.it7}"
id="it7">
</af:inputText>
<af:inputText value="#{bindings.Suppvatid.inputValue}"
binding="#{backingBeanScope.backing_parkSupplierId.it8}"
id="it8">
<f:validator binding="#{bindings.Suppvatid.validator}"/>
</af:inputText>
</af:panelFormLayout>
<af:selectOneChoice value="#{bindings.supplierid.inputValue}"
binding="#{GeneralManagedBean.suppid}"
id="soc1">
<f:selectItems value="#{bindings.supplierid.items}"
binding="#{GeneralManagedBean.suppiditems}"
id="si1"/>
</af:selectOneChoice>
and this is my pageDef code :-
<attributeValues IterBinding="InvoiceheaderView1Iterator" id="Suppostcode">
<AttrNames>
<Item Value="Suppostcode"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="InvoiceheaderView1Iterator" id="Suppvatid">
<AttrNames>
<Item Value="Suppvatid"/>
</AttrNames>
</attributeValues>
<methodAction id="getSupplierIdfromDB" RequiresUpdateModel="true"
Action="invokeMethod" MethodName="getSupplierIdfromDB"
IsViewObjectMethod="false" DataControl="SupplierDetailImpl"
InstanceName="SupplierDetailImpl.dataProvider"
ReturnName="data.SupplierDetailImpl.methodResults.getSupplierIdfromDB_SupplierDetailImpl_dataProvider_getSupplierIdfromDB_result">
<NamedData NDName="supplierpostcode"
NDValue="#{bindings.Suppostcode.inputValue}"
NDType="java.lang.String"/>
<NamedData NDName="suppliervatid"
NDValue="#{bindings.Suppvatid.inputValue}"
NDType="java.lang.String"/>
</methodAction>
<list IterBinding="InvoiceheaderView1Iterator" id="supplierid"
DTSupportsMRU="true" StaticList="false"
ListIter="getSupplierIdfromDBIterator">
<AttrNames>
<Item Value="Suppid"/>
</AttrNames>
<ListAttrNames>
<Item Value="supplierid"/>
</ListAttrNames>
<ListDisplayAttrNames>
<Item Value="supplierid"/>
</ListDisplayAttrNames>
</list>
</bindings>
And i have a button on the page called as "Clear DropDown".Now on click of Clear DropDown button i need to clear the dropdown list and need to set a new value in the SupplierId selectonechoice.For the testing purpose it can be a static value like "Shah".
I am trying to do like this but no help ..
public String clearDropDown() {
ValueExpression suppid1 = null;
String id = "Shah";
suppid1 =
elFactory.createValueExpression(elContext, "#{bindings.supplierid.attributeValue}",
Object.class);
suppid1.setValue(elContext,id);
AdfFacesContext.getCurrentInstance().addPartialTarget(suppid);
AdfFacesContext.getCurrentInstance().addPartialTarget(suppiditems);
return null;
Please suggest!!!
Regards,
Shah
While setting the value, it is giving me this warning in the logs :-
*<FacesCtrlListBinding> <getInputValue> ADFv: Could not find selected item matching value Shah of type: java.lang.String in the list-of-values*.
I know that the Shah is not present in the List but how do i clear the list and set the New Value which is "Shah".
Please Suggest!!
Regards,
Shah
Similar Messages
-
Setting the selectOneChoice value at runtime
Hi,
I need to set the selectOneChoice value at runtime. On Page Load I am creating object of RichSelectOneChoice and currencyCode.setValue("USD");
When I check on runtime it is not showing "USD" as selected item in dropdown where as in background it is sending USD to downstream application.
How to get the show the value in SelectOneChoice which is selected at runtime in code?
Thanks in advance.Hi,
Selected value will be taken from the value property of selectOneChoice component, I guess you don't have specified value property. Create a String instance variable in bean and then set the value 'USD' to this variable and then bind it to value property of selectOneChoice component.
Sample:
//inside bean
private String selectedValue;
//Getter and Setter methods
//Replace the currencyCode.setValue("USD"); line with the below code
this.selectedValue = "USD"
//Finally in jspx page bind this selectedValue to value property of bean
<af:selectOneChoice value="#{bean.selectedValue}" ... />Sireesha -
How to set the Default values for Info Objects in Data Selection of InfoPac
Hi All,
Flat file Extracion:
How to set the Default values for Info Objects in Data Selection Tab for Info Package
ex: Fiscal Year Variant Info Object having values 'K4' 'Y2' etc in Flat file
Initially default value(not constant) for this info Object value should be 'K4' in Info Package
If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
Rgds,
CVHi,
suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
haritha -
How to set the Default value in the picklist and LOV
Hi All,
I have created a table with some of the columns as picklist and some of the columns as Lovs to insert some data into the tables as per the client requirement.
I want to make one value as default for the picklist and one value as default for the Lov.
Could you please let me know how can we show one value as default in the pick list or Lov.
thanks in advance.
jaycan u please help how can we set the initial value dynamically with the userid
For that i was passing the value from process Request of the lovCO by using the get user id to the vo query in the vo
but its not giving the initial value as default dynamically depending on the user id
could you please let me know the solution.
Thanks
Ajay -
How to set the default value in dashboard prompt?
Hi there,
In my Dashboard prompt I'm getting values like:
Mar 2010
Apr 2010
May 2010
Jun 2010
How to set the default value to the current month (Jun 2010). I don't want to use "specific value". I want to use the "SQL Result" for populating the default value.
Appreciate your helphi,
you can create a Repository variable current_month with the expression as
select to_char(trunc(sysdate),'Mon')from dual
and use this in the prompt "Default to" Server variable and use this repository variable.
hope this helps.
cheers,
vineeth -
SRM 4.0- How to set the default values for product type (01) only for SC
The radio button Service should not be visible.
Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
How to set the default values for product type (01) only for SC
We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
Here we can set defalut value 01 but it is not correct one since same search help is using several places.
We need to limit the search help results only for SC.
Kindly help out me ASAP.The easiest way to set defautl values is to edit the batch class.
Goto the characteiristic and go to update values.
In here you probably have something like 0 - 100 as a spec range.
On the next line enter the default value within this range. At the end of the line, click in the box in the column labelled "D". This indicates the defautl value for the characteristic.
If you need to you can do this in the material classification view as well.
Just to be clear, these values will only show up in the batch record. You can not have defautl values in resutls recording screens.
FF -
How to set the default value of an item type DATE PICKER to the day of yest
Hi
How to set the default value of an item type DATE PICKER to the day of yesterday ?
Thank you very much !
Christian.Hi Christian,
Have a look at this thread Re: Default the Date Picker to Today
It covers this issue in detail.
Regards
Paul -
HT201269 How to change the email address associated with an iPhone account?
How to change the email address associated with an iPhone account? I inherited my son's phone and it still shows his phone number even though I can add my own email account. My iCloud is also associated with his phone number.
If you mean you want to change the iCloud ID your phone is signed into on your phone (which looks like an email address), you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.
If you don't know the password for your old ID, or if it isn't accepted, and your old ID is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID. Click edit next to the primary email account, change it back to your old email address and save the change. Then edit the name of the account to change it back to your old email address. You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll. When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud). Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was. Now you can go to Settings>iCloud and sign in with your current iCloud ID and password. -
How to find the Display Template associated with a JSP ?
Hi All,
We have a requirement to alter the text on few buttons and headers for a Published Site. I have modified the Seeded JSP and saved as xxseeded.jsp and deployed in $OA_HTML. Now i want to add this custom JSP to the Display Template but i don't know how to find the Display Template Associated with the Seeded JSP. So, i need to know the Programmatic access name for the Display Template which uses this Seeded JSP as Source file. Is there any where i can check?
Thank youHi,
Use the below queries
Use the below query to get the Template name for the associated JSP file.
SELECT I.ACCESS_NAME, A.FILE_NAME FROM JTF.JTF_AMV_ATTACHMENTS A, APPS.JTF_AMV_ITEMS_VL I, IBE.IBE_DSP_LGL_PHYS_MAP M, IBE.IBE_MSITES_TL S WHERE A.ATTACHMENT_ID = M.ATTACHMENT_ID AND I.ITEM_ID = M.ITEM_ID AND M.MSITE_ID = S.MSITE_ID and a.FILE_NAME like 'Jsp file name here'
Same query can be little modified to get the File name from the Template name.
SELECT I.ACCESS_NAME, A.FILE_NAME FROM JTF.JTF_AMV_ATTACHMENTS A, APPS.JTF_AMV_ITEMS_VL I, IBE.IBE_DSP_LGL_PHYS_MAP M, IBE.IBE_MSITES_TL S
WHERE A.ATTACHMENT_ID = M.ATTACHMENT_ID AND I.ITEM_ID = M.ITEM_ID AND M.MSITE_ID = S.MSITE_ID and I.ACCESS_NAME like ‘template name here’
Thanks
Pradeep
Edited by: Pradeep Kalyan on Feb 9, 2012 9:40 PM -
How to set the default value of selectOneChoice
Hi All,
I have two selectOneChoice(soc1 and soc2) in two respective pages with the same datacontrol.Now i need to set the default value of soc2 as per the value selected in soc1.
For eg:-
if user has selected a value in soc1 say "Bag" in the list then it should set the default value in soc2 as "Bag" when the second page loads.As both the selectOneChoice has been created using same data contol.
How can i achieve this?
Please suggest.Hi PR/Suresh,
Thanks for your reply.
My soc1 shows the employeeId like 100,101,102,103 but it holds the value as employeeName like Navn,Joy,Steve,Mark. I have used valuechangeevent to get the current selected value from soc1 but when i set the value in soc2 in its set property then the log says :-
*<SimpleSelectOneRenderer> <_getSelectedIndex> Could not find selected item matching value "Navn" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=soc2]*
My jspx page code of soc2 is :-
<af:selectOneChoice binding="#{backingBeanScope.backing_temp2.soc2}"
id="soc2"
label="#{bindings.FirstName.label}">
<f:selectItems value="#{bindings.FirstName.items}"
binding="#{backingBeanScope.backing_temp2.si2}"
id="si2"/>
</af:selectOneChoice>
and in my bean where i am accessing the value from valuechangeevent from soc1:-
public void getValue(ValueChangeEvent valueChangeEvent) {
BindingContext bindingContext = BindingContext.getCurrent();
oracle.binding.BindingContainer bindings = bindingContext.getCurrentBindingsEntry();
//for iterator name click binding tab in the jsf page
DCIteratorBinding iter = (DCIteratorBinding) bindings.get("Employees1View1Iterator");
int curIndex = (Integer)valueChangeEvent.getNewValue();
Row datRow = iter.getRowAtRangeIndex(curIndex);
String name = (String)datRow.getAttribute("FirstName");
System.out.println("the new value is"+name);
RequestContext requestContext = RequestContext.getCurrentInstance();
requestContext.getPageFlowScope().put("value", name);
and then i am setting it to the soc2 in backing bean :-
public void setSoc2(RichSelectOneChoice soc2) {
this.soc2 = soc2;
RequestContext requestContext = RequestContext.getCurrentInstance();
String val = requestContext.getPageFlowScope().get("value").toString();
this.soc2.setValue(val);
In this error i can predict that it is not able to find the 'Navn' in the list of soc2 because in the list it has employeeId which has corresponding value as name of that employee but how do i set the value in soc2 then.
*<SimpleSelectOneRenderer> <_getSelectedIndex> Could not find selected item matching value "Navn" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=soc2]*
Any ideas??
Thanks -
How to set the default value of a database column to NULL
Hello,
I want to set the default value of a column (VARCHAR2(20) to NULL, nut I cannot figure out to do this. I tried the following editing the offline table with JDeveloper:
Default Value : <empty> -> On database NULL
Default Value: '' -> On database ''
When I create a new column, there is no default value on the database side and when I open the tabe properties in the database navigator I can see that the default value is (null). This is what I want to see in the other column as well. I don't know why sometimes a default value is visible on the database side (when generating form offline tables to database tables) and sometimes not.
Perhaps sombody can bring some light in this issue.
Thanks ThomasHello Shay,
I have the impression that you don't understand my problem. So here step by step:
1. Create a offline Table TEST with one column TEST: VARCHAR2(20). nullable=true, no default value.
2. Generate the table to the database
3. When you look at the table properties (columns) with the database navigator the following information is displayed (sorry for the formatting):
Column Name | Data Type | Nullable | Data Default | COLUMN ID| Primary Key | COMMENTS
TEST | VARCHAR2(20 BYTE | Yes | (null) | 1 | (null) | (null)
4. Now set the default value for the column TEST in the offline table for example to 'Test'
5. Generate the table to the database.
6. When you have a look at the database table, the default value is now 'Test' (as expected)
7. Now remove the default value of the column TEST in the offline table
8. Generate the table to the database
9. When you have a look at the database table, the default value is now NULL (in uppercase letters without parenthesis)
And this is where the problem starts!
When you generate the table again with the options "Alter/Manual Reconcile" the default value of the column test is considered to be different! But in fact it should'nt be different because nothing has been changed.
Best regards Thomas
Edited by: thmayr on May 28, 2009 9:05 AM
Edited by: thmayr on May 28, 2009 9:31 AM -
How to find the Standard Program associated with a Standard IDOC
Hi,
I am going work on enhancing the standard IDOC. Any body can suggest how to find a standard pogram associated with a Standard IDOC. And can any body send some exaple code for extending a standard IDOC and to implement the logic in the standard program .....Hi,
For outbound IDoc the program can be found:
1) For master IDoc via transaction BD60. Here for the message type you can find the function module used to generate the IDoc. Within this function module you can find the user exit where you can code your logic.
2) For IDocs with message control (output control) we maintain settings for proces code in WE41. This process code will lead to outbound IDoc generation program.
For Inbound IDoc the program can be found:
Via WE42 where inbound process and its related inbound function module is maintained.
In each cases above we can go the function module and find the customer exit where idoc enhancement logic can be coded.
For extending IDoc look at the following links:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/content.htm">Extending IDoc - SAP help</a>
It can be summarized as follows:
Enter transaction WE30 (ALE->Extension-> IDOC types->Maintain Idoc type)
- Type in your name of the extended IDOC type (usually starting with 'Z') and click on the Basic IDoc type, click the create icon.
- Click on Create new and enter a description and press enter.
- Click on ZIDOCTYPE01 and then on the Create icon.
- Enter ZIDOCTYPE as the segment type, click on Segment Editor.
- Enter a description for your segment type and create.
- Enter a description for your segment, enter each field required in your IDoc and press enter to validate.
- Save and generate, press back
- To release the segment choose Goto, Release from the menu.
- Check the box on the line of your segment.
- Save, back and enter.
- Your Idoc type structure should be displayed with your new segment.
- Save and back.
- To release the Idoc type choose Extras, Release type from the menu and Yes.
Hope this helps.
Regards,
Gajendra. -
How to set the initial value of of a poplist dynamical
Hi,
I've got a poplist that is populated by a recordgroup. This is done by the following pre-form trigger:
DECLARE
l_query_ok NUMBER;
l_group_id RecordGroup;
l_it_id item;
l_int_value VARCHAR2(2);
BEGIN
l_it_id := Find_item('MERGED_ISSUER.product_code');
l_group_id := FIND_GROUP('RG_PRODUCT_CODE');
l_query_ok := POPULATE_GROUP(l_group_id);
-- Populate list 'Product Code'
CLEAR_LIST (l_it_id);
POPULATE_LIST(l_it_id,l_group_id);
END;
I've tried to set the initial value by adding following lines to the trigger above but I receive the frm-41084 error. This code assigns the first value of the recordgroup to a hidden text item. In the properties of the poplist the value of the hidden text field is set as initial value.
-- Set initial value
l_int_value := Get_Group_Char_Cell('RG_PRODUCT_CODE', 1);
:MERGED_ISSUER.int_value := l_int_value;
Any help?
thxHello Ken,
you can set an initial value for a poplist with the copy command.
You could use a procedure like this:
PROCEDURE P_FILL_LBX
lbx_ITEM_IN VARCHAR2,
grp_DATA_GROUP_IN VARCHAR2,
flg_DEL_NULL BOOLEAN,
str_WERT_IN VARCHAR2
) IS
ERROR_ID NUMBER;
BEGIN
CLEAR_LIST(lbx_ITEM_IN);
ERROR_ID := populate_group(grp_DATA_GROUP_IN);
populate_list(lbx_ITEM_IN,grp_DATA_GROUP_IN);
IF flg_DEL_NULL = TRUE THEN
DELETE_LIST_ELEMENT(lbx_ITEM_IN,GET_LIST_ELEMENT_COUNT(lbx_ITEM_IN));
END IF;
IF str_WERT_IN IS NOT NULL THEN
COPY(str_WERT_IN,''||lbx_ITEM_IN||'');
END IF;
END;Bernd -
How to set the LOV value programmatically?
Hello,
I have a LOV (select list with submit) the value (displayed and corresponding returned) of which I would like to set by selecting a row in a report.
What is the event I use to catch the selection of the row in the report and what would be the sample code to set the LOV values?
Thanks a lot!
GaborPerhaps a more detailed explanation of the issue helps:
I am developing an online internet bookmarking application. It basically contains a folder tree and bookmarks within the folders.
The folder tree is implemented by a table referencing itself (main columns are: ID, NAME, PARENT_ID).
The LOV lists the NAMEs (actually, the full path of each folder as returned by a function) and returns the IDs.
When the user selects a NAME, folders and bookmarks contained in that folder are listed in a report (non-recursively).
The action of the user clicking a folder in the report should simulate the above as if they selected the name manually. This is where I need help!
I hope this helps. Thanks!
Gabor -
How to set the default values of the field of the context.
Hi Experts ,
I want to set the default value of the field of the context.
Where and how this declaration should be done.
Thanks in Advance.In the context tab of the view. Select the attribute for which you want to set the default value.it will show the properties at the bottom. set the Default value property to the value which you want to set as the default value.
Regards
Naresh
Maybe you are looking for
-
Win 8.1 upgrade problems
Haave attempted 8.1 upgrade and failed... tried several things including system refresh....have reinstalled all windows updates except 3.... kb2807986 kb2798162 kb2811660 and can not get them to install..... get error code 8024200d tried the
-
Why do I get "invalid drive E:/" when trying to update my itunes software
Why do I get the message "invalid drive E:/" while trying to upgrade itunes? It causes the update to fail.
-
When I click on Pages.app, the icon gets the light-point beneath it, indicating it's supposed to be loaded. But nothing happens - no opening pages that allow us to choose templates, nothing. I try double clicking a .page document, and I'm informed th
-
In the past I have been able to open a document and write on it. Now I cannot get the cursor to show up and when I click on the document larget sections turn blue, sometimes the whole document turns blue.
-
I've seen a few threads about the cursor jumping to 'black arrow', and I've witnessed myself several times, but this one is a bit different. On brush (also on clone stamp, healing brush, etc) the cursor appears to be stuck as if I was holding the opt