How to pass parameter /1BCDWB/DOCPARAMS from webdynpro?
Hi Experts,
We create a wdp view and indert an adobe form into it. And this form has an interface based on XML schema.
Now we want to translate this form into multi-language, and in wdp side, we will display diffenent language version of form for different regions.
I found that there is a paramater /1BCDWB/DOCPARAMS-LANGU, and it seems can control the language version in processing.
But I donot know how to pass parameter /1BCDWB/DOCPARAMS from wdp to adobe form.
Its my 1st to use adobe form and wdp, i really have no way out. Any advice will be Appreciated.
Thank you.
Richard
@sahai: Hey no , I am using very very simple example without any query or complex statement. I just have 2 radio buttons in VIEW1. On clicking the radio button, the naviagtion to view2 is done and the value of selected radio button is passed as a parameter in the plug.
In the view2 , i just have a caption in my layout where i am displaying the parameter value by setting the attribute.THe warning i get is in view2. Here is the code. Apart from this there is no coding in view2.
METHOD HANDLEPLUG_IN_V2 .
DATA:
NODE_CAPT_MSG TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_CAPT_MSG TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_CAPT_MSG TYPE IF_VIEW2=>ELEMENT_CAPT_MSG ,
ITEM_MSG LIKE STRU_CAPT_MSG-MSG.
* navigate from <CONTEXT> to <CAPT_MSG> via lead selection
NODE_CAPT_MSG = WD_CONTEXT->GET_CHILD_NODE( NAME = `CAPT_MSG` ).
* get single attribute
NODE_CAPT_MSG->SET_ATTRIBUTE(
EXPORTING
NAME = `MSG`
VALUE = PAR_1 ).
ENDMETHOD.
Similar Messages
-
URGENT:How to pass parameter to page from java portlet
Hi,
All i need to do is to pass a parameter from my custom java portlet to an omniportlet. Is it achievable? If so, please point me direction!
Thanks,
CerenHmm yeah or else you could use java.net.URLEncoder.encode(String s) to encode it automatically.
(java.net.URLDecoder.decode(String s) decodes btw) -
How to Pass Parameter from BIP to Dashboard Report
Hi,
Parameter from BIP to Dashboard Report
If I select BIP report paremeter should pass value to dashboard report
thanks in advance.
CHEERS ,
JelHi Saichand,
I hav gone through above link its passing values from Dashboard prompt to BIP report only..
just i need like reverse (if i click on BIP report value then it should pass that value to Dashboard reports) in this this case how to pass parameter from BIP to dashboard report
Thanks in advance
Cheers,
Jel -
How to get the complete data from Webdynpro using a RFC
hi guys,
A form is created in the webdynpro, when that pdf form is called the user have to provide the key field ie the employee number in the form and then when he press the 'go' button a rfc is called and it gives all the details of the employee in the form. Then the user have to input some fields in the form and he have press the submit button. My problem is here, when the user is going to press the submit button that form will be converted to a stream (binary) of data and it is sent to one of the import parameter used in the RFC.
I have created a RFC and created a import parameter of data type XSTRING, since i want to see what exactly R3 is receiving from web dynpro i am writing this contant in the sever as a text file. When i saw that text file i cant see the complete data.
And when i searched in R3 the capacity of xstring is 1024 CHAR, so i dont know how to capture the entire data from webdynpro into my R3.
I give the code what i worte please tell me am i missing anything in my code, or is there any data type which can hold more than 500kb of data which is coming from webdynpro.
FUNCTION ZSEND_MAIL_ATTACHMENT.
""Local Interface:
*" IMPORTING
*" VALUE(OUT_PLACE_LEVEL) TYPE XSTRING OPTIONAL
*" VALUE(BIN_DATA) TYPE INDX_CLUST OPTIONAL
*" TABLES
*" IT_MESSAGE STRUCTURE SOLISTI1
Data Declaration
DATA: gd_cnt TYPE i,
gd_sent_all(1) TYPE c,
gd_error TYPE sy-subrc,
tab_lines LIKE sy-tabix.
Structure Declaration
DATA : BEGIN OF it_file OCCURS 0,
row(255),
END OF it_file.
DATA : BEGIN OF i_split OCCURS 0,
row(50),
END OF i_split.
Internal Table Declaration
data : it_receivers like table of SOMLRECI1 with header line."occurs 0.
DATA : objbin LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE. "sOLIX
DATA : it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
data : wa_receiver like table of SOMLRECI1 with header line.
data : it_receiver like table of SOMLRECI1 with header line.
data : v_bin_data like SOLISTI1 occurs 0 with header line.
DATA : gd_doc_data LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
*data bin_data1 like table of solix with header line.
REFRESH : objbin, it_packing_list, it_receivers, wa_receiver.
CLEAR : objbin, it_packing_list, wa_receiver, it_receivers.
DATA V_SUBJECT(255) VALUE 'HI'.
gd_doc_data-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_message ).
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'SENDFILE'.
gd_doc_data-obj_descr = v_subject.
gd_doc_data-sensitivty = 'O'.
APPEND GD_DOC_DATA.
Appending The Internal Table it_packing_list
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
it_packing_list-doc_type = 'RAW'.
it_packing_list-body_num = tab_lines.
APPEND it_packing_list.
*CALL FUNCTION 'GUI_UPLOAD'
*EXPORTING
*filename = V_FILE_PATH
*filetype = 'BIN'
*TABLES
*data_tab = BIN_DATA.
move bin_data to v_bin_data.
append v_bin_data.
*move soli to bin_data.
LOOP AT V_BIN_DATA into objbin.
MOVE v_bin_data TO objbin-line.
APPEND objbin.
ENDLOOP.
CLEAR it_packing_list.
DESCRIBE TABLE objbin LINES tab_lines.
it_packing_list-transf_bin = 'X'.
it_packing_list-head_start = 1.
it_packing_list-head_num = 1.
it_packing_list-body_start = 1.
it_packing_list-doc_type = 'PDF'.
it_packing_list-body_num = tab_lines.
it_packing_list-doc_size = tab_lines * 255.
APPEND it_packing_list.
data file(255) value '/tmp/bali.txt'.
*Appending The Internal Table it_receivers
close dataset '/tmp/bali.txt'.
open dataset '/tmp/bali.txt' for output in text mode encoding default.
if sy-subrc = 0.
loop at objbin.
transfer objbin to '/tmp/bali.txt'.
endloop.
else.
write 'hi'.
close dataset '/tmp/bali.txt'.
endif.
it_receiver-receiver = '[email protected]'.
it_receiver-rec_type = 'U'.
it_receiver-com_type = 'INT'.
APPEND wa_receiver.
move wa_receiver[] to it_receiver[].
append it_receiver.
*Move wa_receiver[] to it_receivers[].
Clear it_receivers.
if i_OUT_PLACE_LEVEL NE 0.
loop at it_receivers into wa_receiver.
loop at it_receivers into wa_receiver.
**Function Module To Post The Message To Externa Mail
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = gd_doc_data
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_packing_list
CONTENTS_TXT = objbin
receivers = it_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
clear wa_receiver.
ENDFUNCTION.You have to convert your long string to a table of shorter strings.
There may be other ways, but one possibility is to use a loop to process you string.
while (there is something left)
put the next e.g. 1024 characters in a new row of your table
endwhile
If you need to reconstruct your string from the table, don't use simple concatenation since it will remove blanks at the end of lines. Believe me (from experience) sooner or later this will happen.
Instead you need to either set the subsections of your long string, or insert from the end of your table and keep shifting the contents (probably less efficient) right -
How to Pass parameter to Custom Scheduler dynamically
hi ,
I am new to OIM.
Need your help in passing parameters dynamically to Custom Scheduler.
I have created Custom Scheduler by extending Task Support.
I have registered the plugin through API , using PlatformService.registerPlugin() method.
As I need to send the parameter(s) to this CustomScheduler, I have defined them in Metadata (CustomScheduleTask.xml) file as below and got it imported into DB
through weblogicImportMetadata.sh script by providing the path of the file.
<scheduledTasks xmlns="http://xmlns.oracle.com/oim/scheduler">
<task>
<name>CustomScheduleTask</name>
<class>org.schedule.custom.task.CustomScheduleTask</class>
<description>Fetch details of the given user_id</description>
<retry>5</retry>
<parameters>
<string-param required="true" helpText="Login Name">Login Name</string-param>
</parameters>
</task>
</scheduledTasks>
Iam able to import this plugin as well as register the plugin successfully. Now I have defined a job to which this Custom SchedulerTask is mapped.
Now in order to run this job(schedule task) I need to provide Login name( or id) which needs to be send as a parameter for the scheduler to get executed.
But while defining the job with this Schedule Task on OIM console, I was not able to define or pass parameter to this job. hence parameter is null in
CustomSchedule 's execute method .
Kindly help me how to pass parameter dynamically while running the scheduler from OIM console so that the execute method would be able to receive it.
Thank you in Advance.
Regards,
KumarHi,
When you have created the schedule job for your custom schedule task, you should see your Login Name textfield in the schedule task. If not, then there verify your schedule task xml.
In your schedule class code, add:
public void execute(HashMap arg0) {
final String METHOD_NAME = "execute :: ";
logger.debug(CLASS_NAME + METHOD_NAME + "Entering Method - execute");
try {
String LoginName = arg0.get("Login Name");
Regards,
Sunny -
How to access internal table data from webdynpro to Flex application.
Hi Connoisseur
The data transfer from Abap WebDeypro to flex island works well. I followed , there is an example from Thomas Jung (by the way as always Great Work) and Karthikeyan Venkatesan (Infosys) but this example covers simple type only.
There is no example with complex types like arrayCollection which handle the transfer of data from flex to WebDynpro.
i tried to do pass internal table value to flex-datagrid.but its not work.
i would like to know
1.how to access internal table data from webdynpro to Flex application.
2.how to pass the internal table to flex-datagrid.
2.how to pass dynamically in ADOBE flex.
3. how to do Flex is receiving the wd context data?
4. how can we update WD context with FLEX data.
Ple give me sample example and step by step procedure.
Regards
laxmikanthHi Laxmikanth,
Please refer this...
Flash island: update complex type from flex
Cheers..
kris. -
How to pass parameter as http POST in pageContext.setForwardURL
Hi,
I need to call a third party application page in my custom OAF page. I need to pass parameter to this third party page using POST method. I am using following command to call that -
HashMap hm = new HashMap();
hm.put("FirstName",firstName );
hm.put("LastName",lastName);
hm.put("AppSignature", signature);
pageContext.setForwardURL(hopURL,
null, // not necessary with KEEP_MENU_CONTEXT
OAWebBeanConstants.KEEP_MENU_CONTEXT, // no change to menu context
null, // No need to specify since we're keeping menu context
hm, // request parameters
false, // retain the root application module
OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // display breadcrumbs
OAException.ERROR);
I am passing parameter to the page using hash map table. That application is expecting the parameters in POST format and I believe using hash map table the parameters will be passed as GET format.
We figured that out because one of the parameter we have to send is AppSignature which is 160 characters long. When third party applicatoin received that parameter they got only 151 characters, looks like they are truncated by GET method.
Any idea how to pass parameter using POST format so that this issue could be fixed.
Regards
HiteshSumit,
Thanks for your reply. I have resolved this issue by forwarding all parameters in session using pageContext.putSessionValueDirect and redirect to a jsp using pageContext.redirectImmediately.
in jsp I read the params from session and set in the form , and then redirected to my third party application.
Regards
Hitesh -
How to pass parameter to intro.jsp page ?
Hi all,
Anybody please tell me how to pass parameter to intro.jsp page.
Is there any param name defined in <forward > syntax ?
I have made following configuration in struts-config.xml file.
I want to pass parameter to intro.jsp page
<global-forwards>
<forward name="invalidsession" path="/intro.jsp" redirect="true" />
</global-forwards>
please reply soon.
Thanking you.Hi all,
I have a similar kind of question..
Iam trying to pass a string variable from JSP to servlet thro URL..
Im using tomcat5
COde:
String fname=request.getParamter("filename");
<jsp:forward page="/servlet/coreservlets.filedownload?name=" +fname />
It is generating a unterminated tag error..Please help.. -
How to pass parameter into transaction iview ?
Hi experts,
I want to know "how to pass parameter into transaction iview ".
Regards,
Krishna Balaji THi Krishna,
Not sure if this can help you.
1) Passing a parameter to a transaction iview (I saw a resolved suggestion)
Passing a parameter to a transaction iview
2) Passing a parameter from the portal to R3 (helpful info for you)
Passing a parameter from the portal to R3
3) Create SAP Transaction iView using SAPGUI for Windows (Great Blog and info about TA Iview)
Create SAP Transaction iView using SAPGUI for Windows
Please check the following link for Transaction Iviews
http://help.sap.com/saphelp_nw2004s/helpdata/en/02/f9e1ac7da0ee4587d79e8de7584966/frameset.htm
Just some info: Portal is basically what the end user can see. What he can do, is still maintain in the backend system. If there are parameters setup already for the user in the backend system (in SU01), then those parameters should still valid for the transaction that the parameters are linked to.
Hope that helps and award points for helpful suggestions.
Ray -
How to pass parameter into a source variable of a invoke activity
I'm an new BPELer, I created a invoke activity to submit Oracle Appplications concurrent program, but I don't know how to pass parameter into source variable.
BTW, I have created the mapper file (.xsl) file.
could anyone tell me how to do that?
Thanks,
VictorHi.
How you start application? I think you send message to webservice(BPEL process is webservice too). So construct message with variable and value.
But I created only processes where input value doesn't matter. I haven't use mapper yet too. -
How to pass parameter to the Query String of the Named Queries'SQL
Firstly to say sorry,I'm a beginner and my English is very little.
Now I want to know
How to pass parameter to the Query String of the Named Queries'SQL in the Map editor.
Thanks.benzi,
Not sure if this is on target for your question, but see #5 in the link below for some web screencasts that show how to pass an input text form field value to the bind variable of a view object. If you're looking for something different, maybe provide some more details such as what you are trying to accomplish and what technology stack you are using - for example, ADF BC, JSF, etc.
http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
Also see section 5.9 and chapter 18 in the developer's guide.
thanks -
How to passing value into Captivate from html?
How to passing value into Captivate from html?
Or
How to communicate between objects in one slides?Hi czhao0378 and welcome to the forums!
Captivate does not natively allow you to communicate your own
data, either internally or externally. The only way to make this
happen is to create your own functionality, either via custom-built
Flash objects or JavaScript code executed in the browser or a
combination of both.
The only example I've seen of any "data passing" inside
Captivate is a custom text input/output solution that was posted on
the Captivate Developer Exchange:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
This solution consists of an input box that takes information
from the user on one slide and a second box that displays that
information on another slide. The functionality was built in Flash
and is embedded in Captivate as a Flash "animation". Unfortunately,
since this is a custom functionality, the information is not
included in the user completion results Captivate can pass to a
Learning Management System.
Since the solution mentioned above relies on a Flash
Actionscript variable to hold the information that is displayed,
you can also pass the information from HTML to Captivate using the
"SetVariable" command in JavaScript. This would at least allow you
to display your own HTML-based data inside Captivate.
Beyond that, I'm not aware of any other way to gather and
pass data in Captivate. -
How to pass PO customer fields from ECC to SUS ?
Hi Gurus,
We defined a customer PO field at ECC side and want to pass it to SUS and diaplay it in SUS PO, my question is, how to pass PO customer fields from ECC to SUS?
Please advise.
Thanks and best regards
jackHi jackytam ,
/people/yeusheng.teo/blog/2008/01/05/ordering-unit-vs-order-pricing-unit-in-srm-sus
you make get some pointers
regards,
Neelima -
How to pass work item id from workitem to webdynpro form
hi ,
im working on webdynpro. when the agent executes the workitem it has to open one form designed with webdynpro screens. here i have to get the workitem id from workitem and basing on the workitem id , i will get other data , that i have to dispaly in the lay out of a view..
how to pass this work item id to my view and how to display this...?
RaghuHi,
Application parameters can be used for this accessed directly only in the Window. Follow these steps;
1. get the application url using the following code,
par_wrkitm is the application parameter ( which should also be declared in the HANDLEDEFAULT method of the window as importing parameter and aslo appended in the URL )
g_wrkitm is a Component Controller attribute
Data: my_url TYPE string.
*Get the URL of the Application
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'ZWDRC_NEW_APP'
IMPORTING
out_absolute_url = my_url.
2. Now pass the required parameter ( i.e in this case Workitem id ) to this URL
3. In your webdybpro applicatio, Goto Application parameters and create a parameter for workitem id with the same name as used in the URL.
4. In the HANDLEDEFAULT method of the window, create Importing parameters with same names as that of your application parameter.
5. Now this variable will contain your workitem id.
If you want to acess the variable in your views;
2. create a attribute in the Component Controller( Component Controller->Attributes Tab; mark it as public )
3. Now in the HANDLEDEFAULT method of the window, assign your application parameter values to the component controller attributes directly as shown below,
wd_comp_controller->g_wrkitm = par_wrkitm
Regards,
Radhika -
How to pass parameter to the method in EJB session bean from Managed Bean
Hi,
I need some guidance in accessing the EJB session bean methods from one of my backing Bean. I use EJB 3.0 Entity Beans and EJB Session Beans. I have to get value from my page and pass it thro the backing bean to the respective EJB session bean. I have no clue of how to do this,
When i click a command link on the page, in its backing bean click method, i am able to get a value and store in a variable under its click action. But from there i am not knowing of how to pass it as a variable to the EJB session bean and hence execute the query(this is where we have to pass the variable as a parameter in its where clause) in the entity bean.
I wanna know how to make a call to the EJB session bean and from there execute the Enitity bean.
Guide me regarding this....
Thanks
riUnfortunately dependency injection doesn't work for jsf backing beans, so you have to use a normal jndi lookup to find your session bean. The following example shows you how to find a session bean and call a method:
public void commandButton_actionListener(ActionEvent actionEvent) {
Context ctx;
try {
ctx = new InitialContext();
helloWorldEjb = (HelloWorldEJB)ctx.lookup("HelloWorldEJB");
hello = helloWorldEjb.sayHello(name);
System.out.println(hello);
} catch (NamingException e) {
e.printStackTrace();
}
Maybe you are looking for
-
Order of songs on Ipod different than in Itunes
I have my itunes to sort my songs by "Date Added" so the most recent songs show up at the top of the playlists. However, when I synced it to my new nano 5th gen, the songs are alphabetically listed on the ipod. How can I fix this? I haven't had this
-
Problem with Adobe Pro and Reader on terminal server
Hi, We have have a Terminal Server environment with Adobe Pro and Reader. We have security for Adobe Pro, so only certain user has access to Adobe Pro and all users has access to Adobe Reader. Some users receive many email with pdf's attachments in O
-
Japanese Encoding Problem on iOS
Hi, Did anyone ever use Mobage Japanese plugin for Unity ios? I am building Unity iOS game for Mobage platform. There is a method (MobageJPService.shareMessage (message, title, pictureUrl, dismissCB)) to share message to iOS e-mail, twitter and Line,
-
How i can present my keynote in 2nd display?
i wnat to present my keynote in 2nd display. how i can do it? i try to do, but it's always show in 1st display (my macbook). i want it to show on projecter!!!
-
I am writing a J2EE application that allows a user to modify some data retrieved from the database (via the server) and send it back to the server. In the following kpm is a private class instance of KodoPersistenceManager. The class is a singleton s