Setting the value of an Application Item (setting a global variable);
In APEX 3.2.0.00.27, I need to initialize a global variable to 0 to implement a variable for testing to see if anything on the page has changed. Will update to 1 when certain select lists on the page are changed. Have read through some similar questions and replies within the forum as well as other blogs and sites. So, I believe what I am doing is the way to go about this. Unfortunately, my initialization of an application item/global isn't happening yet. here's a rundown of what has been implemented:
1) created an application item, G_CLASSIFICATION_ID_NEW in the shared components;
2) created Javascript (JS) function called by addLoadEvent in the page html header region so when the page loads, the G_CLASSIFICATION_ID_NEW global/application item should get set to 0 with the following JS and using AJAX and htmldb_GET:
<script type="text/javascript">
function initVars()
alert("before get initvars");
var get = new htmldb_Get(null,$x('pFlowId').value,null,22);
get.add('G_CLASSIFICATION_ID_NEW', 0);
gReturn = get.get();
if(gReturn){
alert(gReturn.value);
get = null;
alert("after get initvars");
alert("before call to initpage");
addLoadEvent(initVars());
</script>
I've used the htmldb_Get with success for populating other global variables and running On Demand Processes with onchange JS calls in the html form element attributes within select lists on the page. Afterwards, I can check the globals via the Session window and searching on Application Items. Unfortunately, I'm missing something because my G_CLASSIFICATION_ID_NEW never gets populated when I load the page. The alerts all popup when the page is loaded, so I know the script is being executed when the page loads. the alert(gReturn.value) comes back undefined. And, needless to say, the G_CLASSIFICATION_ID_NEW to 0 is not occurring.
I've tried the htmldb_Get with it calling an application process and without (set to null). From what I've read, you shouldn't need to call an on demand process to have the get.add set the global variable. Then again, this could be where I'm going wrong. however, as I've mentioned, this works for other functions called from an onchange to populate an application item, but the page has already loaded when the onchange(s) get executed. They may work because the page is already loaded when the onchange is called. My point here is that my other On demand processes are NOT setting or changing the global variables at all. The globals are getting set with the get.add(<app item>, <value>) portion of my other JS functions within the HTML Header region. So, I'm inclined to believe that I don't need the 'application_process=<some_odp>' parameter set, but if that's not true, please let me know. if so, what would need to be in the on demand process--ie, what would be the purpose of the get.add(<application item>, <value>) if I set the global variable in the on demand process because that's the only thing I could think of doing within an on demand process for this?
If somebody can point out what I'm not understanding or failing to do here, that would be great. I'm doing fine with APEX, but wouldn't consider myself a guru with it just yet. I'm definitely not a JS/AJAX guru, and when things like this go astray, I get bogged down because I'm not sure of the problem. So, I'm hoping you gurus who monitor this forum can get me going in the right direction.
thanks,
bob
Hi Jari,
Does that javascript work if you place it some of region footer on page 22 ?Yes. I cut it out of the html header of the page, and put it in the footer of the first region on the page. It initializes the variable. Putting it into the footer of the first region on the page should work for me instead of having an extra region on the page that's being picked up from page 0.
Is your page 22 authentication public ?No. This particular page is set for an ADMINISTRATOR only. That said, I am logged in as an administrator. So, I cannot see why setting authentication should make a difference as long as I have that authentication/authorization. Also, there will be other pages where I want to use this script or a similar script, but again, those pages will not be open to the public. the authentication will be "role" based where a user will not necessarily have to be an administrator, but they will have to have a certain role to access the page. Is there a known problem or something that precludes a html header JS script from doing an addloadevent when authentication is NOT public?
thank you,
bob
Similar Messages
-
HOW to set the value attribute of FORM INPUT data to a variable in a JSP
eg. Registration.jsp
The data is accessed from an hidden field called course
for example, if I have "Java programming" in the field course, and I use
an expression to access the value from the hidden field.
**My problem is that the data gets truncated to "Java" , I need "Java Programming"to display. The code looks like this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<INPUT TYPE="text" SIZE=12 NAME="course"
VALUE=<%=getParameter("course") %>
IS there ANY OTHER WAY to set the value of VALUE to a variable?Instead of value=<%=request.getParameter("course")%>
Use double codes
value="<%=request.getParameter("course")%>" -
How to set the Value in Dropdownbyindex
Hi Experts,
I am New to Webdynpro-ABAP.
I have one Dropdownbyindex field. I need to set the value from BAPI. how to set that values in Dropdown..
I need Basic step-by-step procedure.
Regards,
P.ManivannanHi,
1. First import the BAPI in to WD component using create->service call.
2.The BAPI import, export and Table parameters will be set in to the Component Controller context.Then drag this BAPI node to your view.
3.In the 'texts' property of DDbyindex bind the BAPI output node which will be the Table parameter of the BAPI.It could be under CHANGING node.
4.In WDDOINIT method just click the code wizard and enter the method name which you will give when importing the BAPI.Automatically the values from the BAPI will be loaded into your Dropdown when you run the application.
Regards,
Dinesh -
How to get the value of a clicked item in a shuttle control
I have a shuttle control (P8_SHUTTLE) that lists then names from scott.emp.
Now I want to create a dynamic action that fires when I click on one of the names on the left side of the shuttle control.
I want the dynamic action to recognize the name of the employee that was clicked, and then set the value of a text item (P8_LAST_VALUE) to that ename. (Eventually I want to display the department of that employee in the other text item).
Here are screen shots of my DA:
http://www.screencast.com/t/42klMC0Hbk
http://www.screencast.com/t/Y5lZ4RsaLUI
Currently, when I click an item in the shuttle control, the text item P8_LAST_VALUE remains blank.
Thanks,
ChristophHi Christoph,
you have to change your jQuery selector in the When section of the Dynamic action to #P8_SHUTTLE_LEFT.
The shuttle item P8_SHUTTLE is build from to select lists P8_SHUTTLE_LEFT and P8_SHUTTLE_RIGHT.
regards,
Erik-jan -
How to set the value of application item using pl/sql in application process
Hi guys,
I want a global variable (application item) whose value will be set at the start when a user logs in to the application. The value will be retrieved from database using a sql query. I do not know the exact syntax to set the value of application item in application process. Also i want to know in which type of application process should i use to set the value of application item when a user starts a session. The value of application item varies from user to user.
Please help.
I am using apex 4.2
Regards,
WaqasYou can use the application item as bind-variable with its name. ie. your application item is named G_MY_APPLICATION_ITEM, then you can access/set it using :G_MY_APPLICATION_ITEM.
For example
BEGIN
-- assign like a variable
:G_MY_APPLICATION_ITEM := 'LARRY';
-- use in a SQL statement
SELECT WHATEVER_COLUMN
INTO :G_MY_APPLICATION_ITEM
FROM MY_TABLE
WHERE USERNAME = :APP_USER
END;
Peter -
Setting the value of a single attribute for multiple line items
Hi all,
I am working on a Web Dynpro application, I have created this applicaion for an accounting document so it has header data and multiple line item data. As per the requirement I have to put the following logic:
1. When a user enters a value in the field KBLNR on the line item, all the other fields like cost centerm fund, functional area should populate from a database table based on the value of the KBLNR. to get this I have put the following code:
TYPES: BEGIN OF t_kblp,
fipos TYPE kblp-fipos,
kostl TYPE kostl,
END OF t_kblp.
DATA lv_kblnr TYPE wd_this->element_t_bseg-kblnr.
DATA: lt_kblp TYPE STANDARD TABLE OF t_kblp,
wa_kblp LIKE LINE OF lt_kblp,
lt_bseg TYPE STANDARD TABLE OF bseg,
wa_bseg TYPE bseg.
DATA lo_nd_t_bseg TYPE REF TO if_wd_context_node.
DATA lo_el_t_bseg TYPE REF TO if_wd_context_element.
DATA: ls_t_bseg TYPE wd_this->element_t_bseg,
lo_api_controller TYPE REF TO if_wd_controller,
lo_message_manager TYPE REF TO if_wd_message_manager,
lo_nd_tbseg TYPE REF TO if_wd_context_node,
lo_el_tbseg TYPE REF TO if_wd_context_element,
lt_el_tbseg TYPE wdr_context_element_set,
lv_bseg TYPE bseg.
lo_nd_t_bseg = wd_context->path_get_node( path = `ZDATA.CHANGING.T_BSEG` ).
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
lo_nd_tbseg = wd_context->path_get_node( path = `ZDATA.CHANGING.T_BSEG` ).
lt_el_tbseg = lo_nd_tbseg->get_elements( ).
LOOP AT lt_el_tbseg INTO lo_el_tbseg.
lo_el_tbseg->get_static_attributes(
IMPORTING static_attributes = lv_bseg ).
IF lv_bseg-kblnr NE ' '.
SELECT belnr
fipos
kostl
PSPNR
geber
saknr
fkber
grant_nbr
gsber
FROM kblp
inTO corresponding fields of wa_kblp
WHERE belnr = lv_bseg-kblnr and
saknr = lv_bseg-saknr.
ENDSELECT.
lo_nd_t_bseg = wd_context->path_get_node( path = `ZPRELIMINARY_POSTING.CHANGING.T_BSEG` ).
* get element via lead selection
lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
lo_el_tbseg->set_static_attributes(
EXPORTING static_attributes = wa_kblp ).
CLEAR: lv_bseg, wa_kblp.
ENDLOOP.
everything is working fine but now the problem is couple of fields that I have in wa_kblp are with different names in bseg table and hence they are not updating... I tried putting the following logic within the loop :
lo_el_t_bseg->set_attribute(
name = `PROJK`
value = wa_kblp-pspnr ).
but it's only setting the value of the first line item and not working for the multiple line items, can you please tell me how can do this?
Thanks,
Rajat Garg
Edited by: rajatg on Jun 24, 2011 5:09 PMHi Chris,
I tried your code and it worked fine but after I put this code I am getting another issue. within the loop I had a code to make the fields non modifiable on the screen and was working fine but now what's happening is it's making the all the lines uneditable except the one with data on it (which is completely opposite), this is what I have coded:
LOOP AT lt_el_tbseg INTO lo_el_tbseg.
lo_el_tbseg->get_static_attributes(
IMPORTING static_attributes = lv_bseg ).
IF lv_bseg-kblnr NE ' '.
SELECT belnr
fipos
kostl
PSPNR
geber
saknr
fkber
grant_nbr
gsber
FROM kblp
inTO corresponding fields of wa_kblp
WHERE belnr = lv_bseg-kblnr and
saknr = lv_bseg-saknr.
ENDSELECT.
move: wa_kblp-belnr to wa_bseg-kblnr,
wa_kblp-fipos to wa_bseg-fipos,
wa_kblp-kostl to wa_bseg-kostl,
wa_kblp-pspnr to wa_bseg-projk,
wa_kblp-geber to wa_bseg-geber,
wa_kblp-saknr to wa_bseg-saknr,
wa_kblp-fkber to wa_bseg-fkber,
wa_kblp-grant_nbr to wa_bseg-grant_nbr,
wa_kblp-gsber to wa_bseg-gsber,
lv_bseg-dmbtr to wa_bseg-dmbtr.
append wa_bseg to lt_bseg.
lo_nd_edit_property = wd_context->path_get_node( path = `ZPRELIMINARY_POSTING.CHANGING.T_BSEG.EDIT_PROPERTY` ).
get element via lead selection
lo_el_edit_property = lo_nd_edit_property->get_element( ).
lo_el_edit_property->set_attribute(
name = `EDIT_FIELD`
value = 'ABAP_TRUE' ).
lo_el_edit_property->set_attribute(
name = `EDIT_WBS`
value = 'ABAP_TRUE' ).
endif.
endloop.
o_nd_t_bseg = wd_context->path_get_node( path = `ZPRELIMINARY_POSTING.CHANGING.T_BSEG` ).
get element via lead selection
lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
CALL METHOD lo_nd_t_bseg->bind_table
EXPORTING
new_items = lt_bseg.
Can you please see what I am doing it wrong here.... -
Online Store 1.0 - which process set the value of App Item 'FULLNAME'
Hi,
I just very curious about which process set the value of App Item 'FULLNAME' ini the packaged Apex App - Online Store 1.0 .
At Navigation Bar, there is a entry named "If you are not &FULLNAME., Click here |". However I can't find how the app set this application item value in any process when login.
any idea, I will be very appreciated.
Thanks in advance.
PPMonkeyCheck the post-authentication process in the current authentication scheme and the call to ols_getname.
Scott -
How to set the value of something in a component from the main application?
Hi,
Maybe I've been working on this too long, but I can't figure
out how to set the value of the text property of a text input field
in a component from my main application in an mx:Script block. I
have a component called Login in the components folder, and I need
to set the text value of empNum. In my mxml declaration at that the
top, I've declared these components as xmlns:c="components.*" So
logically, the property I'm trying to set is c.Login.empNum.text. I
can't figure out the correct syntax to get this to work, and I've
tried everything I can think of. Does anyone have any suggestions?
I'm thinking this should be an easy one, and I'm just missing
something.
Thanks!
HolliDid you try giving it an id ?
<c:MyLogin id="loginScreen" /c>
So later you can do loginScreen .empNum.text = "my text"
Laurent, -
Set the value of items when check box is checked
Hi,
My requirement is when we click a check box it should set the value of an item as 111111 and clear the values of two items in an apex page.
I used java script onClick event to set those items using document.getElementByID('Item_Name')='';
One of the item which needs to be cleared is a conditonal type.
When the condional item present, java script works fine. But if it is not present,
code works but it shows "error on page" for few seconds.
Is it possible to clear the item, only when the item is present in the page.
Thanks,
RaviHi,
Yes e.g. like
if($x("ITEM_NAME")){
$s("ITEM_NAME", "");
}Regards,
Jari -
Setting the value of a textbox from another page
Hi Everyone,
I have a multi paged application (multiple xib, multiple controllers)
In my selection view, the view that holds the UIViewPicker control, I need to populate the page that called the selector page...
I have the code to identify what page called the selector, and when the page is dismissed, I need to fill in the field from the calling page.
I have included the header of the calling view in my selector view, and now I need to be able to fill in a readonly textbox in the calling view....
Do I need to setup a property for each of the textboxes in the calling view, or can I populate them directly??
thanks
tonyalt-088 wrote:
I am sorry, but I am lost in this implementation....
How exactly do I tell the self.parentViewController what control will receive the new text value??
Ooooops!! I'm the one who needs to be sorry, Tony:
// from previous post
- (void)setTextInParent:(NSString* textValue) {
// assume that every possible parent controller has a "textbox" object
// which is a member of some class that has a writable 'text' property
[previousViewController setValue:textValue forKey:@"text"]; // <-- * Idiot alert *
Looks like another one of my senior moments. As you pointed out, we need the value of the 'textBox' property before we can set the value of the 'text' property.
To your question on how I am displaying the second view, it is called via
[self presentModelViewController:screen animated:YES]
from a button click event
Cool. That means we already have the address of vc1 in the 'parentViewController' ivar of vc2, so we don't need to add the 'previousViewController' ivar shown in my example.
So here's a corrected and maybe more relevant example--this one has been tested (Duh!), btw:
- (IBAction)done {
// get the currently selected string
NSInteger row = [pickerView selectedRowInComponent:0];
NSString *selection = [dataArray objectAtIndex:row];
NSLog(@"%s: selection=%@", _func_, selection);
// set text in textBox property of parent controller
[self.parentViewController setValue:selection forKeyPath:@"textBox.text"];
[self dismissModalViewControllerAnimated:YES];
I have tried to implement this code
[self.parentViewController setValue:21 forKey:@"test"];
but it is generating an error stating
passing argument 1 of 'setValue:forKey:' makes pointer from integer without a cast
Yeah, referring to the doc, [setValue:forKey:|http://developer.apple.com/iphone/library/documentation/Cocoa /Reference/Foundation/Protocols/NSKeyValueCodingProtocol/Reference/Reference.html#//appleref/occ/instm/NSObject/setValue:forKey:] wants an id type (pointer to an object of any Obj-C class) for the first arg. Since 21 is an int, i.e. a scalar value, the compiler doesn't like it (and the runtime system would like it even less).
However when you want to use KVC to set a scalar property, the methods are actually smart enough to extract an int if you provide a NSNumber object (see "Setting Attribute Values Using Key-Value Coding" under [Key-Value Coding Fundamentals|http://developer.apple.com/iphone/library/documentation/Cocoa/Conc eptual/KeyValueCoding/Concepts/BasicPrinciples.html#//apple_ref/doc/uid/20002170 ] in the Key-Value Coding Programming Guide). So if 'test' is an int ivar of the parent controller, something like this should work:
[self.parentViewController setValue:[NSNumber numberWithInt:21] forKey:@"test"];
Does that cover your questions? Sorry again for the bad code. Most of the examples I post are pasted directly from working, tested code, and I usually add a disclaimer if it's just something I keyed into the forum. But when I"m having a senior moment all bets are off.
- Ray -
Can I set the value of a list binding in my managed bean?
Dear All,
This is just an exercise for me and I just wanted to experiment on the bindings of ADF for me to understand it further.
I wanted to create a custom Model Driven LOV with my data control listed below
Countries
-CountryId
-CountryName..but I wanted to display the label similar to this
1 - USA
2 - England
n - France..so I thought of manipulating the select items in a bean
<af:selectOneChoice id="soc1" value="#{bindings.Countries.inputValue}">
<f:selectItems value="#{pageFlowScope.MyBean.countries}" id="si1" valuePassThru="true"/>
</af:selectOneChoice>..and the code similar to this
public class MyBean{
public List<SelectItem> getCountries(){
//countryMap points to accessing the iterator binding
//BindingsHelper is a utility class that sets the value
for(...){
SelectItem item = new SelectItem();
item.setLabel(countryMap.get("CountryId") + " - " + countryMap.get("CountryName"));
item.setValue(countryMap.get("CountryId"));
list.add(item);
//set the item to the first row
BindingsHelper.setExpressionValue("#{bindings.Countries.inputValue}",
list.get(0).getValue());
return list;
}...on the last part I wanted to set the value to the first item but I am encountering numberformatexception when setting the list binding.
I know I can do this declaratively also by removing the unselected item but as I have said I am experimenting on the bindings.
Is this not possible?
Thanks.
JDev 11G PS5Hi ,
I understand that , you want to show select one choice (dropdown) with label (countyid - country name) and value is (countryid).
and these informnation is coming from ADf Model ( may be a VO).
in the UI page you used this list is coming from MyBean
<af:selectOneChoice id="soc1" value="#{bindings.Countries.inputValue}">
<f:selectItems value="#{pageFlowScope.MyBean.countries}" id="si1" valuePassThru="true"/>
</af:selectOneChoice>
so ,
The Managed Bean code should be ,
private List<SelectItem> countries;
///setter method
public void setCountries(List<SelectItem> countries) {
this.countries= countries;
// getter method
public List<SelectItem> getQuoteStatusList() {
quoteStatusList =
selectItemsForIterator("countriesVOIterator",
"countryId", "countryName");
return quoteStatusList;
public static List<SelectItem> selectItemsForIterator(String iteratorName, String valueAttrName, String displayAttrName) {
return selectItemsForIterator(findIterator(iteratorName), valueAttrName, displayAttrName);
public static DCIteratorBinding findIterator(String name) {
DCIteratorBinding iter = getDCBindingContainer().findIteratorBinding(name);
if (iter == null) {
throw new RuntimeException("Iterator '" + name + "' not found");
return iter;
public static List<SelectItem> selectItemsForIterator(DCIteratorBinding iter, String valueAttrName, String displayAttrName) {
List<SelectItem> selectItems = new ArrayList<SelectItem>();
for (Row r : iter.getAllRowsInRange()) {
string labelValue = (String)r.getAttribute(valueAttrName) +"-"+ (String)r.getAttribute(displayAttrName);
selectItems.add(new SelectItem(r.getAttribute(valueAttrName),labelValue ));
return selectItems;
this will give you what you except in the ui
when you try to get the value form that seclecOneChoice value in MyBean what user selects , you can simply get the value of this selectOneChoice. -
How to set the value of RichSelectOneChoice
I have RichSelectOneChoice in a managed bean and I want to set the value of this component. I tried this one but it's using it's index instead of actual value:
RichSelectOneChoice comp = (RichSelectOneChoice) agencyListComponent;
comp.setValuePassThru(true);
comp.setValue(agencyId);
where agencyListComponent is of type UIXComponent.The list is attached to model
The select list code is:
<af:selectOneChoice value="#{bindings.AGENCYID.inputValue}"
label="#{bindings.AGENCYID.label}"
required="#{bindings.AGENCYID.hints.mandatory}"
showRequired="#{bindings.AGENCYID.hints.mandatory}"
shortDesc="#{bindings.AGENCYID.hints.tooltip}"
id="soc1" valuePassThru="true"
partialTriggers="pw1"
binding="#{backingBeanScope.AgencyBean.agencyListComponent}">
<af:selectItem value="" id="emtOpt"/>
<f:selectItems value="#{bindings.AGENCYID.items}"
id="si1"/>
</af:selectOneChoice> -
How to set the value in the xml node.
Hi
I am having the application PDF which can be submitted by user using the button. while submitting
i am using below code to set the value in the xml node.
xfa.data.assignnode("employee.id","123",0):
So its generating the xml like below.
<employee>.
<id>123</id>.
</name>
</employee>
Now i need to generate the xml like below.
<employee id= "123" >
</Name>
</employee>
So how to set/create the id node like above?
Advance Thanks.
Regards,
DhiyaneHi Dhiyane,
You will have to set the contains property if the id node to "metaData", that is;
xfa.data.assignNode("employee.id","123",0);
xfa.data.employee.id.contains = "metaData";
Very clumsy if you have a number of them, in which case you might want to look at using E4X.
Good luck
Bruce -
Loading a file and setting the values in a Jtextfield
Hi all,
I've created a save and open menu option for my application. The save option works as it writes to file using jFileChooser. However when using the open file option the program opens the correct file and stores the strings read into a string variable, however when I go to set the value stored in the variable to a specific textfield using settext method, it doesn't do anything. Please can someone give me some suggestions on what I am doing wrong. The following is the code snippet that accesses the file and reads from it:
try
int result = jFileChooser1.showOpenDialog(this);
if ( result == JFileChooser.APPROVE_OPTION )
String str1 = jFileChooser1.getCurrentDirectory() +
System.getProperty("file.separator") + jFileChooser1.getSelectedFile().getName() ;
FileReader f = new FileReader( str1 );
BufferedReader b = new BufferedReader(f);
while((text1 = b.readLine()) != null)
//text2 = b.readLine();
jTextArea1.append("\ntext1: "+text1+"\nsize: "+size);
if(text1 == "// System Configuration")
text1 = b.readLine();
size = text1.length();
//text2 = text1;
jSampleRate.setText(text1);
text1 = b.readLine();
size = text1.length();
//text2 = text1;
jFrequency.setText(text1);
text1 = b.readLine();
size = text1.length();
//text2 = text1;
jVoltage.setText(text1);
text1 = b.readLine();
size = text1.length();
text2 = text1;
jFSVoltage1.setText(text1);
/*if((text = b.readLine()) == "// Phase Selection")
// READ INFORMATION LOOKING FOE THE SPECIFIC TAGS
b.close();
jFileChooser1.cancelSelection();
Any suggestions wpould be very much appreciated. Thanks in advance.this is the result from the read in information:
text1 is the string variable that is used to store the information read in from the file, while size is the variable used to obtian the size of the string. Does the readline() method have any properties which would affect what is being read in?
text1: |=========================================================================================
size: 0
text1: | File Name: C:\CsoundTest\walid3
size: 0
text1: | Last Modified: 30-01-2003 11:25:11
size: 0
text1: | Warning: Do not modify the information stored in this file. If modified the inforamtion
size: 0
text1: | may not be retrieved correctly when loading the file into the main program.
size: 0
text1: |==========================================================================================
size: 0
text1:
size: 0
text1: // System Configuration
size: 0
text1: 500
size: 0
text1: 50
size: 0
text1: 230
size: 0
text1: 300
size: 0
text1:
size: 0
text1: // Phase Selection
size: 0
text1: 1VIncN
size: 0
text1:
size: 0
text1: // Duration
size: 0
text1: 0
size: 0
text1: 00
size: 0
text1: 00
size: 0
text1:
size: 0
text1: // Disturbances
size: 0
text1:
size: 0
Regards
walidr -
How to set the value to non enabled UDF fields
Dear All,
I created a UDF at titile level of PO and that UDF item always disabled (i.e oItem.Enabled=false). Now how can set a value through coding.
I wrote like this:
oForm = SBO_Application.Forms.GetFormByTypeAndCount(-142, 1);
oItem = oForm.Items.Item("U_Poap");
if (oItem.Enabled == false) { oItem.Enabled = true; }
oEdit = ((SAPbouiCOM.EditText)(oItem.Specific));
oEdit.Value = "1";
oItem.Enabled = false;
But system throws an error at : oItem.Enabled=true statement.
How to solve issue.
Thanks in advance
Suresh YerraHi,
You can set the values using datasource object
oDBs_Head = objForm.DataSources.DBDataSources.Item("@TableName")
oDBs_Head.SetValue("U_FieldName", 0, "Value")
regards:
SANDY
Sandeep Saini | Roorkee | India on Dec 26, 2008 11:01 AM
Maybe you are looking for
-
"An unknown error occurred (-50)" after library import
Here's the gist... I used the new feature in File:Library to reorganize my iTunes 9 library so it was easier to navigate in Finder. After that, every time I plugged the iPhone in, it wanted to copy ALL the songs over again. I tried everything I could
-
TS1702 PrintDirect Application Upgrade does not reauthenticate on iPad Air.
Hi Can anyone assist me please. I purchased the PrintDirect Application for both my iphone 5S and new ipad air, both are running latest IOS software. The app. is downloaded first as a free app, then with purchase of an in-app upgrade to obtain full f
-
Defining an SLD Strategy for XI Migration using CMS
Can the following scenario occur? Please explain if any of my assumption are incorrect. -> An XI DEV, QA, and PRD environments each with a separate "slave" SLD. -> A separate "master" SLD that contains all XI dimensions (i.e. transport, solution, an
-
CS 5 zoom troubles on new Imac.
I use Illustrator CS 5 which I've recently installed on my new iMac. My OS is 10.9.2. It works fine but when I try to zoom out by holding Option and tapping with my wacom stylus it only zooms in. I've seen that the newer Illustrator had a similar pro
-
Uncyclopedia Arch Linux Entry - Ubuntu Noobs
Seeing as Arch's community has a relatively significant population of (ex?) Ubuntu Noobs, I felt the urge to include a little splurge about it on Uncylopedia. The fact that I wrote it is a bit ironic, because I am an ex Ubuntu noob myself (used it fo