Fetch value from custom container in WD Abap component
Hi all,
I am using a web service to call a RFC function module into my web dynpro component.When I create a new service then a new custom controller will created and in this controller a method is created for FM.
Now my query is, when I run the WD application, FM will retun a table at my end and I want to use it at view level.
I declared a global table in Component controller attribute and want to fill that table when I execute service. when I use wd_this-><Table name> (at custom controller level, in method for FM) then it shows me that this table is not exist.
Please suggest how to fetch table's value.
Thanks
Sanket sethi
solved.
Similar Messages
-
Custom Rule - Problem in passin values From Rule Container to WF Container?
Hi Guys,
I am having hard time passing values back from my custom rule. I have created a custom rule to determine the agents in PFAC which takes in the Person number as import element of container. It determines the Manager as agent and I am passing Managers Person Number back to workflow. If he dont approve the Request then it will be passed to his boss. In this case I will pass this imported Mangers Person number back to rule so that his boss will be determined as agent. I have created ZRULE function module. I am passing value back from Rule container to Workflow Container using following code.
swc_set_element ac_container 'SUPERPERNR' lf_super_pernr.
I have created a element SUPERPERNR on rule container and workflow container as well .The problem is in the Rule container I am not able to create SUPERPERNR as export parameter. The tick mark is grayed out and there is no option for setting it as export.
My question is do I have create a Export element on Rule container or Not? If i just write the code
( swc_set_element ac_container 'SUPERPERNR' lf_super_pernr ) will it set the value in WF container? In my case it is not setting. I have to bind the values from rule container to WF container and if My rule container element is not allowing me to click the tick mark as export how can i pass value of of rule container back to WF Container?
Please help me guys.
Thanks,
Manish.Hi Manish,
Same scenario I have developed in my system. This all steps I did in my system.
1) Created a Z function module which takes import parameter (Parameter name = 'EMP') in the
format 'US100123'.
2) This in turn fetches back the supevisor or boss as an export parameter (Parameter name = 'BOSS') in
the format 'US100245'.
3) This function module is attached to a BUS object(SWO1).
4) While attaching this function module to BUS object you need not do any manual coding it is done
automatically.
5) Implement, release and generate this BUS object.
6) Create a new variable in your workflow (Parameter name = 'ZSUPERVISOR') for storing the value
which is returned by the Z method.
7) Create a new task.
8) Put in your BUS object name, then your Z method name, select background processing checkbox.
9) Press save, it will ask for transfer of missing elements, select yes.
10) Then you will see a green button below your Z method name click on it.
11) Top portion contains your Z method variables, below to it you have the import parameter window in
this window you should have &EMP& -> &EMP&., below to import parameter window you have
export parameter window in this window you should have &BOSS& <- &BOSS&. (This is method
binding).
12) Now click on enter button then click on back button it will generate the task binding automatically
just press yes.
13) Now click on binding exist button.
14) Here you have the Workflow container variables as well as the system container variables.
15) In the import parameter window left portion is for your workflow variables and right portion is for your
method variables. In my case i had sent workflow initiator and fetched his supervisor. The Import
parameter binding was &WF_INTIATOR& -> &EMP&. and the export parameter binding part was
&ZSUPERVISOR& <- &BOSS&.
16) Save the task and run the workflow.
Regards.
Vaibhav Patil. -
Fetch value from Table with respect to APP_USER.
Hi,
i want to fetch value from Table with respect to APP_USER.
i am using
SELECT ID,NAME,FILE_OBJ_ID,MIME_TYPE,DOC_SIZE,BLOB_CONTENT,DESCRIPTION,UPLOAD_DATE,'Download' FROM DUMY_FILE where CREATED_BY =:APP_USER;
Show me error
failed to parse SQL query:
ORA-00911: invalid characterThanks
Edited by: 805629 on Jan 13, 2011 2:09 AMHello,
I too have the same problem.
I am using this query:
select manager from leave_mgmt where support_engg=:APP_USER
and source type is SQL Query(return single value)
but nothing is coming up in the text field. Its empty.
Please advice. Thanks in advance. -
We're sending an OSS customer message on WDr_TEST_EVENTS (ABAP component)
Here's the text of the message we're sending
Although the ABAP WebDynpro component WDR_TEST_EVENTS shows as Active in SE80 on our NW2004s system, we get a run time error if we try to run the associated application (see Exhibit A on page 1 of attachment.)
If we try to re-activate the component, we get the error shown in Exhibit B on page 1 of attachment.
We're sending an OSS Customer Message on WDR_TEST_EVENTS (ABAP Component)
If we choose Web Dynpro Component > Check > Complete Object from the Menu Bar, we get the compile error shown on pages 2 and 3 of the attachment.
Here is the release info for our NW2004s system.
SAP_ABA 700 0008 SAPKA70008 Cross-Application Component
SAP_BASIS 700 0008 SAPKB70008 SAP Basis Component
PI_BASIS 2005_1_700 0008 SAPKIPYJ78 PI_BASIS 2005_1_700
SAP_BW 700 0008 SAPKW70008 SAP NetWeaver BI 7.0
The "NULL object reference" error we get when running the complete object check is in the constructor method of CL_WDY_MD_VIEW_ELEMENT - line 119:
if sy-uname <> 'ROSENBERGERC'.
me->ui_element_definition->if_wdy_md_object~get_definition( importing definition = wa_wdy_ui_elem_def ).
else.
me->ui_element_definition->if_wdy_md_object~get_definition( importing definition = wa_wdy_ui_elem_def ).
endif.
According to Rich H, this component works fine on his sneak preview edition.
So if someone can send me a copy of the constructor method of CL_WDY_MD_VIEW_ELEMENT from the ABAP sneak preview edition, I'd like to compare it to see what the problem is in our copu.Sent to your email. I have included the source from Sneak Preview SP08.
Regards,
Rich Heilman -
Fetching Values From JAVA classes into ABAP report
Hi Experts,
I have a requirement, in which I need to fetch Java Roles/Groups from the portal to a ABAP report, for specific users. The roles inside of our project are not always in sync with the central system.
I could not find any link with talks about this. Could anybody guide me on how to proceed?
Regards,
TrishnaI have written a report which takes users and specific roles as the input. Eg, userID :12345 and role/profile :SAP_ALL, SAP_ADMIN..etc in a table. and gives back if the user 12345 has SAP_ALL or not.
Now I have used RFCs to fetch all the roles for the user from different SAP systems which i further compare .
What I am unable to do is fetch the portal roles .
PROBLEM : The portal roles also exist in the central system, but might not be always consistent since they get manually updated in the central system. Hence I want to directly fetch the data from the JAVA Portal.
WHAT I KNOW : I need to write a JAVA class in NW developer studio which will take the user as the input and give me all the roles/profiles for the same user as output.
How do I further pass the values to and from the Java class to my ABAP report?
I know that I need to use the UME in some way to have this work for me. But since i do not expertize in java I need guidance/steps as to how to proceed.
Regards
Trishna -
Fetching values from database into a drop down box
in my JSP page there are 3 drop down boxes for date of birth......
what i need is i want to get the values from database into that drop down box when i access the JSP page.......
session is there....'m getting all other values.......
I will attach the JSP page.....
Please help me...........
Thanks in Advance......
<%@ taglib uri='/WEB-INF/taglib/struts-bean.tld' prefix='bean'%>
<%@ taglib uri='/WEB-INF/taglib/struts-logic.tld' prefix='logic'%>
<%@ taglib uri='/WEB-INF/taglib/dyna.tld' prefix='dyna'%>
<%@ taglib uri='/WEB-INF/taglib/struts-html.tld' prefix='html'%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><bean:message key="page_title"/></title>
<link href="<bean:message key="context"/>/CSS/default.css" rel="stylesheet" type="text/css" />
<script src="<bean:message key="context"/>/js/AC_RunActiveContent.js" type="text/javascript"></script>
<link href="<bean:message key="context"/>/CSS/screen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%!
Membership mShip = null;
%>
<script language="javascript" >
function checkDate(Form){
var d;
d = Form.year.value+"-"+Form.month.value+"-"+Form.day.value;
alert("Date is:"+d);
Form.dob.value = d;
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<jsp:include flush="true" page="../templates/header.jsp"/> </td>
</tr>
<tr>
<td class="menuTD">
<jsp:include flush="true" page="../templates/menu.jsp"/> </td>
</tr>
<tr>
<td class="sub_menuTR"> </td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="column" valign="top" width="170"><jsp:include flush="true" page="../templates/left_panel.jsp"/></td>
<td valign="top" align="left">
<dyna:message error="error" warning="warning" message="message"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80%" valign="top" align="left">
<%
if(session != null){
mShip = (Membership)session.getAttribute("member");
%>
<form action="updateContactDetails.dy" method="post" name="form1">
<input type="hidden" name="m" value="<%=request.getParameter("m")%>" />
<table width="100%" border="0">
<tr>
<td>First Name</td>
<td><input name="first_name" type="text" id= "first_name" value = "<bean:write name = "member" property = "first_name" />" /></td>
</tr>
<tr>
<td>Last Name </td>
<td><input name="last_name" type="text" id="last_name" value = "<bean:write name = "member" property = "last_name" />" > </td>
</tr>
<tr>
<td>Address</td>
<td><input name="address1" type="text" id="address1" value = "<bean:write name = "member" property = "address1" />" ></td>
</tr>
<tr>
<td> </td>
<td><input name="address2" type="text" id="address2" value = "<bean:write name = "member" property = "address2" />" ></td>
</tr>
<tr>
<td>Suburb/City </td>
<td><input name="city" type="text" id="city" value= "<bean:write name = "member" property = "city" />" ></td>
</tr>
<tr>
<td>State/Territory</td>
<td><input type="text" name="state" value = "<bean:write name = "member" property = "state" />" ></td>
</tr>
<tr>
<td>Postcode</td>
<td><input type="text" name="postcode" value = "<bean:write name = "member" property = "postcode" />" ></td>
</tr>
<tr>
<td>Contact Phone</td>
<td><input type="text" name="home_phone" value = "<bean:write name = "member" property = "home_phone" />" ></td>
</tr>
<tr>
<td>Mobile</td>
<td><input type="text" name="mobile" value = "<bean:write name = "member" property = "mobile" />" ></td>
</tr>
<tr>
<td>Date of birth</td>
<td nowrap="nowrap"><select name="day">
<option>Day</option>
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="month">
<option>Month</option>
<option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>
<option value="06">June</option>
<option value="07">July</option>
<option value="08">August</option>
<option value="09">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">Decembber</option>
</select>
<select name="year" onChange = "checkDate(this.form);" >
<option>Year</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1955">1955</option>
<option value="1956">1956</option>
<option value="1957">1957</option>
<option value="1958">1958</option>
<option value="1959">1959</option>
<option value="1960">1960</option>
<option value="1961">1961</option>
<option value="1962">1962</option>
<option value="1963">1963</option>
<option value="1964">1964</option>
<option value="1965">1965</option>
<option value="1966">1966</option>
<option value="1967">1967</option>
<option value="1968">1968</option>
<option value="1969">1969</option>
<option value="1970">1970</option>
<option value="1971">1971</option>
<option value="1972">1972</option>
<option value="1973">1973</option>
<option value="1974">1974</option>
<option value="1975">1975</option>
<option value="1976">1976</option>
<option value="1977">1977</option>
<option value="1978">1978</option>
<option value="1979">1979</option>
<option value="1980">1980</option>
<option value="1981">1981</option>
<option value="1982">1982</option>
<option value="1983">1983</option>
<option value="1984">1984</option>
<option value="1985">1985</option>
<option value="1986">1986</option>
<option value="1987">1987</option>
<option value="1988">1988</option>
<option value="1989">1989</option>
<option value="1990">1990</option>
<option value="1991">1991</option>
<option value="1992">1992</option>
<option value="1993">1993</option>
<option value="1994">1994</option>
<option value="1995">1995</option>
<option value="1996">1996</option>
<option value="1997">1997</option>
<option value="1998">1998</option>
<option value="1999">1999</option>
<option value="2000">2000</option>
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
</select ></td></tr>
<tr>
<td><input type="hidden" name = "dob" /> </td>
<td nowrap="nowrap"><input type="submit" value="Submit" /></td>
</tr>
</table>
</form>
</td>
<td width="40"></td>
<td width="200" valign="top">
<div id="headlines">
<jsp:include flush="true" page="../templates/profile.jsp"/>
</div>
</td>
</tr>
</table>
</td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td><jsp:include flush="true" page="../templates/footer.jsp"/></td>
</tr>
</table>
</body>
</html>i think normally u will get data from databsae as objects.they are like java beans having getter and setter methods.so you create a collection of those objects like collect all the objects coming from database into an arraylist or....
suppose you want to populate the dropdown box with say "username" from database object s, your code will look like that
<html:select property="name">
<html:options collection="databaseList" property="username" />
</html:select>
"databaseList" is collection(say.. ArrayList) of objects you are getting from database.this dropdown will contain all the "usernames" you are getting from database. -
Short Dump while fetching values from a Database view
Hi ALL,
Here is the code that is giving short dump
SELECT * FROM ZVMATLMOVE INTO TABLE I_MATLMOVE
WHERE BUDAT >= V_LASTRUN_DATE
AND WERKS IN S_WERKS
AND LIFNR IN S_LIFNR
AND EBELN IN S_EBELN
AND MATNR IN S_MATNR
AND BWART IN S_BWART
(Please don't say that I am using * in the select query,
I knew that it is not a good way of fetching values)
Declaration of the internal table is:
DATA I_MATLMOVE LIKE ZVMATLMOVE OCCURS 0 WITH HEADER LINE.
The variable V_LASTRUN_DATE is:
DATA V_LASTRUN_DATE LIKE SY-DATUM.
We will be getting the lastrundate value from another table. And it is passing correct value (ex. 20060731)
ZVMATLMOVE is a database view created for MKPF and MSEG table. And I checked both table were consistent.
Dump Analysis:
Runtime errors DBIF_RSQL_SQL_ERROR
Exception CX_SY_OPEN_SQL_DB
Every thing is fine. But I don't know how it is going to dump. Any suggestions?Hi !
It seams that your table is not correct / fully activated.
To check it out you should try the following:
- Go to the SE11
- Give it your table name and go to "Display"
- Check if the table is "active"
- Choose "Utilities->Database Object->Check" and see
if there are any errors
- go back and choose "Utilities->Runtime Object->Check"
and see if there are any errors
If there are any errors - try to activate the table again. You may need the "Utilities->Database Utiliy" for that.
After there are no more errors by checking all these your program should work.
Regards
Rainer
Some points would be nice if thate helped a bit. -
Select query taking 30 sec to fetch data from table containing BLOB column.
Hi Friends,<o:p></o:p>
Please help me...<o:p></o:p>
I have 15 columns in a table, in that 2 columns containing blob (images).<o:p></o:p>
More than 22 lakhs records are in a table.<o:p></o:p>
While i am try to fetch data from this table it nearly takes 25~30 sec to execute that query.<o:p></o:p>
When i deleted the two columns containing blob and i tried its executing fast .<o:p></o:p>
I should not change the table schema.<o:p></o:p>
Views also i created and indexes also there in a table.<o:p></o:p>
How can i improve the query execution speed?.<o:p></o:p>And how large is the size of BLOB data in your table? If it's several giga bytes, then the time is simply required to read the amount of data from disk and to transfer it to the Client.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
How to clear the picture from custom container
Hi All
I am uploading the employee image into custom container . for that i have used the below fn modules
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
p_pernr = pernr
* P_TCLAS = 'A'
* P_BEGDA = '18000101'
* P_ENDDA = '99991231'
IMPORTING
* P_EXISTS =
p_connect_info = g_connect_info
EXCEPTIONS
error_connectiontable = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
CALL FUNCTION 'SCMS_DOC_URL_READ'
EXPORTING
* MANDT = SY-MANDT
stor_cat = space
crep_id = g_connect_info-archiv_id
doc_id = g_connect_info-arc_doc_id
* PHIO_ID =
comp_id = 'DATA'
* SIGNATURE = 'X'
* SECURITY = ' '
* USE_LOCATION = 'A'
* LOCATION = ' '
* HTTP_URL_ONLY = ' '
dp_url_only = 'X'
* LIFETIME = ' '
* NO_CACHE = ' '
* EXPIRATION =
* PDF_MODE = ' '
* URL_EXTENTION = ' '
* FORCE_GET = ' '
IMPORTING
url = g_url
EXCEPTIONS
error_config = 1
error_parameter = 2
error_signature = 3
http_not_supported = 4
docget_not_supported = 5
not_accessable = 6
data_provider_error = 7
tree_not_supported = 8
not_supported = 9
OTHERS = 10
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
after getting the url for uploading the picture
I used load_picture_from_url
the image is uploaded, but when i try to clear the image from control using picture->clear_picture
it is not clearing the image
Please help me how to clear the image.
Thanks
RamaHi,
" Request an URL from the data provider by exporting the pic_data.
CLEAR url.
PERFORM load_pic_from_db CHANGING url.
" load picture
CALL METHOD cl_gui_picture_1->load_picture_from_url
EXPORTING
url = url.
CLEAR url.
url = 'file://C:\sap-logo.gif'.
CALL METHOD cl_gui_picture_2->load_picture_from_url
EXPORTING
url = url.
CLEAR url.
url = 'http://www.sap-press.com/images/logo_books_online_162_50.gif'.
CALL METHOD cl_gui_picture_3->load_picture_from_url
EXPORTING
url = url.
init = 'X'.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS
cntl_system_error = 1
cntl_error = 2.
ENDIF.
Its helpful.
Regards,
Raj. -
Passing values from multiline container
Hello Gurus,
I am new to workflow and I have a requirement wherein I have a multiline container element (DiscDocStatus of type EDISCDOC-STATUS) filled with the status values.
If all the values in container DiscDocStatus are 10 or 11, then I need to execute certain steps (step A and step B) and if any other value than 10 or 11, then I have to wait for 10 days and then do step A and step B.
Could you please how to do it?
P.S. I know...I am asking tooo silly thing...but do not have any option but to ask...apologies....
ThanksHi..
In that case you can try as below & i checked the same. it works for me..
1. Create a block step in your workflow... In local container tab of block step create a single value container element which has
data type as line type of your multiline container...
Say for eg: your multiline container has datatype as (char10) with multiline checkbox enabled then create this container element in
local container tab with datatype as (char10) without multiline checkbox (ideally you can compare multiline container as internal table
and this single line container as workarea)..
2. In control tab of block step do the binding from multiline container to single line container. Leave the Block type dropdown in control tab as standard.
3. Put a condition step within block with condition as single line container NE 10 and NE 11. (So in case the multiline element has even a single value which is not 10 or 11 then workflow control will enter this condition). Place a container step in outcome True of condition step to set a flag variable as X (Note: Create this flag variable in workflow container)
4. Now outside the block again put a condition step which checks whether this flag variable is set as 'X' (if it has value X then it means that multiline container has atleast 1 value other than 10 & 11. If not it means all values are either 10 or 11). So If flag is X you have to wait for 10 days and then do step A and step B. If not you can execute steps A & B. For waiting for 10 days you can go for requested start deadline which will send the workitem to the inbox of approver only if the mentioned time period/deadline (in your case - 10 days) expires.
Let me know in case of any issues.
Regards,
Bharath -
How to use value from Custom Select tag
Hi,
I have made a custom tag for html element select. It is a very basic tag with the selection of one vaule. I am able to populate the list using custom tag in JSP but i am not able to optain the value from that. Kindly see my jsp code.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Expenses Report</title>
</head>
<body>
<center>
<table summary="layout">
<tr>
<td>Month:</td>
<td>
<tt:Select name="month" from="${ExpensesDBO}"/>
</td>
</tr>
</table>
<c:if test="${fn:length(param.month) > 0}">
<table summary="layout" border="1">
<tr>
<td align="center">Year</td>
<td align="center">Month</td>
<td align="center">Shopping</td>
<td align="center">Groceries</td>
<td align="center">Fixed Expenses</td>
<td align="center">Transportation</td>
</tr>
<tt:Expenses var="exp" username="${sessionScope.user}" from="${ExpensesDBO}">
<tr>
<td>${exp.year}</td>
<td>${exp.month}</td>
<td>${exp.shopping}</td>
<td>${exp.groceries}</td>
<td>${exp.fixedExpenses}</td>
<td>${exp.transportation}</td>
</tr>
</tt:Expenses>
</table>
</c:if>
</center>
</body>
</html>
Basically based on the selected value I want to show the same page with the details including page with the default value in select list.
I have made a generic select custom tag to be used within the application.
Regards,
Rahul.If both tables come from the same data source, join the two tables in one data set rather than two as shown. If they are from different data sources, use a 'join data set'
-
Fetching Values from Ancestors based on UDA condition
Hi,
I have a typical requirement where I need to fetch data from the ancestor based on a particular UDA condition.
For ex: See the below exhibit
Dimension
----A (UDA: xyz)
-------B (UDA: xyz)
------------C
-----------------D
-----------------E (UDA: xyz)
-----------------F
Requirement: (Should be a member formula on a particular Account member - No calc script)
1- Calculations should happen only for members with UDA 'xyz'
2- The value for member 'E' should come from its first immediate ancestor with same UDA as'E' has - in the above case the value of 'E' should be from member 'B' (and not 'A')
similarly while calculating member 'B', it should take value from member 'A'
I have tried the member formula like:
@ANCEST(DimName,@Currmbr(Dimname)) AND @UDA(DimName,'xyz)
but this gives 'DOUBLE VALUE STRING' error.
Can anyone help me with how I should develop the logic for this requirement.
Thanks again.DEAR ALL !
I HAVE SOLVED THE ISSUE BY USING ANOTHER BAdI " HRBAS00_STRUAUTH".
THANKS AND REGARDS,
S.SURESH -
CRM contact record passing the values from Custom application
Hi,
I am passing the values from my custom WPF application to create the contact.
while passing the first name, last name, addressLine 1 Mobile number it's working fine. while am passing the date of birth it's throughing an error. I am not able to identify the exact issue please giv me the suggestions
var firstname = txtFirstName.Text;
var lastname = txtLastName.Text;
var dataofbirth = this.DatePickerValue;
var mobilenumber = txtMobileNumber.Text;
var rfcvalue = txtRFC.Text;
var addressValue = txtAddress.Text;
var extraqs = "firstname=" + firstname;
extraqs += "&lastname=" + lastname;
extraqs += "&mobilephone=" + mobilenumber;
extraqs += "&address1_line1=" + addressValue;
extraqs += "&birthdate=" + dataofbirth;
//var totalextravalue = "extraqs=firstname%3D" + firstname + "lastname%3D" + lastname + "birthdate%3D" + dataofbirth + "mobilephone%3D"
+ mobilenumber + "ifp_rfc%3D" + rfcvalue + "address1_line1%3D" + addressValue;
var contacturl = Constants.Contact.Attributes.URLNew + "etc=2&id=&pagetype=entityrecord&extraqs=" + HttpUtility.UrlEncode(extraqs);
-Regards
RammohanYou should set date in this format
&extraqs=date=01/31/11Hope this helps
Sreeni Pavalla -
Fetching value from deep structure
Hi All,
I need to take value from deep structure into a variable.
IS_DESDLVRY_NOTIF-DELIVERY-ITEM[1]-PURCHASE_ORDER_REFERENCE-ID is that structure.
Value is available in debugger.
But in editor gives syntax error- item[1] doesnt exist,Item exist.
If i delete [1] from item i wont get value.
can you guide how to resolve error?
Thanks.
Edited by: sanj_dell on Jun 17, 2011 8:20 AMHi,
you have to read table IS_DESDLVRY_NOTIF-DELIVERY-ITEM index 1 into a matching structure!
Regards,
Klaus -
Fetch Value from Client Session
Hi,
I have a requirement where Vendor code is getting set in the session from a Hidden iView on Portal. Now, my Web Dynpro application has to extract the vendor code value present in the session. I have read few threads and tried by using different code :
1) HttpSession session = ((IWebContextAdapter)WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest().getSession();
String abc = (String)session.getAttribute("VendorCode");
2) IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
String paramValue = request.getParameter("VendorCode");
3) WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"VendorCode")
None of the code seems to work. All return a null value. Is there any way I can check when the Session contains the attribute Vendor Code itself or how I can get the Value.
Can I fetch the same by creating a custom portal development where in I can have the Web Dynpro application running in an iView or is there any other way to extract the session attribute itself?
Please reply,
Points will be awarded.Hello,
I too have the same problem.
I am using this query:
select manager from leave_mgmt where support_engg=:APP_USER
and source type is SQL Query(return single value)
but nothing is coming up in the text field. Its empty.
Please advice. Thanks in advance.
Maybe you are looking for
-
My new iPad is synced with iTunes but now it won't recognize my iPod nano. How do I get it to recognize both? iTunes synced with my Nano just fine until I added the iPad.
-
After updating to 2014 I have two version of each
After I updated my creative cloud apps, now I have two versions of each software on is CC and the other is CC 2014? Not sure why and how to remove old version. Any help will be greatly appreciated!
-
Hi, I am writing a simple client program to read mail using IMAP protocol but , I am getting following exception. I did search on net but didn't find any solution . Please help me out. javax.mail.MessagingException: A4 NO There is no replica for that
-
Using my credit in the iTunes store when buying in iBooks for PC on my macbook?
I currently have and generally always maintain a credit balance in my iTunes store account. Can this be used when i buy iBooks in the iBooks app?
-
Hello, I would like to have a field in ESS to record if the work was done at home, in the office, at the customer and so on. Unfortunately I cannot find the correct field for this. What would be the correct field for this or is it neccessary to use a