How to assign a Dynamic VO to a MessageChoice Bean
Hi,
I have VO developed in jdeveloper. I need to assign this VO to a messagechoicebean on a page. But i cannot extend rootAm, hence i cannot attach the VO to AM and then to mesagechoice bean. Hence i implemented the logic iin processrequest of controller as below:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAPageLayoutBean pagelayoutbean = pageContext.getPageLayoutBean();
OAStackLayoutBean stacklayoutbean = (OAStackLayoutBean)pagelayoutbean.findIndexedChildRecursive("xxdbdIROneTimeAddressRN");
OAApplicationModuleImpl am =(OAApplicationModuleImpl)pageContext.getRootApplicationModule();
ViewObject vo = createViewObject("xxdbdGSLCountryVO","dbdcustom.oracle.apps.icx.por.req.server.xxdbdGSLUSAddressVO");
vo.executeQuery();
System.out.println(vo.getDefName());
OAMessageChoiceBean messagechoicebean = (OAMessageChoiceBean)pagelayoutbean.findChildRecursive("dbdCountry");
messagechoicebean.setPickListViewObjectDefinitionName("dbdcustom.oracle.apps.icx.por.req.server.xxdbdGSLUSAddressVO");
messagechoicebean.setViewUsageName("xxdbdGSLCountryVO");
messagechoicebean.setListDisplayAttribute("TerritoryShortName");
messagechoicebean.setListValueAttribute("TerritoryCode");
When i acces the page, i am getting the errors:
Message not found. Application: FND, Message Name: FND_VIEWOBJECT_NOT_FOUND. Tokens: VONAME = xxdbdGSLCountryVO; APPLICATION_MODULE = oracle.apps.icx.por.req.server.RequisitionAM;
Please help me to overcome the issues
1. Sample code to attach custom VO to seeded AM:
ViewObject absVO =am.findViewObject("xxConvertedScrVO"); // here am is application module object
if(absVO==null)
absVO=am.createViewObject("xxConvertedScrVO", "abs.oracle.apps.per.selfservice.appraisals.server.xxConvertedScrVO");
// absVO.setWhereClause(null);
absVO.setWhereClauseParams(null);
// absVO.setWhereClauseParam(0,apprID); // use this if required
absVO.executeQuery();2. In your code
ViewObject vo = createViewObject
("xxdbdGSLCountryVO","dbdcustom.oracle.apps.icx.por.req.server.xxdbdGSLUSAddressVO");while creating VO you have mentioned "xxdbdGSLCountryVO" and "xxdbdGSLUSAddressVO" in the same line. This is not correct.
-Anand
Similar Messages
-
How to assign a dynamic value to the value property of a button ?
Hi Folks,
I have a need, can i know how to assign a dynamic value to the value property of a button. Scenario is like follows...
This is a struts based web application
1. I have a file which consists of login user details (user name and his previlages) for a web application.
2. I got those user details, into a List.
3. When a user logged into the web app, in the home page there are few buttons. The type and number of buttons shown depends on the type of user/ user. (Buttons have different combination and the number of buttons available are not constant, they will vary from user to user).
4. for each button, there will be a different action. I can pass the value of a button to an action class, but here button must have a dynamic value.
Here is my test code:
<%
if (List != null)
for (int i = 0; i <List.length; i++)
%>
<html:submit property="rduname" value= "<%=List%>" onclick="return submitRdu('<%=List[i] %>');"/>
<%
%>
But my problem is how to assign a dynamic value to the value property of the button ( i know 'value= "<%=List[i]%>" ' will not work, just wanted show you guys).
Thanks in advance,
UV
Edited by: UV_Dev on Oct 9, 2008 2:15 PMLet me try i know am not good at JSP but do we need double quotes here
value= <%=List%>i think JSTL should help you about the dynamic thing -
How to assign the dynamic value of PV to Sip Header in ICM?
Hi everybody,
I would like to ask your help, please. We are working on Temporary IVR Handoff (ICM+CVP). I need to add/modify a customer Sip header in ICM transfer script. The value for that header is dynamic and stored in the one of ICM Call Peripherial Variables (PV9, for examle).
Is it possible somehow to assign the value of that PV9 to Sip header (Set Variable Call.SipHeader)? I tried to do it but unfortunally without any success. I can assign any static string, but how to assign the value of the PV??? That's the question...
For static string assignment the syntax of the Set Variable Node (Call.SipHeader) looks like that:
"IVR-Handoff~add~It's Cisco"
and it works fine.
For dynamic value (PV9) I tried:
"IVR-Handoff~add~Call.PeripherialVariable9" - it add Call.PeripherialVariable9 as a string, but not it's value;
"IVR-Handoff"~add~Call.PeripherialVariable9 - returns a syntax error;
Call.PeripherialVariable9 - no Sip header is added.
What do you think? Is it doable at all?
Any ideas, answers or examples how to do it would be much appreciated.
Thank you in advance.
Dmitriy.Hi Senthil,
Yes! It works, but with the little difference. The right answer is:
"IVR-Handoff~add~"&Call.PeripherialVariable9
(Call.PeripherialVariable9 is without quotes, otherwise it insert the name of the variable, but not it's value)
The other solution is shown here (thanks to Paul Tindall):
http://developer.cisco.com/web/cvp/forums/-/message_boards/message/15627744?p_p_auth=6psgR8ML
concatenate("IVR-Handoff~add~",Call.PeripherialVariable9)
Thank you so much for the idea! I very appreciate your help and vote you. -
How to assign agent dynamically?
dear experts,
I wanted to know is there any bapi to determine the agent for the workflow dynamically?
If so wat is it? & how to use it?
if no the n wat is the other way to determine agent dynamically.
please help me out
Thanks & Regards
NigeshHi Nigesh,
If you can provide more information on the agents then it would be helpful. For what kind of workflow do you want the agents to be determined dynamically? Can the agents be classified on the basis of some key value, e.g. company codes, say for company code 100 the agents are A, B and C and for company code 200 agents are D, E and F, etc. In such a case, you can create Rule (Transaction - PFAC).
If you can give us more inputs on the scenario of the workflow, how to select the agents, etc then it would be easier for us.
Thanks
Anwar. -
How to generate a PDF 417 Barcode by assigning a dynamic value at runtime?
PDF 417 Barcode Description given in the Livecycle Designer 8.2
: PDF 417 Non-Scriptable Barcode. Value must be assigned to this barcode at design time, and this barcode will not update after form object value changes.
And my question is how to generate a PDF 417 Barcode by assigning a dynamic value at runtime?All the information you described points to the problem that reports seems can't generate to a file which already exist. You can verify that by simply doing
r30run32 C:\AC_REPORT.REP DESTYPE = FILE DESFORMAT = PDF BATCH = YES' desname=c:\temp\ac_report.pdf
several times. If first time the report is successfully generated in c:\temp\ac_report.pdf, but not the second, third time, then it looks like there is a bug on reports r30run32 executable.
You may try to find any latest patch for Reports 3.0 to see if patch can solve you problem. But keep in mind Reports 3.0 is de-supported, you are better to move to 6i or 9i reports.
Thanks,
-Shaun -
How to assign values to dynamic table
Hi All,
I am working with a dynamic table and an internal table. My internal table looks like this.
Projno Cust Opt Status
g1234 kkkkk p1 I001
g1234 kkkkk p2 I004
g1234 kkkkk p3 I001
g1234 kkkkk p5 I002
g1256 lmnvw p1 I003
g1256 lmnvw p3 I004
g1256 lmnvw p5 I005
g1256 lmnvw p7 I001
My Dynamic table struture looks like this
Projno Cust p1 p2 p3 p4 p5 p6 p7
I need data in my dynamic table from my internal table as follows
Projno Cust p1 p2 p3 p4 p5 p6 p7
g1234 kkkkk I001 I004 I001 I002
g1256 lmnvw I003 I004 I005 I001.
The problem is these operations may vary thats why i am using dynamic table. Even i cannot use case statement as the operations may vary.
Is it possible to do using Assign component or some other way.
ThanksThis program creates dynamic internal table
copy and paste in your program and test it .. debug it to know how it is creating dynamic internal table and values into that table.
report z_dynamic.
type-pools : abap.
field-symbols: <dyn_table> type standard table,
<dyn_wa>,
<dyn_field>.
data: dy_table type ref to data,
dy_line type ref to data,
xfc type lvc_s_fcat,
ifc type lvc_t_fcat.
selection-screen begin of block b1 with frame.
parameters: p_table(30) type c default 'T001'.
selection-screen end of block b1.
start-of-selection.
perform get_structure.
perform create_dynamic_itab.
perform get_data.
perform write_out.
form get_structure.
data : idetails type abap_compdescr_tab,
xdetails type abap_compdescr.
data : ref_table_des type ref to cl_abap_structdescr.
Get the structure of the table.
ref_table_des ?=
cl_abap_typedescr=>describe_by_name( p_table ).
idetails[] = ref_table_des->components[].
loop at idetails into xdetails.
clear xfc.
xfc-fieldname = xdetails-name .
xfc-datatype = xdetails-type_kind.
xfc-inttype = xdetails-type_kind.
xfc-intlen = xdetails-length.
xfc-decimals = xdetails-decimals.
append xfc to ifc.
endloop.
endform.
form create_dynamic_itab.
Create dynamic internal table and assign to FS
call method cl_alv_table_create=>create_dynamic_table
exporting
it_fieldcatalog = ifc
importing
ep_table = dy_table.
assign dy_table->* to <dyn_table>.
Create dynamic work area and assign to FS
create data dy_line like line of <dyn_table>.
assign dy_line->* to <dyn_wa>.
endform.
form get_data.
Select Data from table.
select * into table <dyn_table>
from (p_table).
endform.
form write_out .
Write out data from table.
loop at <dyn_table> into <dyn_wa>.
do.
assign component sy-index
of structure <dyn_wa> to <dyn_field>.
if sy-subrc <> 0.
exit.
endif.
if sy-index = 1.
write:/ <dyn_field>.
else.
write: <dyn_field>.
endif.
enddo.
endloop.
endform. " write_out -
How to assign values to Dynamic VO.
Hi All,
I have created a Dynamic VO and i have created 2 attributes(name and age) for it.
Can i create this dynamic VO in Process form request of one of the CO class?
Please let me know how to assign values to it......and display it and the page.?
Thanks,
Sowmya.Mukul
I am trying to achieve something like below:
Creating a Dynamic VO in my extended controller's ProcessRequest() method and attaching it to a MessageChoiceBean. In ProcessFormRequest() method based on some condition i have to change my Dynaic VO's whereClauseParam and re-execute it so that it will show some different set of values. Below is the code which i used. But after re-executing it my LOV is still showing old set of values. I have posted a query regd. the same but dint get much help. Kindly let me know, if you have any comments. Also Please find the link to my earlier post.
Link: Re: Re-executed dynamic VO not showing new values
* CODE *
ProcessRequest()
ViewObject vo = (ViewObject)am.createViewObjectFromQueryStmt("dummyVO","SELECT MEANING AS VALUE FROM HR_LOOKUPS WHERE LOOKUP_TYPE = :1");
vo.setMaxFetchSize(-1);
vo.setWhereClauseParam(0,"input1");
vo.executeQuery();
OAMessageChoiceBean mesBean=(OAMessageChoiceBean)webBean.findIndexedChild(webBean,"DemoChoiceItem");
mesBean.setPickListCacheEnabled(false);
mesBean.setPickListViewObjectDefinitionName("dummyVO ");
mesBean.setPickListViewUsageName("dummyVO ");
mesBean.setListDisplayAttribute("VALUE");
mesBean.setListValueAttribute("VALUE");
ProcessFormRequest()
If the event is fired
S.O.P(....);
ViewObject vo1 = (ViewObject)am.findViewObject("dummyVO");
vo1.clearCache();
vo1.reset();
vo1.setWhereClause(null);
vo1.setWhereClauseParams(null);
vo1.setWhereClauseParam(0,"input2");
vo1.executeQuery();
S.O.P(....);
Thanks -
Dynamic programming How to assign a static UI element to a static tray
Hi There,
We are enhancing a standard WDA application and we have a few static UI element created on the view. And now we want to rearrange these element to look like this.
Current:
Root
-> Transparent container1
-> ZTray
-> Transparent container2
target
Root
-> ZTray
-> Transparent container1
-> Transparent container2
Can you help me to find out me how can i perform this 'move" assignment using dynamic programming.
Thanks for your inputs.
RgdsHi Sudhir,
You can start trying something like this in WDDOMODIFYVIEW.
DATA:
lo_element type ref to cl_wd_uielement,
LO_CONTAINER TYPE REF TO CL_WD_UIELEMENT_CONTAINER.
IF first_time = abap_true.
LO_CONTAINER ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
lo_element = LO_CONTAINER->REMOVE_CHILD( ID = 'ZTRAY' ).
LO_CONTAINER->ADD_CHILD( INDEX = 1
THE_CHILD = LO_ELEMENT ).
ENDIF.
I never did something like that. I guess that depending on the layout type of the view this code will need some changes (e.g matrix layout). I tried a simple test with flow layout and worked fine here. -
How to assign standard texts assign dynamically to smart forms
Dear Experts
I need your help in adjusting the smart form texts dynamically. I will explain you the situation please revert me your valuable answers.
1. I am integrating 12 smart forms using same program.
2. Out of 12 smart forms 4 forms are having similar kind of template. Client is requesting like create one smart form template.
3. By creating the standard texts you can assign the standard texts into smart form during runtime dynamically.
4. Maintain all standard texts for smart forms in another custom table, during run time of the program you can assign the standard texts to smart form.
5. Here my question is how to assign the standard texts to template texts dynamically ?
Please revert me your suggessions.
Thanks for your support.Hi Indra neel ,
You are maintaining all the standard texts in custom table right, u need to get standard text based on condition which works for your smartform
than create text module in smartforms and change that to include text and give the variable name or internal tbale with field name in that text name fields and press (>) button and give the remaining fields in that than that will work dynamically -
How to assign a value to a parameter {?MyParam} dynamically?
How to assign a value to a parameter {?MyParam} dynamically?
Example:
{?One_Or_Two} <- my first parameter
{?MyParam} <- My second parameter
The Code:
If ( {?One_Or_Two} = 'One' then
{?MyParam} = 'One' ;
else
{?MyParam} = 'Two' ;
(THIS IS NOT WORKING FOR ME! ANYONE KNOW WHY?)
IT NEVER ASSIGN THE VALUE?
My Command query looks like:
SELECT * FROM MyTable
WHERE MyTable.MyColumn = {?MyParam}
THANKSHi Joseph,
I'm a bit unclear as to what you are doing and from what I see you're running in circles.
Your Command query is looking for a field that is equal to {?MyParam}.
Now you want to take {?MyParam} in the report and change the value after you've set it.
Parameters cannot be set from the Command, you can format it and manipulate it but they cannot be set except from the parameters window or from a front-end.
Thanks,
Brian -
How to assign the downloaded file path in dropdown menu dynamically?
I have one jsp page. In that jsp page one dropdown menu is there. Dropdown menu contains "save" and "saved content". I download the file using "save" option in menu. That downloaded file path is assigned to the below of the "saved content" option. Then i clicked that downloaded file path, that file will be open.
My problem is how to assign the downloaded file path in dropdown menu. plz help me.dittu wrote:
My problem is how to assign the downloaded file path in dropdown menu. plz help me.I don't understand your problem. -
How to assign transport request for Dynamic selection in SE36
Hi Friends,
Please guide me how to transport or assign a request for the changes made in BRF selecion view.
I have assigned and added BKPF-XREF1_HD field for FB03 transaction. Its working fine as per user requirement.
I am facing probelm to assing a transport request for that. I didn't find any transport menu in se36.
So please provide me how to assign a TR which need to import into Production client.
If I have to assign or create a program (standard), then please provide me the program name.
Please reply.
Thanks & Regards
Sankar.
Edited by: sankar babu on Jul 29, 2010 12:27 PMModerator message - Cross post locked
Total Questions: 283 (131 unresolved)
Please also close your old posts and assign po1nts to helpful answers.
Rob
Edited by: Rob Burbank on Jul 29, 2010 9:50 AM -
How to get the Dynamic UI component value from JSFF page to any managedbean
HI ,
We have list of bean objects in jSF page we are iterating the list of bean using the forEach loop and displaying the value into Input type text (UI component) value filed .
If we try to get the UI component value in Managed bean we are not getting the dynamic values .
The below piece of code used to retrieve the dynamic values from the JSF page doesn't have any form :
UIComponent component = null;
FacesContext facesContext = FacesContext.getCurrentInstance();
if (facesContext != null) {
UIComponent root = facesContext.getViewRoot();
component = findComponent(root, componentId);
then component type casting to the based on UI component which we trying to access and getting the value as " NULL " ..Please let me know how to get the dynamic values form the JSF ?
Please let me know if any other approach or any changes required on above ?
ThanksHi,
the root problem is this
<h:inputText id="it3" value="#{familyList.ctn}" />
<tr:commandButton text="Save" id="cb3"Note how each row writes to the same managed bean property, thus showing the same data. Instead your managed bean should expose a HashMap property that you then apply values to using a key/value pair. The key could be the ID of the field, which then you also should dynamically define e.g. cb<rowIndx>. The command button could then have a f:attribute assigned that has the row HahMap key as a value. This way you truly create value instances for the object
Frank -
How to define the dynamic navigation between two component in web ui
Hi All,
I have a requirement to create a new assignment block in accounts overview screen .
1.Created new view(Table view) in the BP_HEAD component.
2.Created new button on the table view toolbar .
3.If the user clicks the new button it should navigate to interaction log component(BT126H_CALL).
Please hekp me step 3 how to do .
I have checked planned activity assignment block in the account but is dynamic navigation.
Please explain me how to define the dynamic navigation between two components.
What is window delegate .
Thanks,
VenkyyHi ,
Kindly follow the link , this will be helpful for your issue :
http://wiki.sdn.sap.com/wiki/display/CRM/CRM-NavigatingtoyourcustomBSP+component -
How to assign approver to missing approver of workflow
We have defined approval group on specific employee so when every user create their leave then it go to specific user for approval. Now the issue is, approver has been terminated and the dynamic query is getting no record. Due to this neither approver information is appearing nor it’s not going to notification user.
Now we have updated approver name with the new, but how to assign approver to those leave request which have no approver defined.
Pls adviceI am bit confused, when i assigned from one user to another user by selecting notification and press reassign button on the main page instead of inside the request where is the same re-assinge button beside approval.
Now problem is that system has assigned all notification to new user instead of two particular record which i selected.
pls advice.
Maybe you are looking for
-
BI Java and BI ABAP -RSPLAN issue
Hi All We are working with BI system ,using BI 7.0 Java and BI ABAP as separate systems on same host. Already run the template intaller for BI Java and ABAP integration. But facing some issue ,when going ot BI ABAP and RSPLAN and clicking the Start M
-
Hello all. I'm a technology lover and I also Blackberry phones. I'm using the Z10, it is a great phone, but I have a little problem, when I access the site online games, I can not play this game on my phone thoaij. I do not know why, but you can try
-
Hi all I googled how to sequence java using app-v 5 however its a rather confusing as one article will talk about how to use the deployment. properties file another will talk about using power shell to use only the current version of java in the bubb
-
I'm learning J2SE now and wish to learn J2EE later. I wish to ask some information on it. Could I install J2EE 1.4 on a desktop computer? Or I need a server? Futhermore, I wish to learn dynamic web pages using Macromedia Jrun 4.0. Could I use it to d
-
Here is what I need to do. I have to build a ComboBox that will have a different graphic than the arrow pointing down. I want to place a .gif instead of the arrow. Also, the comboBox should always show the entire .gif files, not just a part of it. Ba