How to set a clob value to a hidden field
I have a function returning a clob value . Please let me know if there is a way to set a hidden variable with a clob value.
Hi,
This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
Regards,
<p>Blair Wheadon</p>
<p>Product Manager, Crystal Reports</p>
Similar Messages
-
How to set a default value in a DateTime field?
Hi!, how do you set a default value in a DateTime field in a user table to the value of "today"?
Thank you!It's in SAP Business One 2007, in User-Defined-Fields, under User Tables, Iam trying to add a field to a Table I created in the User-Defined-Tables-Setup menu.
I click Add then type the field name, description and then I select the Type, which is DateTime, then the SelectDefault Value For Field get's grayed out.
Thank you! -
How do I update the value of a hidden field?
Jsp has hidden field. The value of the hidden field is set.
<%= RequestCtx.getSessionInfoAsHiddenParam() %>
<INPUT type ="HIDDEN" name=billtoContactPartyId" Value="<%=billtoContactPartyId %>">
Based on some logic I've added to the jsp. I want to update the value of the hidden field. This does not work. How do I update the value?
windowForm.elements['billtoContactPartyId'].value = windowForm.elements['defaultcontactPartyId'].value;Hi,
If you create a function to return wwctx_api.get_user you could
call this inside an update trigger, you could put in an
exception to return USER if there is an error, this would then
work for users connected directly and users using Portal.
Regards Michael
e.g.
CREATE OR REPLACE FUNCTION F_PORTAL_USER RETURN VARCHAR2 IS
vRet VARCHAR2(50) := wwctx_api.get_user;
BEGIN
RETURN(vRet);
EXCEPTION
WHEN OTHERS THEN
RETURN (USER);
END F_PORTAL_USER; -
Hi,
I have the following urgent problem.
I created a pageflow which uses a form bean (created with a db control) to insert
values in a table. I overcame the disability to insert date values in the table
by converting this columns to string values in the table. But now I have to insert
a sysdate in a column that holds the row sampled date. How is it possible? I used
javascript without an success.
Code in jsp:
document[getNetuiTagName("myForm",this)][getNetuiTagName("date",this)].value=new
Date();(have used string values too)
<netui:hidden dataSource="{actionForm.sampled}" tagId="date"/>
Code in .jcx file
<xsd:element name="SAMPLED" type="xsd:dateTime" wld:JDBCType="DATE" minOccurs="0"
wld:TableName="theTable" nillable="true">
* </xsd:element>
Code in .jpf file
* <pageflow-object id="formbeanprop:portlets.Career.Submit_CV.Submit_CVController.DatabaseForm#sampled#java.sql.Timestamp"/>
public static class DatabaseForm extends RowSetForm
public java.sql.Timestamp getSampled()
return sampled;
public void setSampled(java.sql.Timestamp newOne)
registerChange("sampled");
this.sampled = newOne;
I have tried to use java.sql.Date too...
Any help would be very appreciated.
Thx,
VincentHi,
Hope You're using the template.fmb.
If your Custom Form is in INV module, use 'FND_ORG.CHOOSE_ORG;' in the pre-form.
Else Set the org id dynamically,
begin
MO_GLOBAL.SET_POLICY_CONTEXT(ACCESS_MODE,ORG_ID);
end;
Example:
begin
MO_GLOBAL.SET_POLICY_CONTEXT('S',101);
end;
S - Denotes that the current session will work for Single Org_id (101)
M - Denotes that the current session will work for Multiple Org_id
Thanks -
SRM 4.0- How to set the default values for product type (01) only for SC
The radio button Service should not be visible.
Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
How to set the default values for product type (01) only for SC
We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
Here we can set defalut value 01 but it is not correct one since same search help is using several places.
We need to limit the search help results only for SC.
Kindly help out me ASAP.The easiest way to set defautl values is to edit the batch class.
Goto the characteiristic and go to update values.
In here you probably have something like 0 - 100 as a spec range.
On the next line enter the default value within this range. At the end of the line, click in the box in the column labelled "D". This indicates the defautl value for the characteristic.
If you need to you can do this in the material classification view as well.
Just to be clear, these values will only show up in the batch record. You can not have defautl values in resutls recording screens.
FF -
How to set a variable value on the BPC Data Manager
Hello BPC Experts,
I'm creating a BPC10 NW version demo environment for our prospect customer.
I made a data manager to import BW data into BPC model from BW cube.
I need to import just one month data into BPC from the BW cube that has more than one month data.
When I run the data package manually, I can select a member of the time dimension prompt and I can import specific month data I want.
But, in a case where the program (data manager) runs by JOB monthly,
I can't select a member of the time dimension prompt manually.
So I want to know how to set a variable value to the time dimension prompt from a system date etc. automatically.
Are there any way to set a variable value to the time dimension prompt on the data manager automatically from a system date?
Or, do you have any other solution to import just one month data into BPC from the BW cube that has more than one month data by the data manager running on JOB ?
(without selecting a member of the time dimension prompt of the data package manually)
Thanks in advance,
KeisukeHi Gersh
Sorry for my late reply and thanks for your helpful information.
I tried the second way of your information and I could configure it.
And I 'll try first way of your information.
Regards,
Keisuke -
How to set a default value in dropdown list in Wendynpro ABAP? Help!
Hi Experts,
I have Webdynpro for ABAP application that shows a DropdownwithKey UI element.
1. I am able to populate the dropdown list. But by default the list is not showing any value. Only when I select a value from the list then it shows it.
So how to set the default value to the first value in the list? Any code sample will be really helpfull.
I have written the following code:
method WDDOINIT .
DATA:
node_category TYPE REF TO if_wd_context_node_info.
node_category = WD_CONTEXT->GET_NODE_INFO( ).
node_category = node_category->GET_CHILD_NODE( 'CATEGORY' ).
data: LT_VALUESET type WDR_CONTEXT_ATTR_VALUE_LIST,
L_VALUE type WDR_CONTEXT_ATTR_VALUE.
L_VALUE-VALUE = 'V1'.
L_VALUE-TEXT = 'yesterday'.
INSERT L_VALUE into table LT_VALUESET.
L_VALUE-VALUE = 'V2'.
L_VALUE-TEXT = 'today'.
INSERT L_VALUE into table LT_VALUESET.
L_VALUE-VALUE = 'V3'.
L_VALUE-TEXT = 'tomorrow'.
INSERT L_VALUE into table LT_VALUESET.
node_category->SET_ATTRIBUTE_VALUE_SET(
NAME = 'CAT_VALUE'
VALUE_SET = LT_VALUESET ).
endmethod.
Note that: I am using webdynpro for ABAP.
Thanks
GopalI am not sure how it works in Web Dynpro for ABAP, but in Web Dynpro for Java to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element) in the context
like
wdContext.currentContext<nodeName>Element.set<FieldName>(<defalut value>)
This generally done in Initialization method of the controller. -
How to set a Default Value in the drop down on Account Creation ?
Hi,
i have to set a default value in the drop down as soon as a User in a particular business role clicks on New Account. I have written the following code in do_prepare_output method. But this code is executed in the 2nd server round trip after entering some value or pressing enter. so i am not getting as soon as user clicks on the New Account.
How to set that default value when user clicks on New Account ? and where should i code ?
IF lv_icwc_profile = 'ZCSALESPRO' or lv_icwc_profile = 'Z_SALESPRO' .
try.
lr_entity ?= me->typed_context->header->collection_wrapper->get_current( ).
lv_current = lr_entity->create_related_entity(
iv_relation_name = 'BuilRolesRel' ).
lv_current->set_property(
iv_attr_name = 'PARTNERROLE'
iv_value = 'BUP002' ).
CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
cx_crm_genil_model_error.
return.
ENDTRY.
Thanks and Regards
Raman KhuranaHi,
I have some idea abt it, it is also used in account life cycle.
Please refer SAP note 1097651, Defaulting a life cycle stage.
Let me know if useful.
rgds,
Vinay -
How to set a default value in Select one choice.
Hi
I'm using ADF BC, in that how to set a default value in select one choice.
pls. help on this.
regardsset the default value on the underlying EO or VO attribute
john -
How to set a default value to t-list when creating t-list programmatically
hi,
I'm creating a t-list programmatically
by calling
n = populate_group('groupname');
populate_list('form.list','groupname');
In this case how to set a default value for the t-list
thanks
raniI am not sure how it works in Web Dynpro for ABAP, but in Web Dynpro for Java to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element) in the context
like
wdContext.currentContext<nodeName>Element.set<FieldName>(<defalut value>)
This generally done in Initialization method of the controller. -
How to set a default value for particular field in SRM PO Portal
Dear Gurus,
Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
Thanks in advance...
Regards,
SathishDear Laurent,
Thanks for your response,
But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
Kinly guide me how to get the particular node of field in the Purchase order screen.
Thanks you in advance,
Sorry for the inconvenience if any
Regards,
sathish -
How to set a object value bound to a session to JavaScript variable
In a JSP, I store an object value in a HttpSession and I also write a Javascript function to display something on the screen. I need to use the Javascript function to display the object value which is stored in the session. How to set the object value to variable of the JavaScript function. Thanks.
I write a class JavaScriptHelper to convert the object value to variable of the JavaScript;
1.get the data to a javabean from database;
2.convert the data to variable of the JavaScript as a String ;
3.store the object in a HttpSession or Httprequest ;
4.use in Jsp get the String (variable of the JavaScript )
YourBean bean = (YourBean) request.getAttribute("model");
if (bean != null) out.println(bean .getJsCode())
convert function,(this is only for the matrix):
public static String formatJsCode(Vector vector) {
String sJsCode = "";
//get js head
sJsCode = getJsHeader();
//define js array;
sJsCode += "var data=new Array();\n";
Vector v = null;
String sTemp = "", sLine = "";
for (int i = 0; i < vector.size(); i++) {
v = (Vector) vector.get(i);
sLine = "";
for (int j = 0; j < v.size(); j++) {
sTemp = (String) v.get(j);
//replace " to \"
sTemp = sTemp.replaceAll("\"", "\\\\\\\"");
//escape Html Tag
//sTemp = StringUtil.escapeHTMLTags(sTemp);
//replace \r\n to <br>
sTemp = sTemp.replaceAll("\r\n", "<br>");
if (j != 0)
sLine += ",";
sLine += "\"" + sTemp + "\"";
sJsCode += "data[" + i + "]=new Array(" + sLine + ");\n";
//get js foot
sJsCode += getJsFooter();
return sJsCode;
public static String getJsHeader(){
return "<script language=\"JavaScript\">";
public static String getJsFooter(){
return "</script>";
} -
How to set a new value for formula field in crystal reports xi?
<p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text = "'Subreport Formula'" or</p><p>crxSubreport.FormulaFields.Item("description").Text = "'Subreport Formula'"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>
Hi,
This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
Regards,
<p>Blair Wheadon</p>
<p>Product Manager, Crystal Reports</p> -
How to set a Object value by JDI
How to set a Object value using JDI?
For example:
class User{
private String name;
private String id;
set and get method;
public static void main(String[] args) throws Exception {
VirtualMachineManager vmm = Bootstrap.virtualMachineManager();
List<AttachingConnector> connectors = vmm.attachingConnectors();
SocketAttachingConnector sac = null;
for (AttachingConnector ac : connectors) {
if (ac instanceof SocketAttachingConnector) {
sac = (SocketAttachingConnector) ac;
break;
if (sac == null) {
System.out.println("JDI error");
return;
Map<String, Connector.Argument> arguments = sac.defaultArguments();
Connector.Argument hostArg = arguments.get("hostname");
Connector.Argument portArg = arguments.get("port");
hostArg.setValue(HOST);
portArg.setValue(String.valueOf(PORT));
vmMachine = sac.attach(arguments);
List<ReferenceType> classesByName = vmMachine.classesByName(CLSNAME);
if (classesByName == null || classesByName.size() == 0) {
System.out.println("No class found");
return;
ReferenceType rt = classesByName.get(0);
List<Method> methodsByName = rt.methodsByName(METHODNAME);
if (methodsByName == null || methodsByName.size() == 0) {
System.out.println("No method found");
return;
Method method = methodsByName.get(0);
I will connect to server and monitor the remote server JVM , There is a object of User, I want to change its value by the Java Debugger Interface by client.
so how to set its value by the client, and I can not got the User bean at client.
I know the basic type filed value changed as follows:
Value newValue = vmMachine.mirrorOf("change var value");// this field is a string.
stackFrame.thisObject().setValue(field, newValue);
But a Object , how can I change its value.
Thanks Advanced.ObjectReference.setValue() is the method for chaining the value of an Object's field. First you need to find the specific Object you want to change, though.
/Staffan -
HOW TO SET A DEAFULT VALUE FOR A FIELD?
hi friends
i have doubt..how to set a default value for a field..say like in local printer field i always want lp01 to be displayed defaultly..when i click F1 in that field i get the parameter id ..i know there is something dealt with that parameter id..how can i set that default value ..in the case of the default printer value i made in own data settings as lp01 but how to do it normally for other field which has parameter id ??????
thanks and regards
princeHi Prince,
u can set the default value in abap as given below
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS : S_BUKRS TYPE BSID-BUKRS OBLIGATORY DEFAULT '1000'.
PARAMETERS : S_BELNR TYPE BELNR_D OBLIGATORY DEFAULT '1600000070'.
PARAMETERS : S_GJAHR TYPE GJAHR OBLIGATORY DEFAULT '2008'.
PARAMETERS : ASON TYPE BUDAT OBLIGATORY DEFAULT SY-DATUM.
PARAMETERS : S_KUNNR TYPE KUNNR MODIF ID GP1.
PARAMETERS : S_LIFNR TYPE LIFNR MODIF ID GP2.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN : END OF BLOCK B1.
or
u can give the default value in INITIALIZATION also.
vlue = '1000'.
Maybe you are looking for
-
Troubles connecting MacBook to LG TV
I recently bought an LCD TV from LG, model 32LD358 (full HD, 1920x1080, 50 Hz), but i can't connect my macbook (2010). i bought a minidvi-hdmi adapter and a hdmi-hdmi cable. if i try using 480p as my tv resolution (which seems to be the only one work
-
Mounting drives on a udev+hal+gnome-volume-manager setup
Hi, I set up Arch Linux on a friends computer. The setup seems to work, for example gnome-cd is started when one inserts an Audio CD. However, everything that involves mounting does not work. The error message given by gnome-volume-manager is mount:
-
User session connected to forms freq get inactive in oracle
Hi we are having oracle 10.2.0.3 on aix 5.3 RAC environment. we are having monitor database scripts to check how the session and how many long running sessions are there like this? but on last few days we found that suddenly out of two nodes one node
-
When I try to buy music, I get message saying that my credit card information does not match the bank records. My information, formatting are exactly the same as the bank. Help!
-
Running concurrent SAPEHPI on the same OS
Hello We have to upgrade more then one SAP system running SAPEHPI, the SAP system are running on the same server. if running more then SAPEHPI on the same host for diffrent SAP system, tcp port will be busy (4239 and other) Do you know of a way to ru