ALV - refresh data after value is selected from input help
Hello,
I have input ALV where after I enter material number and press enter, the logic goes ahead and populates description column by utilizing ON_DATA_CHECK event.
Is is possible to trigger some kind of event after the value is selected from search help without hitting enter key?
When the user done with using search help and clicks on material number that he needs, the value is populated in ALV cell, and this is where I need some event trigger to fire the logic to get description without pressing enter.
Thanks,
Alex
Alex, in that case, the alternative you have is to:
- Create a Z structure where you have all the table fields
- Bind the Standard DDIC search help to the Material ID (Importing) and the Description (Exporting)
- Create the whole context node in WD referencing that DDIC structure.
The important thing here is that the context node as a whole must reference the structure in order for this to work, not just the fields affected. This may not be possible or desirable in certain cases.
If you do this, the Description will be populated by the SH through its returning parameter, so you wont have to do anything in WD to retrieve it as for the manual input + Enter cases.
Here you have some help on SHs parameters:
http://help.sap.com/saphelp_nw70/helpdata/EN/35/bdb6e2c48411d1950800a0c929b3c3/frameset.htm
Hope this helps.
Edited by: Alejandro Bindi on Sep 19, 2008 12:36 PM
Similar Messages
-
Selection from Input help different from PA30 IT0014
Hi Guys,
Need advise as i'm trying to get the same result data from input help in IT0014 (wage type). I'm using normal selection from table but the result set are diffrent.
I'm noticed more value appeared than the input help in IT0014 PA30.
I checked on the input help seems no parameter passing.
Attached is the screen for input help .
Brgds
BadzFinally after few debugging the logic and google searching .
The answer is because in they wage type appeared in the search help already filtered by employee group and subgroup also personnel area.
So each user will have different search result/input help based on their group or pers area. -
Mapping a field from input help screen(Using POV) to user screen
I have used the Function module 'DYNP_VALUES_UPDATE', to get the value from Description field in the search help.Now its throwing a runtime error mentioned below.
Runtime errors: CALL_FUNCTION_CONFLICT_LENG
Except. CX_SY_DYN_CALL_ILLEGAL_TYPE.
Short text: Type conflict when calling a function module
the function module was called incorrectly.
Below is the code i implemented.
ws_dynpfields-fieldname = wc_scrfld.
ws_dynpfields-stepl = tc_1017-current_line.
ws_dynpfields-fieldvalue = ws_hssr-text.
APPEND ws_dynpfields TO wt_dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'sapmzapp01'
dynumb = '1008'
TABLES
dynpfields = wt_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.
IF sy-subrc <> 0.
MESSAGE e800(zmdb_mda_supplier).
ENDIF.
The above code is in screen USER COMMAND OF 1017(POV-input help screen).
wt_dynpfields is the internal table.
and its fields are fieldname,stepl and fieldvalue
ws_dynpfields is the workarea of the internal table.
wc_scrfld-Constant with value zbut0000qnnyxa-ztfldg6h7np'(the description field name of the screen 1008 where i want the description value to get in automatically after selecting from input help)
ws_hssr-text= The Work area containing the value 'eg ORDER'.
kindly get back immediately....Hi,
This function works only after POV.
So ensure that it is written in that module:
like AT SELECTION-SCREEN ON VALUE-REQUEST FOR f_name.
Hope it will guide you.
Jogdand M B -
No value is select from user define table
Hi ALL,
i am using B1if , i am sending data B1 to isr , i am using user define table but problem no value is select from user define table .
my table ID is @SSRPOD
<payload operation="">
<ns0:MT_POD_B1_System xmlns:ns0="http://xxxx.com/SC/B1/Dlvr/CustDlvr/ExtPrfOfDlvr">
<POD>
<Header>
<SalesOrderNumber>
<xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_SalOrdNo" />
</SalesOrderNumber>
<ArrivalDate>
<xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_TaxDate" />
</ArrivalDate>
<Detail>
<DOLineQuantity>
<xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_Quantity" />
</DOLineQuantity>
<UOM>
<xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_Unitmsr" />
</UOM>
</Detail>
</Header>
</POD>
</ns0:MT_POD_B1_System>
</payload>
I have set following things.
Inbound Channel
scenirio step identifier :z.xxxx
Inbound Channel(IPO):INB_B1_EVNT_ASYN_EVT
InboundType:Asynchronous
Process Trigger:B1Event
Identification Method: B1Event
Identification Parameter:n.a
Identifier:?????
Identifier Namespace:??????
can anyone help me?
Edited by: Sinha_Sinha on Feb 3, 2012 7:47 AMFound an authorization object was missing, that enabled the case types to show but hitting the GO button brought a page that can not be viewed in IE. on to the next hurdle..........
-
Status clsd not unique (Selection via input help (F4) only) -COOIS
Hi all,
We doing upgradation 4.7E to Ecc 6.O
In coois , When we enter system status as 'clsd' , system showing error msg
Status clsd not unique (Selection via input help (F4) only)
Message no. COIS054
Why this error occurs.. how to solve this???
looking for answers..
Thanks in advance..Please read OSS note 1377678.
-
Hi all F4 in alv grid with restricted value -- no solution from forum
hi all
i have developed report using alv grid using FM (important).
i have a field xyz which is input/output enabled in alv grid output. this field is attached with f4 help.
my requirement is to get or read the row in alv grid when user press f4 on that field so that restricted value should come in f4 help i.e. i have to read current line when user presses f4 i.e. the single line data in alv grid.
so how to get or read the current row when user press f4 i.e user will choose any row in alv grid and this output is on alv grid and there are multiple records.
or in other word is it possible to read current row in alv grid when user presses F4, if yes how???.
i hope u understood the query.Hai,
Check the code it may help u.
For F4 Values on Screen:
PROCESS ON VALUE_REQUEST
using module call starting with FIELD i.e FIELD field MODULE module
There are number of function modules that can be used for the purpose, but these
can fullfill the task easily or combination of them.
DYNP_VALUE_READ
F4IF_FIELD_VALUE_REQUEST
F4IF_INT_TABLE_VALUE_REQUEST
POPUP_WITH_TABLE_DISPLAY
DYNP_VALUE_READ
This function module is used to read values in the screen fields. Use of this
FM causes forced transfer of data from screen fields to ABAP fields.
There are 3 exporting parameters
DYNAME = program name = SY-CPROG
DYNUMB = Screen number = SY-DYNNR
TRANSLATE_TO_UPPER = 'X'
and one importing TABLE parameter
DYNPFIELDS = Table of TYPE DYNPREAD
The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD
to this FM and the values read from the screen will be stored in this table.This
table consists of two fields:
FIELDNAME : Used to pass the name of screen field for which the value is to
be read.
FIELDVALUE : Used to read the value of the field in the screen.
e.g.
DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
SCREEN_VALUE LIKE LINE OF SCREEN_VALUES.
SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read
APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = SCREEN_VALUES.
READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC.
F4IF_FIELD_VALUE_REQUEST
This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three
parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = table/structure
FIELDNAME = 'field name'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNR
DYNPROFIELD = 'screen field'
IMPORTING
RETURN_TAB = table of type DYNPREAD
F4IF_INT_TABLE_VALUE_REQUEST
This FM is used to dsiplay values stored in an internal table as input
help.This FM is used to program our own custom help if no such input help
exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.
If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = field from int table whose value will be returned
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'screen field'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = internal table whose values will be shown.
RETURN_TAB = internal table of type DDSHRETVAL
EXCEPTIONS
parameter_error = 1
no_values_found = 2
others = 3.
POPUP_WITH_TABLE_DISPLAY
This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE
parameter.The VALUETAB is used to pass the internal table.
A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL =
ENDPOS_ROW =
STARTPOS_COL =
STARTPOS_ROW =
TITLETEXT = 'title text'
IMPORTING
CHOISE =
TABLES
VALUETAB =
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.
e.g.
DATA: w_choice TYPE SY-TABIX.
DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,
values TYPE I,
END OF i_values.
PARAMETRS : id TYPE I.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR id
i_values-values = '0001'.
APPEND i_values.
i_values-values = '0002'.
APPEND i_values.
i_values-values = '0003'.
APPEND i_values.
i_values-values = '0004'.
APPEND i_values.
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL = 40
ENDPOS_ROW = 12
STARTPOS_COL = 20
STARTPOS_ROW = 5
TITLETEXT = 'Select an ID'
IMPORTING
CHOISE = w_choice
TABLES
VALUETAB = i_values
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.
CHECK w_choice > 0.
READ TABLE i_values INDEX w_choice....now we can process the selection as it is contained
...in the structure i_values.
Other FM that may be used to provide input help is HELP_START .
check this also.
See the following ex:
TYPES: BEGIN OF TY_MBLNR,
MBLNR LIKE MKPF-MBLNR,
END OF TY_MBLNR.
DATA: IT_MBLNR TYPE STANDARD TABLE OF TY_MBLNR WITH HEADER LINE.
data: it_ret like ddshretval occurs 0 with header line.
At selection-screen on value-request for s_mat-low.
Select MBLNR from mkpf into table it_mblnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'MBLNR'
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_MBLNR
FIELD_TAB =
RETURN_TAB = IT_RET
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF SY-SUBRC = 0.
read table it_ret index 1.
move it_ret-fieldval to S_mat-low.
ENDIF.
Go through the test program.
REPORT Ztest_HELP .
TABLES : MARA.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_MATNR(10) TYPE C.
SELECTION-SCREEN END OF BLOCK B1.
DATA : BEGIN OF ITAB OCCURS 0,
MATNR TYPE MATNR,
END OF ITAB.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
SELECT MATNR
FROM MARA
INTO TABLE ITAB
UP TO 10 ROWS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'MATERIAL NUMBER'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_MATNR'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ITAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
regards.
sowjanya.b. -
Refreshing data after pushView
Hi,
I'm adding data to a database with a PopUp window. When I click the OK button to complete everything I want to return to a listbox that I can choose items from. The data is getting saved into the database but for some reason I can't get the listbox to update when I push the view to the original view with the listbox. I have tried myList.clear but I get an error
1119: Access of possibly undefined property clear through a reference with static type spark.components:List.
MyNewTestHomeView.mxml
/MyNewTest/src/views
line 69
Flex Problem
I have searched but can't find a way to clear the listbox when the view loads.
NeilI figured it out. It was a stupid mistake on my part. I was selecting from the wrong table.
Neil -
Data no getting populated from input help to target field
Hi ,
I have made a input help for a field.
and have used the following code to populte the data into the input help.I am having the data displayed but the data doesnot get populated on selection.
CASE cs_dropdownlb_data-fieldname.
WHEN 'ZZSALSPOS'.
assign cs_dropdownlb_data to <extended_data>.
lv_display = is_screen_structure-zzdisplay.
clear ls_fieldcat.
ls_fieldcat-fieldname = 'ZZSALSPOS'.
ls_fieldcat-headertitle = 'Broker Id'.
append ls_fieldcat to et_field_catalog.
ls_fieldcat-fieldname = 'ZZBROKER'.
ls_fieldcat-headertitle = 'Broker House Description'.
append ls_fieldcat to et_field_catalog.
CALL FUNCTION 'Z_SEARCH_HELP_SALES_ID'
EXPORTING
IV_DISPLAYALL = lv_display
IV_DIS_CHANNEL = '11'
IV_DIVISION = '00'
TABLES
T_COST_CAT_F4 = lt_posid
fldcat_add 'ZZSALSPOS'.
fldcat_add 'ZZBROKER'.
fldcat_add 'ZZREGION'.
fldcat_add 'ZZDIVISION'.
fldcat_add 'ZZSUBTEAM'.
fldcat_add 'ZZTEAM'.
SORT lt_posid BY zzsalspos zzbroker zzregion zzdivision zzsubteam zzteam.
CREATE DATA <extended_data>-data TYPE zcrmt_mkt_broker_tab.
ASSIGN <extended_data>-data->* TO <table>.
<table> = lt_posid.
I would sincerely appreciate and rewad if any solution could be suggested ....Thanking in advance...
NarsinghThe problem has been resolved
-
Selection-screen: Input help for VTWEG
Hello!
Can anybody help me with the following problem:
I have two select-options (VKORG and VTWEG) on my selection screen. Now there should be the possibility to restrict the values shown as input help for VTWEG after having selected a value for VKORG.
I've already tried to do this by using a matchcode object but for VKORG and VTWEG I was not able to find suitable search helps.
In my opinion this should be possible without using the "AT SELECTION-SCREEN ON VALUE-REQUEST FOR ...". If not, it would be interesting to getting to know your approaches to this task.
Thank you in advance!you can refer to the following code
and you can write the code in the same way as per your requirement
*& Report ZRKTEST5 *
REPORT ZRKTEST5 .
DATA: PROGNAME TYPE SY-REPID,
DYNNUM TYPE SY-DYNNR,
DYNPRO_VALUES TYPE TABLE OF DYNPREAD,
FIELD_VALUE LIKE LINE OF DYNPRO_VALUES.
DATA: BEGIN OF T_T001L OCCURS 0,
WERKS TYPE WERKS_D,
LGORT TYPE LGORT_D,
END OF T_T001L.
DATA: V_WERKS TYPE WERKS_D,
V_LGORT TYPE LGORT_D.
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETERS: P_PLANT LIKE MSEG-WERKS,
P_STOLOC LIKE MSEG-LGORT.
SELECTION-SCREEN END OF BLOCK B1.
INITIALIZATION.
PROGNAME = SY-REPID.
DYNNUM = SY-DYNNR.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_STOLOC.
CLEAR: FIELD_VALUE, DYNPRO_VALUES. REFRESH DYNPRO_VALUES.
FIELD_VALUE-FIELDNAME = 'P_PLANT'.
APPEND FIELD_VALUE TO DYNPRO_VALUES.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = PROGNAME
DYNUMB = DYNNUM
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = DYNPRO_VALUES.
READ TABLE DYNPRO_VALUES INDEX 1 INTO FIELD_VALUE.
SELECT WERKS LGORT INTO TABLE T_T001L FROM T001L WHERE WERKS = FIELD_Value-fieldvalue.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'P_STOLOC'
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'P_STOLOC'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = T_T001L.
START-OF-SELECTION.
WRITE:/ 'TEST F4 PROGRAM'.
END-OF-SELECTION.
<b></b>
reward points if helpfull
Regards
Vikure -
To populate another alv grid's field with value selected from search help
Hi,
I have two fields in alv grid, first column holds code and the second one holds code's description. Also I have a search help includes these two fields. The search help is attached to the first column. The requirement is, when I select a code from the search help, second column should be populated with selected code's description.
Any help will be appreciated. Thanks..Hi,
have a look into Report: BCALV_EDIT_03.
Regards, Dieter -
Refresh Data in an Excel Workbook from another Excel file
I have an Excel file that I need to use as a data source for a report that is generated from another Excel Workbook that I am using PowerPivot and PowerPivot with.
I make the connections and everything works fine, but the schedule to refresh doesn't work. I found the below, and another Excel file isn't listed as a data source that is can automatically refresh from. Doesn't that seem like an obvious miss?
Report data in an Excel workbook can come from many external data sources. You can schedule automatic data refreshes for these external sources:
•Power BI Cloud Service
* Microsoft Azure SQL Database
* SQL Server in Microsoft Azure Virtual Machines
* OData
* Basic authentication
* Anonymous authentication
* SP Lists
* ProjectOnline feeds
•On-premises
* SQL Server 2005 and above
* Oracle 10g, 11g and 11gR2
A workbook accesses external data through an embedded connection string or URL you specify when you import the original data into the workbook. Data refresh reuses the original connection information stored in the workbook.
A workbook can have only one data refresh schedule. Typically, if you create the workbook you define the schedule.
http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/schedule-data-refresh-for-workbooks-in-power-bi-for-office-365-HA104180761.aspx
Thanks,
CraigIt seems apart from mentioned sources no other source is supported, even I tried refreshing model having excel as source.
-
Adobe Form Section is Not Showing When Value is Selected from Dropdown List
Hello Experts
We have this issue where an ADOBE FORM is embedded in a WEBDYNPRO APPLICATION.
When selecting a value from the dropdown field in the ADOBE FORM, some particular section in the ADOBE FORM is not shown.
Here's the ADS and NW versions that we were using. We are running on EHP5 landscape.
- ADS - 7.3 SPS 3
- NW 7.3 SPS 3
PS. The same program is working in EHP4 correctly.
Any idea on how to resolve this issue?This is a custom built form, the thing is we just upgraded our system to EHP5 and we are in the test phase. The same form works in system in EHP4.
Based on the dropdown list selection, there are some sections in the form which are hidden previously will be shown now. when you change the country in the dropdown the new sections appear. The sections will not be visible before you select the couuntry from dropdown.
Should I upgrade my Adobe live cycle designer version to a higher one?
Thanks -
Hi,
I have an ALV Report that is showing the data correctly, but when I go back to the last screen and call the report again the shown data is duplicated on its columns, how can I avoid the duplicated columns? I´m using FM REUSE_ALV_GRID_DISPLAY.
Please help!!!
GabrielHI,
Use the grid method REFRESH_TABLE_DISPLAY
Example:
CALL METHOD go_grid->refresh_table_display.
<b>exporting</b>
IS_STABLE = <STRUCT OF TYPE LVC_S_STBL> (THIS IS FOR DATA REFRESHING)
I_SOFT_REFRESH = <VARIABLE OF CHAR 01> (THIS IS FOR ICON REFRESHING).
See this example for more info
http://www.sapgenie.com/abap/controls/alvgrid.htm#Refresh%20grid%20display
Thanks
Sudheer -
ALV - Validate Data after User-Command (SAVE)
Hi Everbody !
I created a quite nice editable ALV-Grid, that works almost fine.
The only problem I have and don't understand is the valditation in the PAI-Module of my dynpro, e.g. at the 'SAVE'-Command, if the 'ENTER'-Button wasn't pushed before.
In case of an error, the protocol shows up, but the false entry in alv is overwritten by the old content.
I call the method MY_ALV->CHECK_CHANGED_DATA.
What have i to do then?
Can anybody explain this to me?
Thanks a lot!
SabrinaHi!
Thanks for the immediate reply!
The Data-Changed-event is not the problem:
i registered it that way and implemented the handling inclusive error-protocoll.
CALL METHOD my_ALV_->REGISTER_EDIT_EVENT
EXPORTING
I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
the user has to push 'ENTER' to check the changed data on one rush.
But if the user only pushes 'SAVE' or something beyond the alv-toolbar, the pai-module will be processed.
So, i get the method alv->CHECK_CHANGED_DATA, to check the entries.
That works well, the protocoll is displayed, but the wrong entry in Alv (which is normally marked as error) is overwritten by the old, correct content. -
I am using jsp + bc + adf (jdev 10g). When I insert a record with sql:update (see the code below) the trigger on the database updates another table. Insert works fine and I can see the inserted record but I don't see the changes made by the trigger until I open the browser again. Can I do something about that?
<sql:setDataSource
var="ds"
driver="oracle.jdbc.driver.OracleDriver"
user="user"
password="password"
url="jdbc:oracle:thin:@..."
/>
<sql:update dataSource="${ds}">
Insert into sometable values (..., ..., ...)
</sql:update>It is because I am trying to insert a record without dropping a create method on a datacation. I am trying with the code below but getting error messages.
Is there something I can do about this?
DataAction.java
package view;
import javax.servlet.http.HttpServletRequest;
import oracle.adf.controller.struts.actions.DataAction;
import oracle.jbo.ApplicationModule;
import oracle.jbo.Row;
import oracle.jbo.domain.Number;
import oracle.jbo.ViewObject;
import org.apache.struts.action.ActionForward;
import oracle.adf.controller.struts.actions.DataActionContext;
import java.io.IOException;
import javax.servlet.ServletException;
public class InsertZauprocDAAction extends DataAction
protected ActionForward findForward(DataActionContext actionContext) throws IOException, ServletException
ApplicationModule appModule = actionContext.getBindingContainer().getApplicationModule();
ViewObject viewObject = appModule.findViewObject("ZauprocView1");
HttpServletRequest request = actionContext.getHttpServletRequest();
Row row = viewObject.createRow();
row.setAttribute("IZA", request.getParameter("Iza"));
row.setAttribute("IZVRSIOC", request.getParameter("Izvrsioc"));
row.setAttribute("STATUS", new Number(200));
viewObject.insertRow(row);
appModule.getTransaction().commit();
return super.findForward(actionContext);
error
500 Internal Server Error
java.lang.NullPointerException
at oracle.adf.model.binding.DCBindingContainer.getApplicationModule(DCBindingContainer.java:341)
at view.InsertZauprocDAAction.findForward(InsertZauprocDAAction.java:18)
at oracle.adf.controller.struts.actions.DataAction.executeImpl(DataAction.java:150)
at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:69)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:356)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:610)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:784)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:536)
Maybe you are looking for
-
Hi All, I unplugged a windows external drive my Macbook Air without ejecting it and ever since then a file or drive named MIURA appears on the desktop everytime I turn the machine on. I can eject this file or put it in the trash can but it keeps comi
-
E71 - How do I delete email headers?
I've managed to synch over 10,000 emails to my E71 and it's really struggling. The "Delete" menu only appears to have two options a) delete on phone and server and b) delete on phone only (header remains) I don't want to delete the emails on the serv
-
I have about 3,700 songs on ITunes: Does it make sense that it would consume close to 16GB's? If I have downloaded albu, graphics (which I assume also consumes space), how can I turn off and delete existing to free up space?
-
ITunes 10.7.0.21 no longer 'gets album artwork'
It used to be the case until very recently, that you could always get the album artwork for tracks either imported from CD, or bought from other stores by choosing 'Get album artwork' from the right click menu, and sometimes you had to modify the nam
-
I keep getting errors adding toolbar or menu elements.
I receive a dialog box that says either "Error on adding toolbar element" or "Error on adding menu element" followed by ": NS_ERROR_UNEXPECTED Component returned failure code 0x8000ffff, (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] id:". These d