Save SELECT_LIST_FROM_QUERY changed value
Hello.
We have a tabular form with APEX_ITEM.SELECT_LIST_FROM_QUERY LOV as item in query.
List shows in forms as expected.
Column attribute is set to Display as Text (based on LOV, does not save state).
Now users want to save LOV value when they change it.
What value must be set in column attribute, so the changed value can be saved.
We tried all the other settings, but then the LOV isn't displayed correctly or it doesn't work.
Maybe APEX_ITEM.SELECT_LIST_FROM_QUERY LOV changed value can't be saved in tabular form?
Any idea?
Thanks.
Regards,
Dejan
Hello.
For one column in my tabular form i need "select list".
I can create my own LOV and set column to "select list (named LOV)".
But my LOV must have where sentence which uses another column value (from the same row).
And that value can be different in every row - that means that LOV will be different in every row.
But i can't (or don't know) how to write where with another column value in it - for LOV.
Thanks.
Regards,
Dejan
Similar Messages
-
Can we edit webi and deski reports and save the changes?
Can we edit webi and deski reports and save the changed values for a particular column?
If yes what rights should be granted to particular user?
Will the report changes reflect at database end also?Both Web Intelligence and Desktop Intelligence comes with designers, where you have a GUI to design reports.
Web Intelligence you'd design in InfoView using the DHTML Report Panel or the applet-based Java Reporting Panel.
Desktop Intelligence you'd use the Desktop Intelligence client.
ReportEngine Java SDK (REBean) is what you'd use to programmatically create/modify Web Intelligence Documents.
Desktop Intelligence Reporter COM SDK is what you'd use to programmatically create/modify Desktop Intelligence Documents.
Sincerely,
Ted Ueda -
Changing values in the web report
Hi All,
For ex. I have the following scenario.
I have a web report in which I have a table item which is displaying the query result. The user wants to have a facility to change the Key Figs, if they want, directly on the report, it means when the user runs the web report and if he says something to be changed, he will directly change the value on the report and will click something like a button to save the changed value back in the infoprovider.
Is this something possible?I came to know that we can do this sort of things using BSP but I am not sure how to make the table item to accept some changes and how to link to a BSP Program.
Could some one please help me in this..
Best Regards,
Nene.Nene,
If you want to know if it is possible , here's how...
1. Use a BPS layout ...
2. Create a BSP layout for the same
option 2 :
Create a BSP page which has a textbox for accepting the value and a submit button.
On clicking the submit button , based on the parameters selected by the user , update the ODS. Remember you cannot update the cube because it does not have overwrite capability. However , declare the cube as an export datasource and then call the function module for the data source and push in the data for the same inside the BSP page.
Hope this helps..
Arun
Assign points if useful
Message was edited by: Arun Varadarajan -
Not able to get changed values in the SAVE EVENT in ServHPartnerDet view
Hi Experts,
I am new CRM WEB IC, i have requirement like need to access four IBASE fields from BupaIbaseDetail and need to display those fiedls in ServHPartnerDet view. I am able display the fields and its values in the target view. But when user press change button and changes those four fields and press save button not able get the changed values in to the SAVE EVENT.Anyone please help me in this.
IBHEADER , IBASEADDRESS are the CONTEXT NODE CREATED in target view. I have binded IBHEADER to CuCoIbase custom controller and getting four fields data from IBASEADDRESS. below is the code for CREATE_CONTEXT_NODES.
METHOD create_ibaseaddress.
DATA:
model TYPE REF TO if_bsp_model,
coll_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
entity TYPE REF TO cl_crm_bol_entity, "#EC *
entity_col TYPE REF TO if_bol_entity_col. "#EC *
model = owner->create_model(
class_name = 'ZL_CRM_IC_SERVHPDET_CN00'
model_id = 'IBaseAddress' ). "#EC NOTEXT
ibaseaddress ?= model.
CLEAR model.
coll_wrapper =
ibheader->get_collection_wrapper( ).
TRY.
entity ?= coll_wrapper->get_current( ).
CATCH cx_sy_move_cast_error.
ENDTRY.
IF entity IS BOUND.
TRY.
entity_col = entity->get_related_entities(
iv_relation_name = 'FirstLevelComponent' ).
CATCH cx_crm_genil_model_error.
ENDTRY.
TRY.
entity ?= entity_col->get_current( ).
CATCH cx_sy_move_cast_error.
ENDTRY.
CLEAR entity_col.
IF entity IS BOUND.
TRY.
entity_col = entity->get_related_entities(
iv_relation_name = 'ComponentAddress' ).
ibaseaddress->set_collection( entity_col ).
CATCH cx_crm_genil_model_error.
ENDTRY.
ENDIF.
ENDIF.
ENDMETHOD.Code i have written in the CREATE_CONTEXT_NODE method for my custom context nodes( IBHEADER,IBASEADDRESS).
this CREATE_IBHEADER some data related to IBASE header then from this reading the IBASEADDRESS contextnode fields for displaying in the ServHPartnerDet. It is working fine but After changing the four fields values in the ServHPartnerDet view and trying to save, then context is not reading the new values it gives the old values only.
TRY.
lr_coll_wr = ztyped_context->ibaseaddress->get_collection_wrapper( ).
IF lr_coll_wr IS BOUND.
lr_entity ?= lr_coll_wr->get_current( ).
ENDIF.
CATCH cx_crm_genil_model_error.
ENDTRY.
CALL METHOD lr_entity->if_bol_bo_property_access~get_property_as_value
EXPORTING
iv_attr_name = 'BUILDING'
IMPORTING
ev_result = lw_building.
the building has got result of old value no the new value.
method CREATE_IBHEADER.
DATA:
model TYPE REF TO if_bsp_model,
coll_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
entity TYPE REF TO cl_crm_bol_entity, "#EC *
entity_col TYPE REF TO if_bol_entity_col. "#EC *
model = owner->create_model(
class_name = 'ZL_CRM_IC_SERVHPDET_CN01'
model_id = 'IBHEADER' ). "#EC NOTEXT
IBHEADER ?= model.
CLEAR model.
bind to custom controller
DATA:
cuco TYPE REF TO cl_crm_ic_cucoibase_impl,
cnode TYPE REF TO cl_bsp_wd_context_node.
cuco ?= owner->get_custom_controller(
'CuCoIbase' ). "#EC NOTEXT
cnode ?=
cuco->typed_context->ibaseheader.
coll_wrapper = cnode->get_collection_wrapper( ).
ibheader->set_collection_wrapper( coll_wrapper ).
endmethod. -
Hi all,
I am making a vi where I have to save the selected value from listbox with its respective tab control dropdown selcted values in another listbox.Whenever I select Item1 then the heading change and respective tab will open for that item.But Now I just want to save the selection and put it in another ListBox.SO that I can renmove or add according to my wish. Plz help me.
Solved!
Go to Solution.
Attachments:
my_vi.png 83 KBHi, I successfully make the vi to insert itmes from listbox1 to listbox2.Whenever I select itmes 1 in listbox 1 it display same elected item in listbox2 , but it not appending the items in listbox2.Like If 1 is selected in listbox1 then 1 will display , next time after saving when I selct next item like 3 then in listbox 2, 1 is replaced by 3,it dont come in second row of listbox2.Hope I am able to explain.\
Plz help me to resolve this.
Attachments:
listbox_update.vi 11 KB -
How to suppress 'Do u want to save the changes?' When there are no changes
Hi All,
I have developed one form,which contains 3 blocks in that 2 are database blocks and one is control block.It's working fine.When I close the form without doing any change also it is showing an alert as 'Do you want to save the changes you have made?'. How can I suppress that alert when I haven't made any change to the form.
I am displaying one filed in the database block as 'null' until check box is checked.For that I have written code in when-new-block-instance trigger of that block.
There I wrote SET_RECORD_PROPERTY (GET_BLOCK_PROPERTY (:SYSTEM.TRIGGER_BLOCK, CURRENT_RECORD), :SYSTEM.TRIGGER_BLOCK, STATUS, QUERY_STATUS); also to change the block status as query.
But it is not working, still I am getting the alert,How can I solve this could anyone please give me a suggestion..
Thanks in advance.So, this functionality can be done through CHECK BOX itself. Why you are making null by WHEN-NEW-BLOCK-INSTANCE. You can just set the update and insert property for that fields and rest things you can control from chexbox. And WHEN-BLOCK-INSTANCE-TRIGGER will fire once when you will access that block. If you want to set the same functionality for each record. Then you must use WHEN-NEW-RECORD-INSTANCE. for ex.
Trigger = WHEN-NEW-RECORD-INSTANCE (BLOCK-LEVEL)
Here i will assume that if check box is checked then he can update that fields.
IF :CHECKBOX='Y' THEN
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_TRUE);
ELSE
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_FALSE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_FALSE);
END IF;In the above code no need for set value to NULL.
And on CHECK BOX you can write like this...
Trigger WHEN-CHECKBOX-CHANGED (ITEM-LEVEL)
IF :CHECKBOX='Y' THEN
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_TRUE);
ELSE
:FIELD_NAME:=NULL; -- here if check box is unchecked then it will set value to NULL
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_FALSE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_FALSE);
END IF;-Ammad -
How to avoid the message "Do you want to save the changes you have made?"
i have 3 forms
master block
detail1 block of master
detail2 block of detail1
when i go out of detail1 and detail2 blocks after doing some modifications it asks me "Do you want to save the changes you have made"?
i want to avoid this message as well as my changes should be posted in the database. what is the solution for this big pblm?hi
may be you are trying to modify the database item or reassigning the database item value which is not actually needed.
try to comment the reassigning database values
and give clear_form(do_commit);
most probably u will not get the message again
Regards
Rajdeep .A -
Dialog Box as "Do you want to save the changes?" in Forms.
Hi,
I have 4 datablocks in my forms that corresponds View.
In the form design, I have a canvas(multiple inserting design) with two buttons that calls the other two blocks.
Am inserting the records in the following way,
In first record,
am entering the value in one block, then a button-press event and so it opens another canvas where I enter some values then return to my main canvas. This is one row.
But while I try to insert in the second row, there arises the dialog box as "Do you want to save the changes"?
I should not get that dialog box.
Please suggest me with the solution.
Regards,
MiniThanks for the response,
Let me clearly explain.
I have 3 blocks created from view not table.
I have a canvas in the multiple display layout i.e Number of items displayed is 10.
In that canvas, I have set the two buttons. the button event is calling another canvas.
Am inserting a record in the first row in the following sequence.
Inserting the values for some fields in the main canvas, then entering the button, it opens another canvas that responds to another block, there am entering some values and closing the button event canvas, then returning to my main canvas, then entering the remaining fields with the values, thus my first row ends.
Now I want to enter the values in the second row, while I navigate from the first Row to the Second row, there arises the dialog box as to save the changes or not?
I should not get the dialog box.
Am inserting the values in the database using Insert statements in all the blocks.
Hope U understand the issue.
Suggest me with the solution.
Regards,
Mini. -
Forms6i question - Do you want to save the changes you have made !!
Hi,
I'm developing a custom master-detail form for 11i e-Business Suite. The requirement is to programmatically default values for some of the base table items when entering the master record.. Both the master and the detail blocks are base table blocks and defined the relation between these 2 as well..
So i have coded my defaulting logic in the "when-new-record-instance " trigger only when the "(:system.record_status IN ('NEW','INSERT' ) AND :system.mode <> 'ENTER-QUERY')"..
This is working but the problem is even when i do not change any values in the master block and i try to exit out of the form, getting a message "Do you want to save the changes you have made ".. I want to get that message only when some thing else is changed/entered in the master block or when any new detail records has been entered for that master block.
Thanks in advance
ShreeShree,
It sounds like you have a Post-Query (PQ) trigger that is populating items in your Form. This is the typical reason why you would see this message when you close your form and no User changes have been made. The best solution would be to move your non-base table items from your data blocks to a control block so the PQ trigger won't mark the block or record as "Changed".
Hope this helps.
Craig... -
Gettins "Do you want to save the changes you have made" promt without any
Hi all,
Problem : I have a master detail relation between two blocks which are on different window ( say block 1 on window 1 is master and block 2 on window 2 is detail) ,
when i open my window 2 and close it without any changes, then when i try to do any change in window 1 i get this popup message "Do you want to save the changes you have made".
I have various non database items as well which are used to hold intemediate values like sum of a column and all.
for the close button on window 2 logic :
go_block('BLOCK1');
hide_window('WINNDOW1');
I dont want to change the message level. as if there are really changes made then we need this message.
In another thread i saw this might be due to copy "value from property" created by master detail relation on the joined columns.
Please suggest any solutions.
Thanks in advance.HI I found the solution to this Problem:
when we queried the data block then few items values were assigned . this changes the block_status to CHANGED as well as the form_status variable to CHANGED.
so in EXIT logic of that window i cleared each block explicitly . this discards all the changes made to those blocks ( This logic was implemented for CANCEL button on my screen as so we need not save the data) while the SAVE logic already has the COMMIT so will not set the popup for that.
Not a beautiful logic...... but works ...... :) -
Hi all,
I m using interactive ALV grid with 1 column editable with some default values, When i m clicking on SAVE button, only the values which are changed by the user in that column are coming in the internal table, & the default values are automatically deleted by the following code....
But my requirement is to save all the default & changed values of the ALV column....
<b>Help me out & have ur points.</b>
DATA ref1 TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
importing
e_grid = ref1
CALL METHOD ref1->check_changed_data
IMPORTING
e_valid =
CHANGING
c_refresh = 'X'Pradeep,
When ur doing the CHECK_CHANGED_DATA, u ll get the edited values inside this callback sub -routine only. so here u trap the values those are changed ( thats after editing).
Once the control goes back to the original program ( calling prog ) , u ll end up with ur old data ( before editing).
you ll have to handle that explictly in your code, or shift to OO alv grid like this -
REPORT ZSKC_GRID.
TABLES : EQUI.
DATA : BEGIN OF T_EQUI OCCURS 0,
EQUNR TYPE EQUI-EQUNR,
AENAM TYPE EQUI-AENAM,
END OF T_EQUI.
DATA : T_FCAT TYPE LVC_T_FCAT,
G_FCODE TYPE SY-UCOMM.
DATA : G_GRID TYPE REF TO CL_GUI_ALV_GRID.
SELECT-OPTIONS: S_EQUNR FOR EQUI-EQUNR.
START-OF-SELECTION.
* get data.
PERFORM SUB_GET_DATA.
* Populate catalog.
PERFORM SUB_BUILD_CATALOG CHANGING T_FCAT.
* Display the grid.
PERFORM SUB_SHOW_GRID.
CALL SCREEN 9001.
*& Form SUB_GET_DATA
* Get data
FORM SUB_GET_DATA .
SELECT EQUNR AENAM
FROM EQUI
INTO TABLE T_EQUI
WHERE EQUNR IN S_EQUNR.
IF SY-SUBRC NE 0.
* Give some message if needed
ENDIF.
ENDFORM. " SUB_GET_DATA
*& Form SUB_BUILD_CATALOG
* text
* <--P_T_FCAT text
FORM SUB_BUILD_CATALOG CHANGING PT_FCAT TYPE LVC_T_FCAT.
DATA : WA_CAT TYPE LVC_S_FCAT.
CLEAR WA_CAT.
WA_CAT-FIELDNAME = 'EQUNR'.
WA_CAT-TABNAME = 'T_EQUI'.
WA_CAT-REF_FIELD = 'EQUNR'.
WA_CAT-REF_TABLE = 'EQUI'.
APPEND WA_CAT TO PT_FCAT.
CLEAR WA_CAT.
WA_CAT-FIELDNAME = 'AENAM'.
WA_CAT-TABNAME = 'T_EQUI'.
WA_CAT-REF_FIELD = 'AENAM'.
WA_CAT-REF_TABLE = 'EQUI'.
WA_CAT-EDIT = 'X'.
APPEND WA_CAT TO PT_FCAT.
ENDFORM. " SUB_BUILD_CATALOG
*& Form SUB_SHOW_GRID
* Show grid
FORM SUB_SHOW_GRID .
* create the Grid Object.
CREATE OBJECT G_GRID
EXPORTING
I_PARENT = CL_GUI_CONTAINER=>SCREEN0
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
OTHERS = 5.
CHECK SY-SUBRC EQ 0.
* Display contents,
CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY
CHANGING
IT_OUTTAB = t_equi[]
IT_FIELDCATALOG = t_fcat
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
others = 4.
ENDFORM. " SUB_SHOW_GRID
*& Module STATUS_9001 OUTPUT
* text
MODULE STATUS_9001 OUTPUT.
SET PF-STATUS 'PF_9001'.
SET TITLEBAR 'TITLE_9001'.
ENDMODULE. " STATUS_9001 OUTPUT
*& Module USER_COMMAND_9001 INPUT
* text
MODULE USER_COMMAND_9001 INPUT.
CASE G_FCODE.
WHEN 'BACK' OR 'CANC' OR 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'HAVE'.
* After editing everything user presses this button.
PERFORM SUB_GET_EDITED_DATA.
ENDCASE.
ENDMODULE. " USER_COMMAND_9001 INPUT
*& Form SUB_GET_EDITED_DATA
* Read the ALV grid and get current internal table.
FORM SUB_GET_EDITED_DATA .
DATA : T_OLD_DATA LIKE T_EQUI OCCURS 0.
* hold the old values if u need them.
t_old_data[] = t_equi[].
* This will update the global internal table.
CALL METHOD G_GRID->CHECK_CHANGED_DATA.
* Now t_equi have changed here. u have the old data in the T_OLD_DATA.
BREAK-POINT.
ENDFORM. " SUB_GET_EDITED_DATA
Create a blank screen called 9001. and Pf-staus has a buton with fcode "HAVE". ( alongwith BACK canc exit). -
Change Value A based on Value B in Web UI in cross component
Hi Friends,
I have a requirement to populate value A based on selection of value B in differenet component.
I have a web ui screen to create a complaint ( Component A ). After saving when I am clicking on follow up button, it will take me to next web ui screen ( Component B ) i.e. service order. Here I have a status field and after its selection when I have save. I also want to change value A of component A field.
Kindly suggest..how can I achive this.
Regards,
Narendra GoyalHi Narendra,
It depends on what the exact fields are. If you change a value in component A and this change goes to the BOL layer, then this changed value should always be accessible in component B if you use the same BOL object and BOL relation to access the data. And you can always change the value from component B and it should already change in component A. The only thing you need to ensure is to call publish_current( ) method on the node where you change the value or call a BOL code modify( ).
Regards,
Shiromani -
Unnecessary question "Do you want to save the changes..."
Hello again,
I have a multi-record block on which only update is allowed and two buttons: accept and reject. There are three possible ways of changing records:
1. change values in some fields and commit - which works fine;
2. change values in some fields and press accept button;
3. change values in some fields and press reject button.
Buttons have implemented delete, update, insert in some tables using a pl/sql stored package. At the end of the processing, for both buttons, record "accepted" or "rejected" dissapears from the block - using execute_query. Problem is that if some values have been changed before pressing the button, warning window appears: "Do you want to save the changes you have made?" which in this case is unnecessary and annoying. How can i get rid of this message?
Thank you in advance.If you don't want commit changes on base table items you can use clear_block(NO_VALIDATE) built-in before execute_query
-
ME21N-ME51N - change value of field at item level
Hello All,
We create a purchase requisition from a sales order and after a purchase order in reference to the purchase requisition.
We would like to have the sales order number in the EBAN-BSTNR and/or in EKPO-BEDNR.
We found some user-exits but it seems that we can't change value of standard fields with these.
Could someone help us to find a solution ?
May be with a BADI ?
Thanks
VéroniqueThe code below should work for you, as for explanation why it will work look at SAP note 178328 over some coffee! )
I gave some explanation below the code but the SAP note explains it in more detail
DATA: ls_yvbap LIKE yvbap.
* Sales doc is in creation mode
IF t180-trtyp = charh.
LOOP AT xvbap.
xvbap-spart = cobl-spart.
MODIFY xvbap.
ENDLOOP.
ENDIF.
* Sales doc is in change mode
IF t180-trtyp = charv.
LOOP AT xvbap.
* Append Y-table and set update flag if necessary
IF xvbap-updkz EQ space.
* Save unchanged version of XVBAP to YVBAP
ls_yvbap = xvbap.
APPEND ls_yvbap TO yvbap.
<xvbap-updkz = charu.
upd_vbap = charu.
ENDIF.
xvbap-spart = cobl-spart.
MODIFY xvbap.
ENDLOOP.
ENDIF.
SAP uses two internal tables XVBAP and YVBAP in sales document processing. XVBAP which contains the order items as they are currently after the user changed them on the screen, whereas YVBAP stores only changed item records the way they were before change. So YVBAP is only populated in change mode and not in creation mode. So if we are updating XVBAP when sales document is in change mode, we should ensure that YVBAP also contains the same record the way it was before our change.
SAP will only update the records to database if we ensure the integrity of XVBAP and YVBAP internal tables. -
JTable get Old Value in the Listener of change Value
Software
JDK 1.5 Update 6
Requirements
I have a JTable I want to show the sum total of certain Cell Value.So I have added a TableModelListener by which on updating the cell Value I change the total in the JTextField. The Problem is If I change the value then I have to get the previous value that the cell had. How to get that original value before the update.
There is a way by which we can get the same by inserting one dummy column which stores previous value.But this method inserts unneccessary if you require the total of 3 columns and if you require the same thing again and again in different frames
Is There any way by which we can show the total
Thanks in advance
CSJakhariaCan I maintain a sum of a column in a JTextField such that I change the sum as soon as any value in that column is changed without recalculating the totalYes, now I understand the question you just want to update the total with the difference between the old value and the new value.
I don't see why you are going to all this trouble. Why complicate your program, just loop though all the values in each column and add them together. You will not have a performance problem. Here is a similiar example of this approach:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=566133
However, if you still don't like that solution then you can try overriding the getCellEditor(...) or prepareEditor(...) methods of JTable. These methods should be invoked when you start editing the cell and you could query the TableModel and save the current value.
Maybe you are looking for
-
Web camera fails to initialize, not in device manager
Hi, I have a Satellite L650D with Windows 7 'Home Prem' and have recent issues with my webcam. All was running smoothly for a year or more until one day this error message appeared " Web camera initialization failed. Please restart application or com
-
Hi guys, someone can tell me if is possible to edit rman script in Backup Jobs definition of Grid? I've scheduled some jobs backup and I need to edit script but don't find where i can edit it.. thanks Andrea
-
Unhandled win32 exception in crw32.exe
Post Author: eddieedwards CA Forum: Upgrading and Licensing I have installed Crystal Reports XI Developer's Edition on a Windows 2003 SP2 box, and now whne I try to launch the application I get the error: "unhandled win32 exception in crw32.exe" and
-
I am an iMac ( early 2008 version), on MacOS 10.5.8 I would like to upgrade it to a 10.6 version, how to proceed ?
-
Quality Operation confirmation only for specific grid Values
Hello, When I am doing in process inspection for a specific routing for say the 0040th operation, upon confirmation I would like to confirm only part quatities for a specific grid value alone. But there are certain issues as follows: 1. When I am spe