SelectOneChoice value needed for find-method to refresh table
I would like to implement a filter that will filter the dataset, resultset returned by my adf-table.
The user has to select a value in the dropdown-list and after he has made a selection the table has to be refreshed using the value of the dropdown as a parameter-value for the find-method.
I'm using a partialtrigger to raise the refresh-event on my table, autosubmit on my dropdown and partialtrigger-attribute on my table. Now I want to pass the value of the selectOneChoice to the key-value pair used for the find-method in my pageDefinition-file.
What's the best practice to add this parameter-value?
Frank,
We tried the ValueChangeListener already on the selectOneChoice-component, but the listener doesn't get fired when you choose a new value in the selectOneChoice. Only the first time the method in our backing bean is accessed, and no other times.
We are using datacontrols based on ejb 3.0 session beans as our persistence layer instead of BC and we would like to put the chosen value of the selectOneChoice-component in the parameter of our method binding. We should be able to it in the same manner as you've mentioned in the example, by accessing the paramMap.
Thanks for the advise !
Similar Messages
-
If we open a transaction i need to find what are the tables used
hi gurus
can anyone suggest me
if we open a transaction liek va01
i need to find what are the tables used
what are the fields used in that transaction
i need a list .
thanks®ards
kals.Hi
you can find all those details in transaction variant,
go with SHD0 ( numerical 0) and then enter your transaction code and enter transaction variant name and then select that
Select the program SAPMV45A and go CHANGE WITH PROCESSING (F6),
there you can find the list of fields and field names.
reward points if usful.
thanks and regards,
muralidhar -
Fm for finding methods and interface
I had a FM for finding BADI names and classes for a trabnsaction by placing a bug pint on that FM...
I missed it.....Can anybody help me if u know abt that FM..
KesavHi
The function module used to find out the BADIs is SXV_GET_CLIF_BY_NAME
Hope it helps.
Murthy -
Value Help for a field from custom table in BSP
Please let me know, the procedure to create value help for a field from a custom table in BSP using HTMLB.
Thankshi prodigy,
check this code using drop down list.
<b>layout for first page</b>
<htmlb:dropdownListBox id = "ddlist"
table = "<%=t_mara%>"
nameOfKeyColumn = "matnr"
nameOfValueColumn = "matnr"></htmlb:dropdownListBox>
<b>event Oninitialization event of first page</b>
SELECT MATNR UP TO 10 ROWS
INTO TABLE T_MARA
FROM MARA.
<b> event Oninputprocessing event</b>
**Load the manager class
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
DATA: V_EVENT TYPE REF TO CL_HTMLB_EVENT.
DATA: DATA TYPE REF TO OBJECT.
DATA: V_DATA TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX.
CALL METHOD CL_HTMLB_MANAGER=>GET_EVENT
EXPORTING
REQUEST = RUNTIME->SERVER->REQUEST
RECEIVING
EVENT = V_EVENT
IF V_EVENT->NAME = 'button' AND
V_EVENT->EVENT_TYPE = 'click'.
DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST =
RUNTIME->SERVER->REQUEST
NAME = 'inputField'
ID = 'matnr'
V_DATA ?= DATA.
IF V_DATA IS NOT INITIAL.
V_MATNR = V_DATA->SELECTION.
ENDIF.
NAVIGATION->SET_PARAMETER( NAME = 'v_matnr' VALUE = V_MATNR ).
NAVIGATION->GOTO_PAGE( 'detail.htm' ).
ENDIF.
<b>in the onInitialization event for detail page</b>SELECT MATNR
ERSDA
ERNAM
LAEDA
AENAM
VPSTA
PSTAT
LVORM
MTART
FROM MARA
INTO TABLE T_MARA
WHERE MATNR = V_MATNR. -
Need to find total no fo tables/index/m.views in my database
Hello Everyone ;
How can i find total no fo tables/index/m.views in my database ?
when i google i have seen following command ;
SQL> Select count(1) from user_tables where table_name not like '%$%' /
COUNT(1)
but i dont understand what '%$%' indicates ?
Thanks all ;Hello Everyone ;
How can i find total no fo tables/index/m.views in my database ?
when i google i have seen following command ;
SQL> Select count(1) from user_tables where table_name not like '%$%' /
COUNT(1)
but i dont understand what '%$%' indicates ?
Thanks all ;
consider to simply Read The Fine Manual YOURSELF!
Oracle Database Search Results: like -
Using value selected in selectOneChoice as variable for execute method
I have already created data controls for the session bean method so I can drag and drop on to the jsp. This works fine when entering the data into the input text fields but I really need the first value to come from an initial page and the second value to come from the dropdown. I just don't know how to get the value or how to connect it to the button for execution.
The method takes two values
value 1, org is passed in (how do I pass from another page? I will actually have the render for this input field set to false so it does not display)
value 2, typeId from a selectonechoice drop-down list (how do I manipulate the soc to pass the information? Currently it looks as if it is just passing the elementAt number, I need get the actual value for the item selected. Where can I retrieve it?)
I have a button ready to execute the method on the session bean which should take these values. (of course the inputvalue for the soc was not typeId but I changed it. The values for the soc are actually coming from another method performed earlier.)
This is what I have so far:
I have my input text field waiting on info to be populated from the previous page (currently I manually entered it)
I have my selectonechoice populated
A button with the execute method already set (b/c I initially used the drag-drop functionality to test my method)
Forgive me for repeating myself so much.
Thanks!Passing a value between pages:
http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_lifecycle.htm#BABIHDAA
Getting a value from a list item:
http://www.oracle.com/technology/products/jdev/tips/mills/listvalue/listbindingvalue.html
http://blogs.oracle.com/shay/2009/11/getting_the_value_from_a_selec.html -
Right combination needed for transfer method and TTy
Hi,
I have a scenario to map for transfers (affiliated co),
Company code A - apc 1000; nbv 200; accum 800; new value 250;
In company code A
cr apc 1000
dr clrg 250
dr accum 800
cr interco gain 50
In receiving company code B
dr apc 1000
dr asset 50
cr contra 800
cr clg 250
I am unable to do this with transfer method 3, which is new value method. I tried creating new trnsfr variants and TTys but unable to get the above postings.
Please suggest suitable combination of trnsf methods and TTys asap!!!
Thanks
Edited by: rick dermont on May 9, 2008 6:05 PMHi,
>Can someone tell me why my post doesn't show up as I typed it? All of the carriage returns were removed so that its one big >paragraph (that is impossible to read).
Because your post is too long.
Because the performance of the java forum software is very bad, the forum admins had to disable the paragraph formatting of "long" messages to keep "acceptable" response times.
This is such a good advertising for Jive software and the j2ee engine...
Olivier -
Sample values needed for Customer Number And Sales Organisation in BAPI
Hi Experts,
I want to execute the Bapi BAPI_SALESORDER_GETLIST with mandatory parameters such as Customer Number & Sales Organisation .
How would I come to know what values to enter for Customer Number & Sales Organisation inorder to get some Output in the form of table SALES_ORDER.
Can you ll help me with some sample values which I can enter to get some useful output.
And what is the logical way to go inorder to test such BAPIs in future.
Thanks in Advance,
Pavanmeet SinghHi,
CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
EXPORTING
customer_number = cust
sales_organization = sorg
MATERIAL =
DOCUMENT_DATE =
DOCUMENT_DATE_TO =
PURCHASE_ORDER =
TRANSACTION_GROUP = 0
PURCHASE_ORDER_NUMBER =
IMPORTING
return = it_return
TABLES
sales_orders = salesorder_itab.
Regards
Sudheer -
Help need for badi method me_process_po_cust~check
Dear All expert
Pl see following thread
I am stuck
Help needed
http://scn.sap.com/thread/3610303See the issue here is HOLD feature in PO should not be there if it meets the error condition.
For this you can refer another BADI for this purpose ME_HOLD_PO.
Refer one of my previous threads below , it might be helpful :
Held Purchase order need not be created.
Reiterating a thread related to same topic is not a good practice. -
Automated value generation for key field in db table
Hi All
I have created a table in SE11 and i want to autogenerate a value for the keyfield when the user adds a new record to the table. the keyfield is of type numc. this field represents a document id hence i do not want the user to physically enter in an id. Is it possible to achieve this without any additional coding. I am using a WDA app together with an adobe form to allow user to input data.
Thanks in advance
Regards
Thashin NaickerThere is one more method to do that.
Write a query to fetch all the records from the table into any temporary internal table.
Then, do a looping in that table & increment one temporary variable inside a loop.
after this add first value of your primary field to this temporary variable..
Ex.: To add one more record with an increment to a primary key field is shown below:
DATA: TEMP type I.
TEMP = 1.
SELECT * FROM <TABLENAME> INTO TEMP_TABLE.
ENDSELECT.
LOOP AT TEMP_TABLE.
TEMP = TEMP + 1.
ENDLOOP.
<Tablename>-<fieldname> = TEMP_TABLE-<fieldname> + TEMP.
Note: temp is a temporay variable and temp_table is a temporary table. -
Need to find last time a table was used.
I am in the process of cleaning out a group of staging tablespaces and I would appreciate some help finding the last time a table was used. (ie: records added, deleted, ect.) Is there an SQL statement that will do it? Any other suggestions?
I will Appreciate any assistance.How can I activate the auditing? http://download-east.oracle.com/docs/cd/B19306_01/network.102/b14266/auditing.htm#i1011984
Daljit Singh -
Help needed in Finding Download location for Sun One Portal 7
Hi,
help needed for finding download location for Sun ONE Portal 7. I tried to find in Oracle Download page ,
http://www.oracle.com/us/sun/sun-products-map-075562.html, But unable to find.
Please share the link for download location.
I am totally new in Sun ONE Portal.
Thanks,
Edited by: 945439 on Oct 5, 2012 3:41 AMtry edelivery.oracle.com under sun products.
-
How to add a finder method in the container manager Bean in the weblogic6.1
in the environment jbuilder6 andweblogic6.1,use container manager entity Bean,it can automatic generate the findAll() method,I want to add a new method to find an element in the home interface,such as findByName(),name is a element of a table of the database.in the weblogic-cmp-rdbms-jar.xml,this is part of the fiile:
<finder>
<finder-name>findAll</finder-name>
<finder-query><![CDATA[ (= 1 1) ]]></finder-query>
</finder>
<finder>
<finder-name>findByName</finder-name>
<finder-param>java.lang.String</finder-param>
<finder-query><![CDATA[ (=name $name) ]]></finder-query>
</finder>
It can successfully compile the findAll(),but it is wrong when compile the findByName(),as follows
"www.ejbgrpx": Method Name: findByName
"www.ejbgrpx": Invalid specifications for a WebLogic RDBMS CMP EJB.
"www.ejbgrpx": ERROR: Error from ejbc: weblogic.ejb20.cmp11.rdbms.finders.IllegalExpressionException:
"www.ejbgrpx": While trying to process Finder
"www.ejbgrpx": Parameter Types: (java.lang.String)
"www.ejbgrpx": WebLogic Query: (= name $name)
"www.ejbgrpx": Finder Expressions: ()
"www.ejbgrpx": Could not parse WLQL expression: (= name $name) null
"www.ejbgrpx": ERROR: ejbc found errors
thank youThe finder methods that you are referring to are only simple finder methods. If you would like to add specialized finder methods, you can make your entity bean with bean managed persistence and not container managed. If you are using EJB 2.0, your entity bean with container managed persistence can use EJB QL for finder methods. You can search for this topic and/or download the EJB 2.0 specifications
Hope this helps -
AT SELECTION-SCREEN ON VALUE-REQUEST FOR not input value in input field
Dear All,
I make search help for field ARBPL in selection screen are not excepted selected value.
Code is
SELECT-OPTIONS: p_arbpl FOR zdmde-arbpl MODIF ID two.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-low.
REFRESH sh_arbpl.
SELECT * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'P_ARBPL'
DYNPROFIELD = 'P_ARBPL'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = sh_arbpl.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-high.
REFRESH sh_arbpl.
SELECT * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'P_ARBPL'
DYNPROFIELD = 'P_ARBPL'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = sh_arbpl.
Please tell how to input selected field from search help into input field in both low and high.
Would appreciate your reply .
Regards,
PoojaHi Pooja,
For getting the response back from the user selection , please get the return code too. Before that instead of directly using the table crhd structure.. please do create a type declaration of that table , make sure that the field that you wanted to get using search help be specified at last of declaration type like this
TYPES: BEGIN OF ty,
OBJTY TYPE CR_OBJTY,
ARBPL TYPE ARBPL,
END OF ty.
this is because the return parameter t_rtn will holds the last value of type which been selected by user.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'P_ARBPL'
DYNPROFIELD = 'P_ARBPL'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = sh_arbpl
return_tab = t_rtn.
LOOP AT t_rtn INTO x_rtn .
ENDLOOP.
try executing this code.
TABLES crhd.
TYPES: BEGIN OF ty,
OBJTY TYPE CR_OBJTY,
ARBPL TYPE ARBPL,
END OF ty.
DATA: sh_arbpl TYPE TABLE OF ty.
DATA: dynpfields TYPE TABLE OF DYNPREAD,
x_dynpfields TYPE dynpread,
t_rtn TYPE STANDARD TABLE OF DDSHRETVAL ,
x_rtn TYPE DDSHRETVAL.
SELECT-OPTIONS: p_arbpl FOR crhd-ARBPL MODIF ID two.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-low.
REFRESH sh_arbpl.
SELECT * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl WHERE werks eq '1000'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'P_ARBPL'
DYNPROFIELD = 'P_ARBPL'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = sh_arbpl
return_tab = t_rtn.
LOOP AT t_rtn INTO x_rtn .
ENDLOOP.
x_dynpfields-fieldname = 'P_ARBPL-LOW' .
x_dynpfields-fieldvalue = x_rtn-fieldval.
APPEND x_dynpfields TO dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-cprog
dynumb = sy-dynnr
TABLES
dynpfields = dynpfields
* EXCEPTIONS
* INVALID_ABAPWORKAREA = 1
* INVALID_DYNPROFIELD = 2
* INVALID_DYNPRONAME = 3
* INVALID_DYNPRONUMMER = 4
* INVALID_REQUEST = 5
* NO_FIELDDESCRIPTION = 6
* UNDEFIND_ERROR = 7
* OTHERS = 8
Regards,
Sivaganesh -
Hi all,
I have a table which has no primary key then I made the complex primary key by 2 fields which are foriegn keys(Primary key in other tables or entity beans) , the problem is that whenever I write a finder method ,I face with an error telling these 2 fields are not cmp field .
could you please guide me .In addition I need a finder method which gets 2 parameters (the 2 foriegn keys) then return the the raw.
Not having known so much about reletionship in EJB ,please give me a sample code
Cheers
PooyanWhat do you expect us to tell without even a small description of your problem (a stack trace or error message would have been helpful). Anyway, read here... you should find some sample code too.
http://www.theserverside.com/books/masteringEJB/index.jsp
Maybe you are looking for
-
ITunes 10.5 64 bit wont install on windows 7- solutions?
I had no problem in the past, until when it asked me to upgrade to iOS5, but every time I tried to install it an error would occur. So, I deleted iTunes and tred to re-install it... And I kept on recieving an error message (picture attached) Searched
-
Arrow buttons not working.
Arrow buttons stopped working once I upgraded to Mountain Lion. I thought Mavericks would fix. No luck. Any ideas? If I look in input sources, there are no arrow keys on the keyboard illustrations for US or US extended keyboards.
-
Do SAP B1 MRP calculation able to calculate production lead time until min?
-
Missing hierarchy by downloading DNL_CUST_PROD1
Hi All, I´m very new to the installation and configuration of a SRM sytem using the self service scenario. So, I have to apologise for my following question.According to this I have to set up a self service scenario with EBP 4.0 and SRM 3.0. So, here
-
Typical errors in process chains
hi gurus, i wil be given the task of monitoring pc from nxt week. can i have the typical errors regarding them and how to solve them plz. regards, rajesh