Problem commiting form on table
Dear forum members,
Strange things happen:
I have a form on a table which worked fine. so far. Since yesterday - I changed a lot ;-) - the following does not work anymore:
- There is a button giving a request (NEW_POS)
- If the user is pressing the button the form should
1. save its content by doing a Automatic Row Processing (DML) - Update (When Button Pressed (Process After Submit When this Button is Pressed): NEW_POS_BUTTON)
2. performing a PL/SQL operation.
But since yesterday the commit does'n work anymore. I added Process Success/Error Messages. And it tells me always success, but all changed fileds of the form are not saved.
Turning the debug to on doesn't help me much. Do you have any idea where to look for a failure?
Best regards,
Johann
Dan,
Yes I receive both of the success messages.
And yes i'm sure that the item that holds the primary key value is populated when the page is submitted...
And I tried both: An extra update only process and the common "Process Row" Process (insert, update and delete)...
Strage is that if I send a SAVE request, the commit is done, in the other case it isn't. But the success message is still there.
Sorry that I don't put this form onto apex.oracle.com, because it is extremly complicated, containing tabular subforms, etc.
But the PL/SQL process does this:
DECLARE
RETURN_VALUE NUMBER DEFAULT 0;
BEGIN
RETURN_VALUE:=IV_CREATE_NEW_CQIR_ITEM(
IN_CQIR_PK => :P320_CQIR_PK,
IN_NO => TO_NUMBER(:P320_NEW_POS_NO),
IN_POSITION => TO_CLOB(:P320_NEW_POS_POSITION),
IN_AMOUNT => TO_NUMBER(:P320_NEW_POS_AMOUNT),
IN_AMOUNT_TYPE => :P320_NEW_POS_ME,
IN_PRICE_INT => TO_NUMBER(:P320_NEW_POS_PRICE_INT),
IN_PRICE_EXT => TO_NUMBER(:P320_NEW_POS_PRICE_EXT),
IN_SPECIFICATION => :P320_NEW_POS_SPECIFICATION,
IN_TAX => TO_NUMBER(:P320_NEW_POS_TAX) ,
IN_INFO =>:P320_NEW_POS_INFO);
:P320_NEW_POS_NO:=NULL;
:P320_NEW_POS_NO:=NULL;
:P320_NEW_POS_POSITION:=NULL;
:P320_NEW_POS_AMOUNT:=NULL;
:P320_NEW_POS_ME:=NULL;
:P320_NEW_POS_PRICE_INT:=NULL;
:P320_NEW_POS_PRICE_EXT:=NULL;
:P320_NEW_POS_SPECIFICATION:=NULL;
:P320_NEW_POS_TAX:='20';
:P320_NEW_POS_INFO:=NULL;
END;IV_CREATE_NEW_CQIR_ITEM inserts one row to a tabluar subform...
Best regards
Johann
Similar Messages
-
Problem with saving duplicated tables in interactive form
Hi,
I have an interactive form that contain a table with a row that contain "insert remove move " object .
when i press the add button, it duplicate the table, but if i save the PDF and then open it again, the extra table does not appear,
it seems like it never been save.
do you knoe what is the problem? why the tables are not saved properly?
thanks, NoaHi,
Try doing the following
try using the simple 'Button'. In the button's object properties, in the tab named 'field', select 'Control Type: submit'.
Then, in the 'submit' tab in the object properties, choose PDF in the 'submit format' dropdown field.
In the 'submit to URL field' type:
mailto:nameataddress.com?subject=mySubject&body=Done
You may need to adjust the e-mail address, subject and body text.
Regards
Ayyapparaj -
Interactive form: problem with ValueHelp in table
I have InteractiveForm element in my WDA.
The form has Table. One of the columns of the table is ValueHelp button from WebdynproNative library.
The form executes ContainerFoundation_JS code on the ValueHelp click event just fine.
The Search help gets called just fine.
My problem is that the Table cell on the form doesn't get populated with the value selected on the search help.
The Table is bound ro WDA context.
I am afraid that Adobe gets confused with the row number to return the Help value.
I have no problem with ValueHelp button on a single TextField (not in a table).
But within the Table....
Is ValueHelp working in a Table?
Any help is greatly appreciated,
Tatyana.Ralph,
I followed you advice and created identical WDA's and forms in "ECC box" and "RPM box".
To clarify, "ECC box" is:
- component version = SAP ECC 6.0
- SAP_BASIS package level 20
"RPM box" is:
- component version = SAP Netweaver 2004's
- SAP_BASIS package level 17
I didn't have problems in "ECC box".. Value help in table was working.
There was some disconnection between WDA table and PDF table in "RPM box".
I noticed differences in schemas generated from WDA: "RPM box" schema was not same as "ECC box" schema.
I believe that it is WDA issue giving me a problem, since I generated XML schemas using right click on IneratctiveForm object in WDA.
We defenetly need to update RPM system to a nigher package or try to find OSS note to fix the issue.
Points are awarded.
Ralph, thank you very much for helping me to identify the problem!
Tatyana.
Otto,
I thought you are SAP mentor...
Somebody with exactly same name as yours sounds like a grampy person in many of his replies... -
i am using the following description to create a web service reference:
web reference :REST
Name :Yahoo Map
URL :http://local.yahooapis.com/MapsService/V1/mapImage
HTTP Method: GET
Basic Authentication: No
Add Parameter:
Name Type
appid String
location String
Output Format: XML
XPath to Output Parameters : /Result
Output Parameter:
Name Path Type
Url /text() String
Then i tried to create form and report on webservice:
Web Service Reference Type: Yahoo Map
Operation: doREST
All the fields i keep as default
I tick the checkbox (url)in report Parameter
After clicking next whereever required i click create button
I get the following error
ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.
Please someone help to solve this as i need to fix it urgently.i exported the application from apex.oracle.com and imported it to our environment
import went fine, but when I ran the IR page I got
ORA-20001: get_dbms_sql_cursor error ORA-00904: : invalid identifier
evidently the problem is a lack of public execute on DBMS_LOB, which is used in the generated IR source.
while waiting for the DBA to grant privs on DBMS_LOB, changing the dbms_lob.getlength call to length() fixes the IR.
however, i am not getting the download link on the associated form page... changed templates, that's not the issue -- we'll see if that's a dbms_lob issue as well -
Hi Friends:
Below are the records in my table:
a...|b|c...... |d.....|e................|f
100||25000|......|0000012998|0002259999
100|*|25000|1405|0000012998|0002251405
100|*|25000|1406|0000012998|0002251406
100|*|25000|1407|0000012998|0002251407
100|*|25000|1409|0000012998|0002251409
100|*|25000|1410|0000012998|0002251410
100|*|25000|1411|0000012998|0002251411
100|*|25000|1419|0000012998|0002251419
100|*|25000|1420|0000012998|0002251420
100|*|25000|1421|0000012998|0002251421
a = client
b= Leg.Dept Code
c= Legacy Product
d= Legacy Location
e= Cost Center
f= Profit Center
Please consider '.' as space.
The problem arises in the sorting of the table records. The first record shown in the record set above has the following entry:
a...|b|c...... |d.....|e................|f
100||25000|......|0000012998|0002259999
This is the default entry that is to be used if there is no Leg.Location (where Leg. Location = *). If there is an entry for the specific Leg. Location, then it should be used prior to using this record.
Problem appears to be that the ABAP program locates this default record prior to encountering the specific record, for example:
a...|b|c...... |d.....|e................|f
100|*|25000|1419|0000012998|0002251419
Because the program encounters the wildcard one first, even if the Leg. Location that the program is searching for is 1419 (which appears in the table, just lower in the listing) the program returns a Profit Center of 2259999 instead of the correct value of 2251419.
Is it possible to change the native sort of this table so that the wildcard entries appear at the bottom of the listing instead of the top? If yes, can it be done permanently.
This would allow the program to encounter the specific entries prior to encountering the wildcard ones.Hi Paul:
Thanks for your response. Can you please look at the code below. Actually I've got this issue in the form of a ticket.
FORM resolve_product_code TABLES pt_accntmap TYPE gtty_accntmap
USING p_structraw TYPE gty_structraw.
DATA: lwa_structraw TYPE gty_structraw,
lwa_accntmap TYPE gty_accntmap,
lt_accntmap TYPE gtty_accntmap.
MOVE p_structraw TO lwa_structraw.
lt_accntmap[] = pt_accntmap[].
LOOP AT lt_accntmap INTO lwa_accntmap.
CLEAR: lwa_accntmap-accntcompstr,
lwa_accntmap-fndtype,
lwa_accntmap-posi2.
IF lwa_accntmap-z_product CA '*_'.
TRANSLATE lwa_accntmap-z_product USING '_+'.
SEARCH lwa_structraw-proddiv FOR lwa_accntmap-z_product.
IF lwa_structraw-proddiv CP lwa_accntmap-z_product.
IF sy-subrc EQ 0.
lwa_accntmap-accntcompstr = lwa_structraw-proddiv.
lwa_accntmap-fndtype = '*'.
lwa_accntmap-posi2 = sy-fdpos.
ENDIF.
ELSE.
Must be a full match to win
IF lwa_structraw-proddiv EQ lwa_accntmap-z_product.
lwa_accntmap-accntcompstr = lwa_structraw-proddiv.
lwa_accntmap-fndtype = space.
lwa_accntmap-posi2 = 6.
ENDIF.
ENDIF.
MODIFY lt_accntmap FROM lwa_accntmap
TRANSPORTING accntcompstr fndtype posi2.
ENDLOOP.
IF sy-subrc EQ 0.
Remove any unresolved entries based on Natural Account Code
DELETE lt_accntmap WHERE accntcompstr NE lwa_structraw-proddiv.
ENDIF.
pt_accntmap[] = lt_accntmap[].
ENDFORM. " resolve_product_code
Can you please help me with the exact problem in this code.Or if you can give me some idea. It would be a great help. -
Ora-20001 when creating a form on table with report (bug?)
Having some trouble creating a "Form on table with report".
1) I pick my table
2) take most of the defaults on the page where you pick the report type (interactive) and the page number (I changed it to 950). next->
3) Do not use tabs. Next->
4) Select all columns for the report. THEN (here's the problem) set an optional where clause of system_role_name like 'ODPSPOPUP%'. Next->
5) choose standard edit link. next->
6) Specify a page of 951 for the form (leave others defaults). next->
7) Set the form primary key (defined in table). next->
8) use existing trigger. next->
9) choose all columns for the form. next->
10) Leave actions to insert, update, delete. next->
11) Get to the summary page and click Finish
Then I get an error page saying:
ORA-20001: Unable to create query and update page. ORA-20001: Unable to create query and update page. ORA-00933: SQL command not properly ended
If I go back to step 4 and erase my where clause the wizard completes successfully.
Also if I change the report type in step 2 from the default of "Interactive" to "Classic" the wizard completes successfully. However upon running the report I get a query parse error. Looks like the where clause in the report sql is: system_role_name like ''ODPSPOPUP%'' (two single quotes on each side).
It looks as if you cannot specify a where clause with a quoted string. The wizard is expecting a bind variable.
Workaround(s):
1) Don't specify a where clause when report type = Interactive in "create form on table with report" wizard.
or
2) Specify a bogus where clause using bind variable syntax such as "system_role_name like :BOGUSVARIABLE". Then edit the report query once the wizard finishes and change the where clause to the constant string you wanted to use in the wizard (e.g. "system_role_name like 'MYSYSTEM%'")
Apex: 3.2.0.00.27
Database: Oracle Database 11g Enterprise Edition 11.1.0.7.0 64bit Production (Oracle EL5)Andy,
It's a bug, all right. Thanks for the detailed problem description. We'll fix it when we can.
Scott -
Unable to fetch row opening form on table
Hi all,
i have a page with 2 regions, a form on table for DML and a report region that lists the same table.
I am trying to create records in the form and then recall them by report row link for changes.
I cant test if all that stuff can work because i when i run the page after first time an Unable to fetch row error is raised.
After that i have to logout and login and run the page again.
I do my best to explain the problem but feel free to ask for more.
Any kind of help or suggestions are welcome.
Thanks, AlexHi,
yes this is the problem.
When i run the page the first time it seem to work fine but after editing, just edit page and run again , the error is raised and the only way out is to logout apex.
My expectation was that if i run the page setting the rowid item , that is the pk of the tabular form, the region appear with setting for insert.
Greets. -
Problem populating an internal table
Hello,
I am having a problem with filling an internal table. I cannot seem to grasp this and I struggle with this in every program. I am attaching pieces of my program so that maybe someone can help me. I have a selection screen that I populate with dates. if the dates are populated, I want to use these dates for the selection. If the dates are initial, I want to read an entry from the TVARV table and populate the dates that will used in the selection. I tried various code statements and I cannot get it to work. i get messages like "is a table without a header line and therefore has no component "LOW" or other messages similar to this. I would like that if the s_udate is populated, I could fill the tvarv table and not have to call the form.
also if anyone has some documentation on working with internal tables without header lines (I think I read in here that internal tables without header lines is the way to go ), could you please include that as well so that I could try to understand how this suppose to work
thanks in advance for the help
TYPES: BEGIN OF ty_tvarv_date,
low TYPE tvarv_val, "start date
high TYPE tvarv_val, "end date
END OF ty_tvarv_date.
TYPES: ty_t_tvarv_date TYPE STANDARD TABLE OF ty_tvarv_date INITIAL SIZE 0,
DATA it_tvarv_date TYPE STANDARD TABLE OF ty_tvarv_date INITIAL SIZE 0.
SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(22) text-002.
SELECT-OPTIONS s_udate FOR sy-datlo.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK a.
PERFORM select_date_tvarv CHANGING it_tvarv_date.
PERFORM select_data643_mseg USING it_tvarv_date
it_zfi_gl_subcontrk[]
CHANGING it_mseg643.
<b>*******************************************************************</b>
FORM select_date_tvarv CHANGING p1_it_tvarv_date TYPE ty_t_tvarv_date.
IF s_udate IS INITIAL.
SELECT low high
FROM tvarv
INTO TABLE p1_it_tvarv_date
WHERE name EQ 'Z_SUBCONTRK_DATES'.
IF sy-subrc NE 0.
IF sy-batch IS INITIAL.
MESSAGE i899 WITH text-027.
LEAVE LIST-PROCESSING.
ELSE.
MESSAGE e899 WITH text-027.
ENDIF.
ENDIF.
ELSE.
MOVE s_udate to p1_it_tvarv_date.
MOVE s_udate-low(8) to p1_it_tvarv_date-low.
MOVE s_udate-high(8) to p1_it_tvarv_date-high.
ENDIF.
ENDFORM. " FORM SELECT_DATE_TVARV
<b>*******************************************************************</b>
FORM select_data643_mseg USING p1_tvarv_date TYPE ty_t_tvarv_date
p1_zfi_gl_subcontrk TYPE ty_t_zfi_gl_subcontrk
CHANGING p1_it_mseg TYPE ty_t_mseg643.
DATA: wa_tvarv_date type ty_tvarv_date.
READ TABLE p1_tvarv_date INTO wa_tvarv_date INDEX 1.
SELECT abukrs awerks amatnr aerfmg a~erfme
akostl abwart amblnr awempf acharg akzbew algort bbudat
FROM mseg AS a INNER JOIN mkpf AS b ON amblnr EQ bmblnr
AND b~budat <= wa_tvarv_date-high
AND b~budat >= wa_tvarv_date-low
INTO TABLE p1_it_mseg
FOR ALL ENTRIES IN p1_zfi_gl_subcontrk
WHERE a~bukrs EQ p1_zfi_gl_subcontrk-bukrs_from
AND a~werks EQ p1_zfi_gl_subcontrk-werks_from
AND a~wempf EQ p1_zfi_gl_subcontrk-werks_to643
AND a~matnr EQ p1_zfi_gl_subcontrk-matnr
AND a~bwart EQ'643'.
IF sy-subrc NE 0.
IF sy-batch IS INITIAL.
MESSAGE i899 WITH text-027.
LEAVE LIST-PROCESSING.
ELSE.
MESSAGE e899 WITH text-027.
ENDIF.
ENDIF.
ENDFORM. " FORM SELECT_DATA643_MSEGIn tables with header line, you need not define an explicit work area.
System will create a so-called work area, which is called header line.
This header line is like any other work area. the difference is that it can be accessed using internal table name. A record will be by default read into header line in a READ statement.
For ex,
READ TABLE p1_tvarv_date INTO wa_tvarv_date INDEX 1.
Here you used to read the 1st record into wa_tvarv_date.
But after making it table with header line you can use
READ TABLE p1_tvarv_date INDEX 1.
This will move the data to header line and it can be accessed by name p1_tvarv_date.
See the code below.
TYPES: BEGIN OF ty_tvarv_date,
low TYPE tvarv_val, "start date
high TYPE tvarv_val, "end date
END OF ty_tvarv_date.
TYPES: ty_t_tvarv_date TYPE STANDARD TABLE OF ty_tvarv_date INITIAL SIZE 0,
DATA it_tvarv_date TYPE STANDARD TABLE OF ty_tvarv_date <b>WITH HEADER LINE INITIAL</b> SIZE 0.
SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(22) text-002.
SELECT-OPTIONS s_udate FOR sy-datlo.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK a.
PERFORM select_date_tvarv CHANGING it_tvarv_date.
PERFORM select_data643_mseg USING it_tvarv_date
it_zfi_gl_subcontrk[]
CHANGING it_mseg643.
FORM select_date_tvarv CHANGING p1_it_tvarv_date TYPE ty_t_tvarv_date.
IF s_udate IS INITIAL.
SELECT low high
FROM tvarv
INTO TABLE p1_it_tvarv_date
WHERE name EQ 'Z_SUBCONTRK_DATES'.
IF sy-subrc NE 0.
IF sy-batch IS INITIAL.
MESSAGE i899 WITH text-027.
LEAVE LIST-PROCESSING.
ELSE.
MESSAGE e899 WITH text-027.
ENDIF.
ENDIF.
ELSE.
MOVE s_udate to p1_it_tvarv_date.
MOVE s_udate-low(8) to p1_it_tvarv_date-low.
MOVE s_udate-high(8) to p1_it_tvarv_date-high.
ENDIF.
ENDFORM. " FORM SELECT_DATE_TVARV
FORM select_data643_mseg USING p1_tvarv_date TYPE ty_t_tvarv_date
p1_zfi_gl_subcontrk TYPE ty_t_zfi_gl_subcontrk
CHANGING p1_it_mseg TYPE ty_t_mseg643.
<b>READ TABLE p1_tvarv_date INDEX 1.</b>
SELECT abukrs awerks amatnr aerfmg a~erfme
akostl abwart amblnr awempf acharg akzbew algort bbudat
FROM mseg AS a INNER JOIN mkpf AS b ON amblnr EQ bmblnr
<b>AND b~budat <= p1_tvarv_date-high
AND b~budat >= p1_tvarv_date-low</b>
INTO TABLE p1_it_mseg
FOR ALL ENTRIES IN p1_zfi_gl_subcontrk
WHERE a~bukrs EQ p1_zfi_gl_subcontrk-bukrs_from
AND a~werks EQ p1_zfi_gl_subcontrk-werks_from
AND a~wempf EQ p1_zfi_gl_subcontrk-werks_to643
AND a~matnr EQ p1_zfi_gl_subcontrk-matnr
AND a~bwart EQ'643'.
IF sy-subrc NE 0.
IF sy-batch IS INITIAL.
MESSAGE i899 WITH text-027.
LEAVE LIST-PROCESSING.
ELSE.
MESSAGE e899 WITH text-027.
ENDIF.
ENDIF.
ENDFORM. " FORM SELECT_DATA643_MSEG -
Problem in convering internal table to CSV file
Hi,
Iam converting internal table data to CSV format with the code given below.
LOOP AT it_details_final INTO wa_details_final.
CLEAR : t_attachment.
CONSTANTS : c_sep TYPE c VALUE ','.
CONCATENATE wa_details_final-wf_rectype
wa_details_final-wf_bankn
wa_details_final-wf_znme1
wa_details_final-wf_rzawe
wa_details_final-wf_lifnr
wa_details_final-wf_chect
wa_details_final-wf_rwbtr
wa_details_final-wf_chkladat
cl_abap_char_utilities=>newline
INTO t_attachment SEPARATED BY c_sep.
APPEND t_attachment.
CLEAR t_attachment.
ENDLOOP.
Problem is ,data in one of the fields contain comma ( , ).
So, data after comma is getting shifted to the adjacent cell.
Please help me
Thanks & Regards,
SravanthiHello,
Try this perform
the ignorefields variable is used if you dont want a particular field in the output. You can ignore it for now
DATA: p_ignoredfields(1024).
CONSTANTS : const_sep TYPE c VALUE ','.
* itab to store data ready to be sent to csv file
DATA: BEGIN OF wa_csvdata,
line(4096),
END OF wa_csvdata.
DATA: gt_csvdata LIKE TABLE OF wa_csvdata.
*& Form CONVERT_TO_CSV
* text
FORM convert_to_csv TABLES lt_datatab USING value(p_ignoredfields).
FIELD-SYMBOLS: <wa_datatab> TYPE ANY.
FIELD-SYMBOLS: <wa_field> TYPE ANY.
* character variable incase table fields are of a diff type (ie: int)
DATA: lv_data TYPE string.
* set to X if the no data has been put into the csv workarea
DATA: flag_firstcol TYPE xflag.
* move the structure one character to the right since first char
* is position 0 in SAP
SHIFT p_ignoredfields BY 1 PLACES RIGHT.
REFRESH gt_csvdata.
CLEAR wa_csvdata.
LOOP AT lt_datatab ASSIGNING <wa_datatab>.
flag_firstcol = 'X'.
DO.
* one by one assign each position of the structure to the field
ASSIGN COMPONENT sy-index OF STRUCTURE <wa_datatab> TO <wa_field>.
IF sy-subrc <> 0.
EXIT.
ELSE.
* if the current field needs to be ignored then continue the do loop
IF p_ignoredfields+sy-index(1) = '.'.
CONTINUE.
ENDIF.
* we use lv_data since concatenate fails for integer types
lv_data = <wa_field>.
* remove commas in the data
WHILE sy-subrc = 0.
REPLACE const_sep WITH '' INTO lv_data.
ENDWHILE.
* if this data belongs to the first non ignored column
IF flag_firstcol = 'X'.
wa_csvdata = lv_data.
flag_firstcol = ''.
ELSE.
CONCATENATE wa_csvdata const_sep lv_data INTO wa_csvdata.
ENDIF.
ENDIF.
ENDDO.
APPEND wa_csvdata TO gt_csvdata.
CLEAR wa_csvdata.
ENDLOOP.
ENDFORM. " CONVERT_TO_CSV -
Problem in creating Queue Table of 'VARCHAR2' Payload.
Hello guys!!
I am having a problem creating a Queue Table of payload type 'VARCHAR2'. I want to create a queue for simple varchar2
type of messages. I am using following command:
dbms_aqadm.create_queue_table(queue_table => 'sh_varchar_queue_table',
queue_payload_type => 'VARCHAR2');
I am getting the following error:
ORA-24000: invalid value VARCHAR2, QUEUE_PAYLOAD_TYPE should be of the form
[SCHEMA.]NAME
Please help!!!
Thanks!!!
ShaluThanks Brajesh!!
Actually I have tried with Object Type n that is working fine. But i didn't know that 'VARCHAR2' can't be a payload type. It
is mentioned in Rel 8.1.5 that it can be a 'VARCHAR2' n I started trying that. didn't know that it's not possible in 9i.
Anyways, thanx so much!!!
N Brajesh, few days back on the discussion forum itself, I mentioned my e-mailed to you. I wanted to get in touch with u
bcoz i need ur help for so many other problems. I have tight deadlines n i am new to all this stuff.
Once again, can u pls e-mail me at [email protected] Shall look forward to ur e-mail.
Thanks so much!!
Shalu -
Problem in repeating a Table in a repeating Subform
Hi Experts,
We are working on Dynamic Adobe Interactive Form inside a Java WebDynpro application.
Functionality of Interactive Form:
Sub-Forms are added to the Main Form depending upon text input from user.
Sub-Form contains Tables; all binded to WebDynpro View context.
The table iself is dynamic, u can add and delete rows at runtime,
Problem in the Form:
In an offline version of the form i add rows to the table of second instance of the subform; after saving and reopening it, the added rows get shifted to the table of first instance of the sub-form.
Please help...!!!
Thanks
AmitaThanks for the response! I do have it setup like that now, but would like to find a better way to do it to cut down on the number of pages for the form...
-
ADOBE Form Using Table with dynamic number of rows
Hi All
First some information about our infrastructure:
- AdobeDesigner 7.1 in the Developerstudio
- SAP-Portal 7.0 SP15
I have a View with tabstrips and behind the tabs i have defined an event. On one Tab I included a ADOBE-Form with Table. The Data for the PDF sould only filled in the context for the Form when i jump to this Tab. I created the Form by using this documentation [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669].
To fill the tablecontext I use the following Code:
IPrivateAnlegenBANFView.IPositionenElement position = null;
IPrivateAnlegenBANFView.IPositionenNode posNode = wdContext.nodePositionen();
int NUM_5_TIMES = 5;
for (int i = 0; i < NUM_5_TIMES; i) {
IPrivateAnlegenBANFView.IPositionenElement posElement = wdContext.createPositionenElement();
+posElement.setMaterial("" + i);+
+posElement.setKurztext("Test" + i);+
+posElement.setWarengruppe("Warengr" + i);+
posNode.addElement(posElement);
If i put this code in the wdDoInit method it works fine and shows me 5 Rows. But if I put the code in the Action of the tabstrip it shows me only one row. I checked the entries of the context and there are 5 entries (showed them in a WD-Table).
Can someone tell me what im doing wrong?
Thanks for a answer and kind regards
PascalHi All
finally i found the solution for the problem.
When you define the interactive Form in the view do not define the property "dataSource" of UI-Element Interactive Form it seems, that the binding is static and not dynamic.
Add the following source to the viewCotroller
Global Part of the Source:
private static IWDInteractiveForm form = null;
Method wdDoModify:
if (firstTime) {
form = (IWDInteractiveForm) view.getElement("InteractiveForm");
When you have an Event where you fill your Contextnode which you want to display in the table of an Adobe Form Use this code:
Action:
public void onActionFillTab(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ){
//@@begin onActionFillTab(ServerEvent)
* Code to fill the Node for AdobeForm Table
form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
//@@end
If you want to clear your table and show it directly use in the action the following code:
wdContext.nodeTabelle().invalidate();
form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
Kind regards
pascal -
Hi,
Can any one help in which table we can find Commitment item for the budget enter along with fund center and amount (Entry document or Hierarchy Document data).
I have checked the following tables, none of the table have the account number, only fund center is available.
Former Budgeting Tables
BPBK Hierarchy document header
BPDK Entry document header
BPEJ Hierarchy documt lines for annual budget
BPDZ Entry document lines
Thanks & Regards,
VenkatHi,
Please check the tables
FMBL, FMBH, FMBDT
Anil -
Problem while dropping a table
Dear All,
I am facing a problem while dropping a table in Oracle 10g.
I am able to find the number of records in the table but unble to delete it.
SQL> select count(*) from merchant_audit;
COUNT(*)
30028278
SQL> drop table merchant_audit;
drop table merchant_audit
ERROR at line 1:
ORA-00942: table or view does not exist
I have to drop this table from the database. Please help.
regards,
SanthoshHi,
IS it a table ? Is it your table ?
Read this example :
sqlplus scott/*****
SQL> create table merchant_audit(col1 number);
Table created.
SQL> create public synonym merchant_audit for merchant_audit;
Synonym created.
SQL> grant select on merchant_audit to merchant;
Grant succeeded.
SQL> conn merchant/merchant
Connected.
SQL> select count(*) from merchant_audit;
COUNT(*)
0
SQL> drop table merchant_audit;
drop table merchant_audit
ERROR at line 1:
ORA-00942: table or view does not exist
SQL>
See owner into the dba_tables, and if synonym into dba_synonyms.
Nicolas.
Message was edited by:
Nicolas Gasparotto -
Problem with checkbox on table component
Hello i am having a problem with checkbox in table component
i am developing something like a shopping cart app and i have a checkbox in my table component , i want users to select items from the checkbox to add to thier cart, They can select the items from cartegory combobox , my problem is when they select the items from the checkbox if they select another category the alread selected once do not display in my collection opbject please how can i maintain the state of the already selected items in my collection objectHi,
Please go through the tutorial "Understanding scope and managed beans". This is available at:
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/scopes.html
The details of the selected items need to be stored in an object that is in session scope.
Hope this helps
Cheers
Girish
Maybe you are looking for
-
Using Itunes on multiple computers
I have a 30 gig video ipod, and (obviously) have alot of extra space. I would like to upload some st6uff from dyds onto my ipod, but my primary computer doesn't have a dvd reading software or dvd player. However, my roomates computer has the right so
-
Zen Neeon 2 does not have power at all
Well it's so simple as in the top of a pin, it took long to discover but it is easy as drinking water. If you have your player with this problem just simply reset it by using the reset?hole in the player with a pin, and it will just turn on and be re
-
Wrong date and year on calendar
Hi there, I did get all things working right. I finilly got my new Tungsten E2 working. But know for some reason every time I open the calendar it opens to 2005. I have go to year change in the this year and date before I see what I am looking for or
-
When I connect to, update, or try to change sites, I am constantly getting a "Dreamweaver is currently interacting with a server" after I have completed an upload or change. I have even left Dreamweaver open and connected for two hours and come back
-
I have syslog sev1 and Sev2 email alerts enabled in my Prime LMS4.2.2. Is there a way to limit the alerts so that only one email gets sent for every 100 or 500 duplicate alerts etc. There are some instances where I received 5000 emails in one night f