Tabular form does not update
I don't have a problem, but I would like to offer a solution to people who might make the same mistake as I did:
When you build a tabular form on a table and the submit button does not seem to work, check whether your table has a primary key.
I created a table, triggers and all the other constraints and for some reason the (tabular) form I created did not update the table, even though I had told it that the primary key was the ID in the table and it was filled by a trigger (which was true).
I tried creating a different form on a different table and then I noticed that the primary key was filled in for me this time, and that this hadn't been the case in the first form. I added the primary key to the table and voila, problem solved.
Is this intended behavior ? I wonder why the user is allowed to specify the primary key when the wizard does not find it, because this does not seem to have any effect. So why not try to find the primary key and warn the user when it is not present?
Just my 2 cents....
Sloger,
if this is your tabular form
SELECT apex_item.checkbox (30,
...and this is your update statement
FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
...Then you will only ever update records that have been checked. Unchecked checkboxes are not passed back in the global array. You need to have a hidden column with the ID's for the record and loop through that when you are updating/inserting. That is why the built in tabular form has a MRU and a MRD. the MRU loops through the hidden ID column. The MRD loops through the checkbox.
Thanks,
Tyson Jouglet
Similar Messages
-
Updating a table through a manually created tabular form does not work.
Hi Friends,
I don't know why the "On submit - After computations and validations" process does not update the referenced table. May I miss something. Here is my source :
select
apex_item.hidden(1,eqp_id) id,
apex_item.hidden(2,tcs_tcs_id) tcs,
apex_item.text(3,eqp_equip_name,50) name,
apex_item.text(4,eqp_equip_ident,50) ident,
apex_item.text(5,eqp_equip_type,15) type
from equip_physical
where tcs_tcs_id = :P1_TCS_ID
and here is the process source
FORALL i IN 1..apex_application.g_f01.count
UPDATE equip_physical
SET eqp_equip_name=apex_application.g_f03(i),
eqp_equip_ident=apex_application.g_f04(i),
eqp_equip_type=apex_application.g_f05(i)
WHERE eqp_id=apex_application.g_f01(i);
No error message is displayed and my success message associated to the process is displayed. But the modified text field value is erased and the database table is not updated.I'd call it a bug/missing feature.
It appears that within a Basic report, sorting on a column created using APEX_ITEM.DATE_POPUP2() does not sort by date.
I'd file this with Oracle Support and see what they say.
Include a link to this thread and your workspace login information.
I got something to work by: (probably not what you want.)
using the C004 column directly. (I just added it to the SQL code)
setting the column's attribute "Display As" to "Date Picker"
setting the column's attribute "Number /Date Format" to DD-MM-YYYY
I suspect: since you don't start with p_idx => 1, this column becomes "1" ==> g_f01
MK -
Insert in Tabular form does not work after the upgrade to APEX 4.0
Hi all,
Thx in advance for looking into the issue.
We are running into following issue when we upgraded APEX 3.2 to APEX 4.02
1) The Tabular form insert does not work.
2) We are fatching the value of the Global variable APEX_APPLICATION.g_XXXX in a procedure and we get null for this value after submit for new row to be inserted.
The tabular form was working fine in APEX 3.2.
The Update and Delete works just fine.
Any help in this regard is highly appreciated.
Thx and regards,
MaheshHere is my workaround to get the ADDROW/SUBMIT working again if you have a legacy Tabular Form:
1 PAGE ATTRIBUTES
JAVASCRIPT
FUNCTION AND GLOBAL VARIABLE DECLARATION
var htmldb_delete_message='"DELETE_CONFIRM_MSG"';
2 DELETE BUTTON
ACTION WHEN BUTTON CLICKED
URL Target change to
javascript:apex.confirm(htmldb_delete_message,'MULTI_ROW_DELETE');
3 ADDROW BUTTON
ACTION WHEN BUTTON CLICKED
Action
redirect to URL
URL Target
javascript:addRow();
4 PROCESS
APPLYMRU (activitated by button ADDROW)
CONDITION
never or delete
5 PROCESS
ADDROWS
CONDITION
never or delete
6 CHANGE PAGE TEMPLATE to e.g. THEME 13 One Level Tabs.
7 IF YOU WANT ADD FUNCTIONALITY TO GOTO BOTTOM OF PAGE AFTER ADDROW
1. In the page footer put <a name="bottom_of_page"></a>
2. Amend the action when the "ADD" button is clicked to scroll down to the new region by doing the following:
- edit "ADD" button
- Go to "Action when button Clicked" section
- Amend "URL Target" from
javascript:addRow();
to
javascript:addRow();window.location='#bottom_of_page' ;
regards
PaulP -
Sorting on date (date_popup2) in manual tabular form does not work
Hi All,
I created a manual tabular form (based on a collection) with 1 date_popup2 field in it. This field is defined in the query as follows:
, apex_item.date_popup2( p_idx => 18
, p_value => c004
, p_date_format => 'dd-mm-yyyy'
, p_item_id => 'f18_' || lpad (rownum, 4, '0')
, p_item_label => 'Start date'
) as tf_br_start_date
In the report attributes I marked this column to be sortable.
However, in the page the sorting is not working. It looks like it's always sorted in the order of the seq_id.
Can anyone tell me how to solve this?
Regards,
RenéI'd call it a bug/missing feature.
It appears that within a Basic report, sorting on a column created using APEX_ITEM.DATE_POPUP2() does not sort by date.
I'd file this with Oracle Support and see what they say.
Include a link to this thread and your workspace login information.
I got something to work by: (probably not what you want.)
using the C004 column directly. (I just added it to the SQL code)
setting the column's attribute "Display As" to "Date Picker"
setting the column's attribute "Number /Date Format" to DD-MM-YYYY
I suspect: since you don't start with p_idx => 1, this column becomes "1" ==> g_f01
MK -
Tabular model does not update accordingly with source data chage
Hi all ,
I am new into Tabular, appreciate if someone can help please.
I've created a simple Tabular model against a single table (SQL Server 2012 ). When I process and deploy I can open it on Excel and view data.
Then when I change data in the source table, and process and deploy the data, the changes does not reflect when open in Excel, But If I give different Database Name and Cube Name under Tabular Properties and process and deployed, and open in Excel I can
see the changes.
I want to keep the same Database and Cube Name under Tabular properties/Development server.
Is it possible to see source table changes in Excel, if I didn't change Database and Cube Name under Tabular properties/Development server.
Deployment Options are as follows:
Processing Option : Default
Transaction Deployment :False
Query Mode: In Memory
Thanks.
MiraHi,
Try by changing the "Processing Option : Default" to "Processing
Option : Full". Sometimes I delete the workspace database created in SSAS server before do the processing.
Best regards.
Chandima Lakmal Fonseka -
Add rows to tabular form does not work
When two user try to "Add row" simultaneously then nothing happens i.e no new row is added.
When one of the user clicks on the "Previous" pagination buttons then only its possible to add a new row. The following pagination options is used in the report:
Row Ranges 1-15 16-30 in select list (with pagination)
I use internal Application Express account credentials and login page in this application as my authentication scheme.Any idea, what is not working here.
Help! -
Form does not display all records from table
Hi guys
I modified one form that was based on a signle DB table. I removed certain fields from the table and added some extra fields to that table. Then based on the new table I also modified the form and removed the text items related to old fields in the table and added new text items pointing to the new fields now. II have checked all the new items properties and they have don't seem to be wrong or so. But now the problem is the form does not display all the records from the table. before it used to display all records from the table when qureied but not now. It only certain records from the table containing all new data and also old data but the form does not display other records though I don't see any obvious discrepancy. Remember that the before doing the modifications, I have table back for the old, created another table that contained new records for the new fields, and then I inserted the old records and updated the new table data in the new table with these new table values. So this way I have got my new table. Could someone help why the new modified form fails to display all records from the new table updated table though it display some of them successfully.
Any help will be appreciated.
Thankshi
Set the block property of "Query All Records" to "YES"
hope it will work.
Faisal -
BAPI_ACC_DOCUMENT_POST does not update BKPF/BSEG tables
Hello,
I used bapi_acc_document_post to post a accounting document The following routine says that the document is successfully posted, however, does not update the acccounting tables. I read several messages on the SDN and unable to get the correct answer.
Your help is appreciated.
Regards
William
REPORT ze_bapi_acc_document_post .
SELECTION-SCREEN BEGIN OF BLOCK bl01 .
SELECTION-SCREEN ULINE.
PARAMETERS:
ref_key LIKE bapiache01-obj_key DEFAULT 'TEST000001BAPICALL',
dest LIKE bdi_logsys-logsys DEFAULT ' '.
SELECTION-SCREEN END OF BLOCK bl01 .
DATA:
gd_documentheader LIKE bapiache09,
gd_customercpd LIKE bapiacpa09,
gd_fica_hd LIKE bapiaccahd,
it_accountreceivable LIKE TABLE OF bapiacar09 WITH HEADER LINE,
it_accountgl LIKE TABLE OF bapiacgl09 WITH HEADER LINE,
it_accounttax LIKE TABLE OF bapiactx09 WITH HEADER LINE,
it_criteria LIKE TABLE OF bapiackec9 WITH HEADER LINE,
it_valuefield LIKE TABLE OF bapiackev9 WITH HEADER LINE,
it_currencyamount LIKE TABLE OF bapiaccr09 WITH HEADER LINE,
it_return LIKE TABLE OF bapiret2 WITH HEADER LINE,
it_receivers LIKE TABLE OF bdi_logsys WITH HEADER LINE,
it_fica_it LIKE TABLE OF bapiaccait WITH HEADER LINE,
it_accountpayable LIKE TABLE OF bapiacap09 WITH HEADER LINE,
it_paymentcard LIKE TABLE OF bapiacpc09 WITH HEADER LINE,
it_ext LIKE TABLE OF bapiacextc WITH HEADER LINE.
PERFORM fill_internal_tables.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
DESTINATION dest
EXPORTING
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
TABLES
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
return = it_return.
WRITE: / 'Result of check all:'. "#EC NOTEXT
PERFORM show_messages.
DATA: l_type LIKE gd_documentheader-obj_type,
l_key LIKE gd_documentheader-obj_key,
l_sys LIKE gd_documentheader-obj_sys.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
IMPORTING
obj_type = l_type
obj_key = l_key
obj_sys = l_sys
TABLES
accountgl = it_accountgl
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
return = it_return
EXCEPTIONS
OTHERS = 1.
WRITE: / 'Result of post:'. "#EC NOTEXT
PERFORM show_messages.
REFRESH IT_RETURN.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
IMPORTING
RETURN = IT_RETURN.
COMMIT WORK. .
BREAK-POINT.
Form fill_internal_tables
FORM fill_internal_tables.
PERFORM fill_header.
PERFORM fill_accountgl.
PERFORM fill_accountap.
PERFORM fill_accounttax.
PERFORM fill_currencyamount.
ENDFORM. " fill_internal_tables
Form Show_messages
FORM show_messages.
IF it_return[] IS INITIAL.
WRITE: / 'no messages'.
ELSE.
SKIP 1.
LOOP AT it_return.
WRITE: / it_return-type,
(2) it_return-id,
it_return-number,
(80) it_return-message,
it_return-message_v1,
(20) it_return-parameter,
(3) it_return-row,
it_return-field.
ENDLOOP.
ENDIF.
ULINE.
ENDFORM. " Show_messages
FORM fill_accountgl *
FORM fill_accountgl.
Actual invoice line
CLEAR it_accountgl.
it_accountgl-itemno_acc = 2.
it_accountgl-gl_account = '0000009223'.
it_accountgl-item_text = 'Line Iten'. "#EC NOTEXT
it_accountgl-profit_ctr = 'DNDDUMMY'.
it_accountgl-comp_code = '0180'.
it_accountgl-tax_code = 'IG'.
it_accountgl-FUNDS_CTR = '1985BA'.
it_accountgl-COSTCENTER = '1985BA'.
it_accountgl-FUND = 'C113'.
it_accountgl-TAXJURCODE = 'CAON'.
APPEND it_accountgl.
ENDFORM. "fill_accountgl
FORM fill_header *
FORM fill_header.
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = gd_documentheader-obj_sys.
OBJ_TYPE has to be replaced by customers object key (Y* or Z*)
gd_documentheader-obj_type = 'BKPFF'.
gd_documentheader-obj_key = ref_key.
gd_documentheader-BUS_ACT = 'RMRP'.
gd_documentheader-username = sy-uname.
gd_documentheader-header_txt = 'BAPI Test'. "#EC NOTEXT
gd_documentheader-obj_key_r =
GD_DOCUMENTHEADER-reason_rev =
gd_documentheader-comp_code = '0180'.
GD_DOCUMENTHEADER-AC_DOC_NO =
gd_documentheader-fisc_year = '2008'.
gd_documentheader-doc_date = sy-datum.
gd_documentheader-pstng_date = '20070901'.
GD_DOCUMENTHEADER-TRANS_DATE = SY-DATUM.
GD_DOCUMENTHEADER-VALUE_DATE =
GD_DOCUMENTHEADER-FIS_PERIOD =
gd_documentheader-doc_type = 'RE'.
gd_documentheader-ref_doc_no = '6000009268'.
GD_DOCUMENTHEADER-COMPO_ACC = 'FI'.
gd_documentheader-bus_act = 'RFBU'.
ENDFORM. "fill_header
FORM fill_ap *
FORM fill_accountap.
vendor line
CLEAR it_accountpayable.
it_accountpayable-itemno_acc = 1.
it_accountpayable-comp_code = '0180'.
it_accountpayable-pmnttrms = '0006'.
it_accountpayable-TAX_CODE = 'IG'.
it_accountpayable-vendor_no = '0001200051'.
it_accountpayable-item_text = 'Vendor Line'. "#EC NOTEXT
APPEND it_accountpayable.
ENDFORM. "fill_accountap
FORM fill_tax *
FORM fill_accounttax.
tax line
CLEAR it_accounttax.
it_accounttax-itemno_acc = 3.
it_accounttax-gl_account = '0000081710'.
it_accounttax-tax_code = 'IG'.
it_accounttax-acct_key = 'VST'.
it_accounttax-TAXJURCODE = 'CA00'.
APPEND it_accounttax.
ENDFORM. "fill_accounttax
FORM fill_currencyamount *
FORM fill_currencyamount.
CLEAR it_currencyamount.
it_currencyamount-itemno_acc = 1.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'CAD'.
it_currencyamount-amt_base = '106.00'.
APPEND it_currencyamount.
CLEAR it_currencyamount.
it_currencyamount-itemno_acc = 2.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'CAD'.
it_currencyamount-amt_base = '100.00'.
APPEND it_currencyamount.
CLEAR it_currencyamount.
it_currencyamount-itemno_acc = 3.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'CAD'.
it_currencyamount-amt_base = '6.00'.
APPEND it_currencyamount.
ENDFORM. "fill_currencyamountU have to implement the BADI for this.. ‘AC_DOCUMENT’
Add source code into Method: CHANGE_INITIAL & CHANGE_AFTER_CHECK,
*---<SAPLBPFC> is for Posting with BAPI: BAPI_ACC_DOCUMENT_POST
*---<SAPCNVE > is for Posting(Tax) with BAPI: BAPI_ACC_DOCUMENT_POST
*---<SAPMSSY1> is for Test(Check) with BAPI: BAPI_ACC_DOCUMENT_CHECK
DATA: wa_header TYPE acchd.
IF sy-xprog NE ' SAPMSSY1 '.
CLEAR wa_header.
wa_header = im_document-header.
ex_document-header-bktxt = wa_header-bktxt.
CLEAR wa_header.
ENDIF. -
"edit" link from report to form does not show values
I created a report and an attached form on two different pages. The report is a query combining two tables with outer joins. When I click on the "edit" button on the report, I get forwarded to the form page.
My problem: When I get forwarded to the forms page, I get an empty form, and not the data from the column as expected. The "edit" button behaves more like the "create" button. Anybody an idea what I could change to be able to edit the column data?
Thank you.I've met the similar problem with previous releases (1.5.0 and 1.5.1) without any objective reason.
As I suggests, sometimes HTMLDB lost current session state. When this occurs, ALL links from reports to it's forms does not transit primary keys. I've just completed application development and I've met this behaviour every months.
As a workaround I found folowwjing process:
Come into administration tab, selet "Report with option to purge current session state". When I purge current session state and re-login to application, all report-form links will start to work.
I don't know, what is the issue, but I met it so soon on my local HTMLDB environment. -
ESS Salary statemenr: Form Does not exist error
Hi Experts,
As mentioned in may threads, I have changed the form name for salary statement to the custom form name in SPRO- --> HRFOR
But the portal displays "Form does not exist" error. Could not find a solution in any existing post on sdn.
Urgent help needed.
Thanks,
ShobhitHi,
If your payslip form is desinged in PE51, then follow these steps.
Employee Self-Service-> Service-Specific Settings-> Benefits and Payment-> Salary Statement-> Form Using HR Forms Editor (PE51)
a. Edit Feature HRFOR: Maintain the constant $CEDT$ for MOLGA 40 RCLAS +01(03).
b. Enter Payslip variant in EDTIN feature
c. Maintain smartform name in EDPDF
If your payslip form is designed in HRFORMS, then enter the form name in HRFOR feature and enter the variant in EDTIN.
Cheers!!
Ashutosh -
Current platform : Linux
Current firefox version : Firefox 4 beta 12
Issue : does not update to RC 1 using the check for update feature.
Background : previously downloaded beta 8 and then it automatically updated to beta 12 using update features but for RC1, it does not.
I know users under Windows platform had same problem but was resolved and they can now update via check for update feature.
Please implement for Linux users too.
Thanks !!If you can't update then you can download and install the full Firefox 4 RC version.
* http://www.mozilla.com/firefox/all-beta.html -
Can't add music my iPhone from iTunes.
When I try to drag a song over to my phone, I get the circle w/ the syncing line through it, but it does not update/load.
[Manually manage music and videos] is checked. And, this is the only Mac I have ever used to add music to my phone.
Also, just updated the phone's software today, and iTunes' software is already up to date.Hi Gregg,
Have you tried resetting the device (nothing will be lost): Hold down the Home and Power buttons at the same time and continue to hold them down until the Apple appears (up to 30 seconds). Once the Home screen redisplays, see if your Music app is behaving normally.
Cheers,
GB -
HT2513 The date on my dock does not update automatically ? - Ps anybody.
I use MACCBOOK PRO with OS X ver 10.6.8.
I Cal Version 4.0.4 (1395.7)
Sometimes the current date does not update on my ical icon in the dock. After clicking on it the date becomes OK.
I would appreciate if someone has a solution.I solved the problem by uninstalling Glims.
-
Mobile.me Calendar does not update/sync on iPhone
Since I did my upgrade to the new version of Mobile.me Calendar (as requested by Apple!), my iPhone no longer shows entries that I have typed into the Mobile.me Calender website. I no longer use iCal because Apple said it would not work with the new version of Calendar on Mobile.me, so I did the upgrade to stay in sync with calendars on my mobile.me site and iPhone, but the iPhone does not update. I deleted my calendar entries on my iPhone hoping that the Mobile.me would re-sync the data, but that didn't happen either. Here is my info:
iPhone version 3.1.3(7E18) Model MA712LL (first original iPhone)
What else can I tell you to help me please?Please always post your System details when you have a question. The upgrade to the new MobileMe calendar produces different results, and different problems, with different versions of OSX.
Snow Leopard: during the upgrade process your iCal calendars should be moved to MobileMe (this can take some time and you have to wait for it to happen). Once done, your iCal reads the calendars from MobileMe so any changes made in either place will be visible immediately. If this has not happened then this Apple Tech Note provides instructions:
http://support.apple.com/kb/TS3397
Leopard: when the upgrade is completed iCal on Leopard will not be able to see the MobileMe calendars until an additional process is carried out, detailed in this Apple Tech Note:
http://support.apple.com/kb/HT4330
Tiger: iCal on Tiger cannot read the MobileMe calendars, period. The only workaround is to upgrade to Leopard, or Snow Leopard if possible (Intel Mac required). -
Manual sync to ITunes does not update music
I have a generation 3 (I think--it looks like the model number is A1318) IPOD Touch running version 4.1 operating system. I have ITunes version 12.0.1.26.
It does not automatically sync. When I select manual sync, it appears to go through the process and indicates that it has completed the sync, but nothing has changed. It does not update the IPOD with new songs from my library.
Any help would be appreciated. For example are thees operating systems compatible? If they are what am I doing wrong.
Thanks
RonTry backing up to iTunes and restore from backup
iOS: Back up and restore your iOS device with iCloud or iTunes
Note that ll the synced media like apps and music have to be on the computer since they are not included in the backup
Maybe you are looking for
-
Follow-up: Enhancing multi-tasking in Windows 10 with the cloud
This is a follow-up of: http://social.technet.microsoft.com/Forums/en-US/dbb2102f-00b7-47ca-88f2-4f88cd9d3409/followup-starting-launching-and-switching-?forum=WinPreview2014Feedback + http://social.technet.microsoft.com/Forums/en-US/eaf27b6f-68cf-403
-
how do i change the default hand tool to the select tool when i open a document. how do i change the view from 2 pages to a single page?
-
Photos is hangs first time using
Just installed 10.10.3 and tried Photos. Went through a couple introductory screens, turned down iCloud syncing (I think), now it is just hanging for 12 hours now. When I try to see what iCloud is doing from Preferences it is also hanging and won't l
-
How to Assign Custom Search Help to the standard tcode ME53N.
Hi All, Can any help me out. I have created a custom Collective Search ZH_T023_MEPO, I want it to be assigned it to the Tcode ME53N. Replacing the standard one H_T023_MEPO. and i also need to restrict it for only one Plant for other Plantu2019s sta
-
Syntax Error "Method was not declared or inherited in class"
Dear all, I am seeing the following syntax error in one of the standard classes CL_ICCMP_BT_INRHISTRESULT_CN01 which says "Method "XYZ" was not declared or inherited in class". Need help to identify when this error would occur or where I should be ch