Change LOV of column in view, based on values of another LOV of column in the same view
Hi,
I am using Jdeveloper 11.1.1.5.
I have a scenario in which I have two columns in the view. column names are:
1- Column A
2- Column B
both the columns have LOV's
LOV in column A contains values as: 1, 2. Now, when I select the value 1 in column A, In the column B, an LOV named ABC should be shown. and when I select value 2 from LOV in column A, LOV named XYZ should be shown in column B.
how can I do that?
thanks in advance (^.^).
Use onchange attribute of the first drop-down. On change, submit the form. On server side, fetch the values for second drop-down based on the value selected for the first drop-down.
Similar Messages
-
Reading Attributes from different context nodes in the same view
Hi,
I have added a new field as part of an enhancement for Trade Promotions. This field is a checkbox and part of the context node TRADE in the view TPMOE/HeaderEOF. This field will be checked or unchecked using a logic in the background.
The logic will be based on an attribute (Fund Plan ID) which is part of another context node FUNDPLAN in the same view.
How can I read the attribute of FUNDPLAN context node in TRADE context node?
A sample code will be quite helpful as I am new to CRM 2007.
Thanks,
Abhishek
Edited by: Abhishek Periwal on Oct 16, 2008 2:35 PMHi Abhishek,
If I understand your question correctly, you would like to access the Fund plan ID (in a different context node) in the getter setter methods of the check box attribute which you have added.
The code snippet mentioend by sudeep works perfectly fine when you are making any checks in the view implementation class. But since you are in the getter setter methods of the context class, this doesnot work as "me" always refers to the class instance in which you are present.
Now in this case what you need to do is :
1) create an attribute <view_controller> in your context class. Here the context is TRADE. The type of this attribute wud be same as the view controller class CL_TPMOE_HEADEREOF0_IMPL
2) Go to the view controller class and redefine the method
DO_VIEW_INIT_ON_ACTIVATION. This method is called only once when the view is loaded for the first time.
3) In this method, put the following code
me->typed_context->(Trade)->[view_controller] = me.
by the above code, you are setting the newly created attribute to the view controller instance.
4) The next step would be, go back to your getter setter methods or what ever it may be, try referring to the Fund plan ID by the code snippet mentioned below
data: lr_entity type ref to cl_crm_bol_entity.
lr_entity ?= me->[view_controller]->typed_context->[the context node in which the fund plan id is present]->get_current().
lv_field_value = lr_entity->get_property_as_String( **pass the field name here ).
This should definitely resolve the problem.
Thanks,
Vinay -
Access attribute of a context node in another context node of the same view
Hi all,
I want to acess value of an attribute PERNR of context node CUSTOMERS in another context node AUTHENTICATION of the same view. A sample syntax would be helpful .
Thanks,You didn't specify your version of Oracle so here are two options. If 10.2 or greater, use XMLTable, else use the ExtractValue option.
-- The WITH simply simulates your existing table that I do not have.
WITH fake_tab AS
(SELECT XMLTYPE('<?xml version="1.0" encoding="ISO-8859-1"?>
<Settings>
<Setting Name="A1" Value="N"/>
<Setting Name="A2" Value="N"/>
<Setting Name="A3" Value="SOMEVALUE"/>
<Setting Name="A4" Value="N"/>
<Setting Name="A5" Value="Y"/>
<Setting Name="A6" Value="N"/>
</Settings>
') tab_col
FROM dual)
-- For 10.2 and higher use this SELECT
SELECT a5
FROM fake_tab,
XMLTABLE('/Settings'
PASSING fake_tab.tab_col
COLUMNS
a5 VARCHAR2(10) PATH 'Setting[@Name="A5"]/@Value');
-- For 10.1 and before
SELECT ExtractValue(tab_col, '/Settings/Setting[@Name="A5"]/@Value')
FROM fake_tab; -
Two iterators based on the same view issue
Hi
I'm using jdev11.1.1.2
My requirement is to have a view object as a form on the page (with next, previous, create/delete buttons)
and to have a popup with the same view object as a readonly table (only for taking a look at a table representation of the view)
So we have iterator A , that the form is based on it, and Iterator B that the table is based on it- both iterators based on the same view object.
My problem is that if I popup the table and enter some filter there (my table is filterable) this filter is applied to the form also. I wont these two iterrators not to interfere with one another.
What is the bast way to do that ?
Thanks
a.gruevSince you have same view object changes in 1 iterrator will also change the other.
You would need 2 view objects to do that. -
Problem with embeding the same view in dynamically created view container
Hello Experts,
I am getiing a dump when i try to embed the same view inside the dynamically created view container of
dynamically created tabs of a tabstrip
The requirement go like this, i have 2 views in which i have have to embed the 2nd view to view1 where i have an empty
tabstrip without tabs. During runtime i create tabs as well as view containers accordingly and then try to embed view2 in tabs.
I have put the below mentioned code in HANDLEIN,
DATA: lref_vcntlr TYPE REF TO if_wd_view_controller,
lref_comp TYPE REF TO if_wd_component_usage,
lv_embed_pos TYPE string.
lref_vcntlr = wd_this->wd_get_api( ).
lv_embed_pos = 'FILE_PERS_EDIT/VC_GENERAL'.
TRY.
CALL METHOD lref_vcntlr->do_dynamic_navigation
EXPORTING
source_window_name = 'FILE_PERSISTENCE_WND' " Window
source_vusage_name = 'FILE_PERS_EDIT_USAGE_1' " Source View usage
source_plug_name = 'TO_EDIT_LAYOUT' " Outbound plug
target_view_name = 'PERS_EDIT_LAYOUT' " Second view to be embedded
target_plug_name = 'IN' " Second view inboun plug
target_embedding_position = lv_embed_pos
RECEIVING
component_usage = lref_comp.
CATCH cx_wd_runtime_repository .
ENDTRY.
wd_this->fire_to_edit_layout_plg( ).
This works fine for the first time.
However onaction tab select i change the embeding position( 'FILE_PERS_EDIT/view container name of different tab') of the view2 an try to embed view2 in a different tab.
At this point i get a dump stating View2 already present in the window 'FILE_PERSISTENCE_WND' of component.
I think, the view2 embediing has to be removed before i add the view2 in a different tab
Kindly let me know how to remove view2 embedding from tab1 before i add a view2 to a different tab or is there any other
means to handle this problem?
Thanks & Best Regards,
Srini.Hello Srini,
I found a solution to your problem, because I had a similar task.
In WDDOINIT I changed the method do_dynamic_navigation to if_wd_navigation_services_new~prepare_dynamic_navigation:
DATA:
l_view_controller_api TYPE REF TO if_wd_view_controller.
l_view_controller_api = wd_this->wd_get_api( ).
TRY.
CALL METHOD l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation
EXPORTING
source_window_name = 'WDW_MAIN'
source_vusage_name = 'VW_SUB_USAGE_1'
source_plug_name = 'TO_VW_CONTENT'
target_component_name = 'ZTEST_DYNAMIC'
target_view_name = 'VW_CONTENT'
target_plug_name = 'DEFAULT'
target_embedding_position = 'VW_MAIN/VC_TAB.VW_SUB/TAB1_VC'
RECEIVING
repository_handle = wd_this->g_rep_handle.
CATCH cx_wd_runtime_repository .
ENDTRY.
wd_this->fire_to_vw_content_plg( param1 = 'TAB1' ).
In the action I first deleted the navigation targets, then navigated to the empty-view and last I called my target view:
DATA:
lv_position TYPE string,
l_view_controller_api TYPE REF TO if_wd_view_controller,
lr_view_usage TYPE REF TO if_wd_rr_view_usage,
lr_view_***_t TYPE wdrr_vca_objects,
lr_view_*** LIKE LINE OF lr_view_***_t.
l_view_controller_api = wd_this->wd_get_api( ).
lr_view_usage = wd_this->g_view->get_view_usage( ).
lr_view_usage->delete_all_navigation_targets( plug_name = 'TO_VW_CONTENT' ).
CLEAR lv_position.
CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' old_tab '_VC' INTO lv_position.
TRY.
l_view_controller_api->if_wd_navigation_services_new~do_dynamic_navigation(
source_window_name = 'WDW_MAIN'
source_vusage_name = 'VW_SUB_USAGE_1'
source_plug_name = 'TO_EMPTYVIEW'
target_component_name = 'ZTEST_DYNAMIC'
target_view_name = 'EMPTYVIEW'
target_plug_name = 'DEFAULT'
target_embedding_position = lv_position ).
CATCH cx_wd_runtime_repository.
ENDTRY.
CLEAR lv_position.
CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' tab '_VC' INTO lv_position.
TRY.
wd_this->g_rep_handle = l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation(
source_window_name = 'WDW_MAIN'
source_vusage_name = 'VW_SUB_USAGE_1'
source_plug_name = 'TO_VW_CONTENT'
target_component_name = 'ZTEST_DYNAMIC'
target_view_name = 'VW_CONTENT'
target_plug_name = 'DEFAULT'
target_embedding_position = lv_position ).
CATCH cx_wd_runtime_repository.
ENDTRY.
wd_this->fire_to_vw_content_plg( param1 = tab ).
Ann.: I my example, I had 3 views: VW_MAIN which embedds VW_SUB. VW_SUB has the tabs in it and VW_SUB embedds VW_CONTENT.
BR,
Roland -
ADF table and ADF form on the same view object
Hi,
As per the ADF demos available on ADF site, I created a jsf page with 2 panels. One panel is an ADF table based on a view object. And the other panel is and ADF form based on the same view object. My requirement is that as I scroll through the records in the ADF table, the ADF Form should dynamically display the details of the record in the ADF table. My understanding is that this should be automatic. However, its not working as expected. What have I missed?Hi,
Apply PPR for form that displays details.
Like :
<af:table id="t3">
</af:table>
<af:panelFormLayout id="pfl2" partialTriggers="t3">
</af:panelFormLayout > -
Problem displaying the output in the same view
hi Gurus,
I have developed an web dynrpo application and have three views, in the first view I am having an input field from which I am calling a BAPI by giving that input field value as input to the BAPI.
Now is it possible to display the output also retrived from the BAPI on the same view.
Thanks and regards
krishi LM,
Thanks for your fast response.
I think I was not clear in explaining my problem.
I have a view in which I have an input field which is the input to the BAPI, now on entering the value in the input field I have a submit button, on clicking the BAPI should be executed and also the the output should be displayed on the same view.
Now regarding the mapping both the input and output are in the same context, would that a problem.
And also after getting the output from the BAPI I have to do some validations based on the output from the BAPI and get some message printed on the view.
Please help me in this issue.
Thanks and regards
kris -
How to disable an LOV wrt value in another LOV?
I have a javascript function that works fine if P2_BANK_ASSIGNED is a text item. But if I change it to an LOV is doesn't work. How do I disable an LOV on value of another LOV?
<!--===================================================================-->
<!--FUNCTION TO DISABLE LOV BANK ASSIGNED IF LOV TRIAL IS <> 0 -->
<!--===================================================================-->
<script type="text/javascript">
function disBankAssigned(){
var lReturn = $x('P2_TRIAL').value;
if (lReturn == 0 ) {
$x('P2_BANK_ASSIGNED').readOnly = false;
else {
$x('P2_BANK_ASSIGNED').readOnly = true;
</script>
onchange="disBankAssigned();"
regards
Paul PTry $x('P2_BANK_ASSIGNED').disabled = true; (or false)
-
Join the same view using 2 different conditions, getting error ORA-00918
Hi, I am trying to do a full outer join using the same view with different where conditions. Sample code below. I am getting the error "ORA-00918: column ambiguously defined". I have used as much alias as I can on the select statements but it gives me the same error.
The weird thing is, RIGHT OUTER JOIN and LEFT OUTER JOIN will work fine. Only FULL OUTER gives the error above.
Thanks in advance for your help.
SELECT firsttable.<column_name>, secondtable.<columnname>
FROM
SELECT ...
FROM V_MYVIEW
WHERE <column_name> IN (1,2)
) firsttable
FULL OUTER JOIN
SELECT ...
FROM V_MYVIEW
WHERE <column_name> IN (3,4)
) secondtable
ON firsttable.<column_name> and secondtable.<column_name>ON firsttable.<column_name> and secondtable.<column_name> ON firsttable.<column_name> = secondtable.<column_name>
-
How to use the TableSorter for two tables at the same view?
Hello,
I am using the TableSorter object in order to sort Dynpro tables.
Suppose I have two tables at the same view, is it possible to use it seperatly for both of them?
I assume that at the wdModifyView method I will need to catch the table that the user clicked on, yet I don't have an idea of how to do it...Hi Roy,
Constructor of TableSorter
public TableSorter(IWDTable table, IWDAction sortAction, Comparator[] comparators)
So, you have to create instance of TableSorter class for each table on the view.
best regards, Maksim Rashchynski. -
How do I edit a table cell value in the same view?
This is probably just a clarification more than a question, but when looking at the iPhone->Settings->Mail,Contacts,Calenders view. If you select a mail account, you are taken to the account edit view where you can edit your account information.
In this particular example, there is a 4 row grouped table section, with headers like "Name", "Address", "Password" and "Description".
I am trying to duplicate this method of data entry where I don't have the user select the cell and get navigated to a new screen, but rather just pop up the appropriate keyboard, and allow them to edit within the cells within the same view.
Currently, the only implementation that seems to make sense is to add a UITextField to the cell, and when the user selects, it will allow them to duplicate this behavior. It seems like there's an easier way to do this, but just not finding it.
it seems like SetEditing deals more with deleting, adding and reordering...not actually editing data within the cells.
Anyways, if there are any tips/tutorials/etc to look at, much appreciated!i do that. but the new window doesnt open a folder in the same path location
-
How to create a new row for a VO based on values from another VO?
Hi, experts.
in jdev 11.1.2.3,
How to create a new row for VO1 based on values from another VO2 in the same page?
and in my use case it's preferable to do this from the UI rather than from business logic layer(EO).
Also I have read Frank Nimphius' following blog,but in his example the source VO and the destination VO are the same.
How-to declaratively create new table rows based on existing row content (20-NOV-2008)
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
I have tried:
1.VO1(id,amount,remark1) and VO2(id,amount,remark2) are based on different EO,but render in same page,
2.Drag and drop a Createwithparams button for VO1(id,amount,remark),
3.add: Create insertinside Createwithparams->Nameddata(amount),
4.set NDName:amount, NDValue:#{bindings.VO2.children.Amount}, NDtype:oracle.jbo.domain.Number.
On running,when press button Createwithparams, cannot create a new row for VO1, and get error msg:
<Utils> <buildFacesMessage> ADF: Adding the following JSF error message: For input string: "Amount"
java.lang.NumberFormatException: For input string: "Amount"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
Can anyone give some suggestions?
Thanks in advance.
bao
Edited by: user6715237 on 2013-4-19 下午9:29Hi,CM,
I'm really very appreciated for your quick reply! You know, today is Saturday, it's not a day for everyone at work.
My principal requirement is as follows:
1.select/check some rows from VO2, and for each selection create a new row with some attributes from VO2 as default values for VO1's corresponding attributes, and during this process the user may be cancel/uncheck or redo some of the selections.
--so it's better to implement it in UI rather than in EO.
2.it's better to implement this function with declarative way as in Frank Nimphius' blog.
--little Jave/JS coding, the better. I only have experience in ORACLE FORMS, little experience in JAVA/JS.
In order to get full information for the requirements of my use case, can take a check at:
How to set default value for a VO query bind variable in a jspx page?
(the end half of the thread: I have a more realworld requirement similar to the above requirement is:
Manage bank transactions for clients. and give invoices to clients according to their transaction records. One invoice can contain one or many transactions records. and one transaction records can be split into many invoices.
Regards
bao
Edited by: user6715237 on 2013-4-19 下午11:18
JAVE->JAVA -
How to display an ADOBE FORM in the same view
Hi forum
I am displaying an Adobe Form in a view of Web Dynpro for Java, but when this open, the adobe form open another windows with de pdf... how can i diplay this adobe form in the same view ?
Thnks
Josué CruzHi Josué Cruz,
Insert the 'Interactive Form' UI element in the desired view.
And bind its 'pdfSource' property to the context atribute pdf source. Optionally, you can set height and width of the form.
-Aarthi -
My Iphone was changed because of broken down thanks to its warranty. I am from Turkey and I paid one time for my old Iphone to save. Can you give me a paper or document related to this phone was changed since it was broken down? I need IMEI numbers of two Iphones on the same page. Because I don't wanna save this Iphone again in my country. I paid one time for my old Iphone. If you give me a document, I don't need to save my Iphone5 and also I don't need to pay again to save in my country.
this forum is made up of users like you, not apple employees. We can not help you with that kind of request.
-
My account asks me to change my password every week for no reason and i have different security questions for the same account
Does the iPod connect to other networks?
Does the iPod see the network?
Any error messages?
Do other devices now connect?
Did the iPod connect before?
Try the following to rule out a software problem:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Power off and then back on the router
- Reset network settings: Settings>General>Reset>Reset Network Settings
- iOS: Troubleshooting Wi-Fi networks and connections
- Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
- iOS: Recommended settings for Wi-Fi routers and access points
- Try changing the security on the router. Start with no securty as a test.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar
Maybe you are looking for
-
Can I install Snow Leopard on a MacBook Pro 2.0GHz quad-core Intel i7?
I need to reformat my MacBook Pro 2.0GHz quad-core Intel i7 with OS X Lion with Snow Leopard in order to install Final Cut Pro Studio 2. Does anyone know if this can be done? Thanks in advance!!!
-
A Suggestion for Skype to consider regarding the T...
Hello, I have a suggestion for Skype. When I look at my "Purchase History" in my Skype account it no longer shows the time my order was placed. Not having this information makes it difficult managing my subscription. I would like to see Skype include
-
Some of the content in my Itunes library has the "!" next to them and is unable to play the songs as it says the source is no longer available, yet on an old Ipod the same tracks are available and play fine? I would love to know how to consolidate al
-
SQL query runs too many times in SQL server Profiler
Hi Experts I have designed a report using SQL database.Report is based on Add Command Object, View and Table.Which are link and gives desired output. However it takes long time. In the SQL Sever profiler it shows that query is executing too many time
-
*visible* comments on iweb photo pages?
hi all i've read a few posts which complain about the lack of comment functions in iweb, specifically on photo pages. i use icomment and have experimented with the haloscan option of embedding a haloscan commenting link on an iweb page, but it's a ra