Setting the value of a newly created subform
I am adding a new subform by calling the instance manager and in the same script, I want to set the value of a field within that newly added subform, but it does not seem to work.
if (condition = true) {
_subformname.addInstance();
form.subform.TextField1.rawValue = "test";
So I add the subform and then try to set the TextField1 (name of a field in my subform)to have a value of test. In fact, I add several subforms in the same script event and what ends up happening is that the data from the very last subform I add gets put into the TextField1 of the very first occurrence I added. Almost like the subforms all get added, but only in memory and you cannot interact with them until the script event you triggered completes. Any ideas would be greatly appreciated.
Dave
Try something along these lines:
for (var i = 0; i < 3; i++) {
var myInstance = _sf.addInstance(true);
myInstance.TextField1.rawValue = "test";
Chris
Adode Enterprise Developer Support
Similar Messages
-
I'm trying to set the value of a textfield to a instance of another textfield in a repeating subform
Hello all,
I am trying set the value of a textfield in a repeating subform/table row to another textfield in a repeating subform with the corrosponding instance number.
The user enters a list of Key Activities in the first part: -- KeyActivityRow is the repeating subform --
xfa.resolveNode("form1.#subform.KeyActivities.Row1.Table2.KeyActivityRow.Cell2")
-- KeyActivityRow is the repeating subform --
Which then Populates the corresponding occurence of: --
xfa.resolveNode("form1.#subform.ActivityTable.HeaderRow.Table1.HeaderRow.Cell1")
-- ActivityTable is the repeating subform --
KevinIn the calculate event of form1.#subform.ActivityTable.HeaderRow.Table1.HeaderR ow.Cell1 enter this script in Language:JavaScript :
this.rawValue=xfa.resolveNode("form1.#subform.KeyActivities.Row1.Table2.KeyActivityRow["+A ctivityTable.index+"].Cell2").rawValue
Kyle -
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.... -
Not able to set the value in marketing context node for BP_HEAD
Hi,
I am trying to set the value in marketing node of BP_HEAD from bp_addr component. i am calling the set_property method but it is not changing the value, when i debugg the code, it actually changing the value in bol structure but it is not calling the get/set method of bp head.
i am working on BP corporate person creation i.e. in bp_head component and account details view. I added the marketing attributes in UI configuration and also the address attributes.
this is what i coded in get method of country in standardaddress context node of BP_ADDR
lv_entity ?= current.
IF lv_entity IS BOUND.
lv_parent = lv_entity->get_parent( ).
IF lv_parent IS BOUND.
lv_entity_mkt = lv_parent->get_related_entity( iv_relation_name = 'BuilMarketingRel' ).
IF lv_entity_mkt IS BOUND.
CALL METHOD lv_entity_mkt->set_property
EXPORTING
iv_attr_name = 'ATTRIBUTE'
iv_value = attribute1.
Can anyone please guide me on how to set the value cross component and can we call the get/set method of that attribute which is not in same component?
Regards,
Kamesh BathlaSorry, what I said was rubbish, because the LSMW and the session run in different external sessions.
I have searched forum for these terms: "company BUK parameter BDC background"
These threads Is it possible to set default company code in SM35? and Release BDC in SM35 in background, How to set defaul company code? seem promising, but I'm not sure they really solve.
In case these threads don't help you, I think you can create your own Z transaction which sets the BUK parameter id and then does a LEAVE TO TRANSACTION 'ABAON'. Then create again the recording on the Z transaction.
If you are using ECC6, then you may also enhance the standard to reset BUK parameter id at the very beginning of ABAON, in case it's run in batch input (sy-binpt = 'X'). Be careful as sometimes SAP does batch input on some transactions, so that could make the standard fail.
Last thing, you can contact SAP support, though it might probably be considered as consulting. -
How can get the value of a HtmlInputText (created in the bean)
Hi All,
I have created a HtmlInputText object in the Backing Bean (the getter and setter are in another Bean used to manage the data, getEditableInputText and setEditableInputText)
//getter and setter in Bean
public HtmlInputText getEditableInputText() {
return this.editableInputText;}
public void setEditableInputText(HtmlInputText editableInputText) {
this.editableInputText = editableInputText;
I set the value in the Backin Bean
The HtmlInputText is bound in the xml in this way:
<h:inputText id="test" binding="#{Bean.editableInputText}"></h:inputText>
When I load the page I can see the TextField with the value that I set previously (in the backin bean).
The problem is when I try to change the value of the texField:
I change the value, then I click on a button (its action is to call a method to get the value of the field).
In debug mode I see that the value is allways the first set instead of the new value inserted.
I tried with getValue and similar but it does not work.
I tried also to put HtmlInputText in a panel (using a similar logic) and then to get it using getChildren() method but also this does not work.
Any idea?
Thanks in advanceOk (now I understand)
I have used bean.getEditedInputText() and it is not null.(I got the HtmlInputTextObject)
But bean.getEditedInputText().getValue has allways the first value set.
If I don't set previously the value (in the backin bean) the getValue() is allways null.
So my problem is that I can set but I cannot get the Value when I change it.
Edited by: LucaMane on Nov 16, 2008 5:13 AM -
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 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 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 -
How can I set the value to a session bean from backing bean
Hi Experts,
How can I set the value to a session bean from backing bean where I have created getter and setter
methods for that variable.
Basically I am using ADFUtils class where I am able to get the value from session bean
using following expression
String claimType =
(String)ADFUtil.invokeEL("#{ClaimValueObj.getClaimType}");
Thanks
GayazGayaz,
Wrong Post !!
Post in JDeveloper and ADF
Thanks
--Anil -
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 -
Set the value of a CWNumEdit Control from within the code
I am trying to update a CWNumEdit Control with data created during program execution. I am using the set_Text function but it does not seem to be working. I was wondering if there is something that I am missing to get this functionality to work. Please help.
I am developing a VS .NET 2003 WinForm GUI and am Using Measurement Studio 8.1.1.Hello mtd32610,
I noticed this question was already posted on this forum. We like to
keep all questions related to a single issue confined to one forum, so
please direct all future replies to one post or the other.
As Jervin_J mentioned in the previous post, the standard method for
updating a CWNumEdit control is to set the Value property of the
CNiNumEdit object that is associated with this control. You do not
need to call the set_Text function, in fact I am not familiar with any
set_Text function, so I think you may be calling this method on the
wrong class altogether.
You should have an object associated with your CWNumEdit control that
you can set the Value property for. As mentioned in the reply from
Jervin_J, the normal way to populate the control is to use:
<control>.Value = <numeric_value>;
Regards,
Marty H.
National Instruments -
Set the value of a non database field in forms
hai friends ,
Have been struggling a lot with the problem now . Could anyone suggest me how to go about it.
I want to set the value of a field in a form . I know the function set_value and set_value_as_(data type ) does the work . But then is there any constraint on the position where it is called.
My requirement is on querying a form the data from the tables mut be populated( which the portal handles) and I want to populate the non database bound fields with certain values.
Could any one help me out with this ..
nullI need to set value to one of the object attributes if that attribute is blank.This is some kind of a default value that you want, then? If so then just take care of that when you output it. Use <c:if>, and if the attribute is blank then output the default value, otherwise output the attribute.
Or have the servlet that created that request attribute take care of that requirement. -
Hi.,
I am using jdev 11.1.1.5
I had created GlHdEo and GLLnEO with corresponding VO . I had created a viewlink
GlHd.jrnlno = GlLn.jrnlNo and
GlHd.jrnltype = GlLn.jrnltype and
GlHd.jrnlSfx = GlLn.jrnlSfx
In UI I dragged and dropped GlHd as adf:forms and GlLn as adf:table.
GlHd.jrno as OutputText with label
I had dragged and dropped [save] button
public void cb7_actionListener(ActionEvent actionEvent) {
// Add event code here...
BindingContainer bindings1 = getBindings();
DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("GlJrnlHdView2Iterator");
Row glhdr = dciter1.getCurrentRow();
glhdr.setAttribute("GlJrnlNo",getit59Value());
DCIteratorBinding dciter = (DCIteratorBinding) bindings1.get ("GlmYearlyDocNosView1Iterator");
Integer value = Integer.valueOf(dciter.getCurrentRow().getAttribute("GydnDocNextNo").toString())+1;
dciter.getCurrentRow().setAttribute("GydnDocNextNo",value);
dciter.getDataControl().commitTransaction();
OperationBinding ob = bindings1.getOperationBinding("Commit");
Object result = ob.execute();
public String getit59Value(){
DCBindingContainer dcbindings = (DCBindingContainer)getBindings();
DCIteratorBinding dciterator = dcbindings.findIteratorBinding("GlmYearlyDocNosView1Iterator");
Row row= dciterator.getCurrentRow();
return (String)row.getAttribute("GydnDocNextNo");
}I am getting error as jrnlNo should be entered JrnlNO is a primary keyMy logic is explained below
public void cb7_actionListener(ActionEvent actionEvent) {
//In the following code i would set the value of GlHd.GlJrnlNo - Primary Key
BindingContainer bindings1 = getBindings();
DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("GlJrnlHdView2Iterator");
Row glhdr = dciter1.getCurrentRow();
glhdr.setAttribute("GlJrnlNo",getit59Value());
// In the following code i would increment the value of gydn.GydnDocNextNo
DCIteratorBinding dciter = (DCIteratorBinding) bindings1.get ("GlmYearlyDocNosView1Iterator");
Integer value = Integer.valueOf(dciter.getCurrentRow().getAttribute("GydnDocNextNo").toString())+1;
dciter.getCurrentRow().setAttribute("GydnDocNextNo",value);
dciter.getDataControl().commitTransaction(); //This commit is used to affect the changes in gydn
OperationBinding ob = bindings1.getOperationBinding("Commit"); //This commit is used for entire table that had been used in UI
Object result = ob.execute();
//This method is used to retrun the value of GydnDocNextNo
public String getit59Value(){
DCBindingContainer dcbindings = (DCBindingContainer)getBindings();
DCIteratorBinding dciterator = dcbindings.findIteratorBinding("GlmYearlyDocNosView1Iterator");
Row row= dciterator.getCurrentRow();
return (String)row.getAttribute("GydnDocNextNo");
}In this i am performing following operation
=>I am set the value of gydn.GydnDocNextNo to GlHd.GlJrnlNo
=>I am incrementing the value for gydn.GydnDocNextNo -
Setting the value of rich inputtext in jdeveloper 11g 11.1.2.3.0
Hi,
I am trying to set the value of input text in my .jspx page to the value of a command link. On the click of the link the value of the link needs to be displayed in the input text without having to type it.
I have created an action method for the command link where I get the value from the command link and set it in the input text. I see in my log it is getting the current row from the command link but nothing is being set in the input text. Following is my code for the command link action method:
This is where I am getting the value from the command link:
DCControlBinding cb;
cb = (DCControlBinding) bindings.get("ALL_DETAILS_ITEM");
System.out.println("cb " + cb);
Row currentRow;
currentRow = cb.getCurrentRow();
System.out.println("currentRow " + currentRow);
String EMAIL_ADDRESS = null;
if ((currentRow.getAttribute("EMAIL_ADDRESS"))!= null)
EMAIL_ADDRESS = (currentRow.getAttribute("EMAIL_ADDRESS")).toString();
System.out.println(" EMAIL_ADDRESS " + EMAIL_ADDRESS);
}This is where I am trying to set the input text value(P_EMAIL_ADDRESS) to the command link value(EMAIL_ADDRESS)
Map params = operationBinding.getParamsMap();
String P_EMAIL_ADDRESS = null;
if ((currentRow.getAttribute("P_EMAIL_ADDRESS"))== null)
currentRow.setAttribute("P_EMAIL_ADDRESS", EMAIL_ADDRESS );
System.out.println("P_EMAIL_ADDRESS " + P_EMAIL_ADDRESS);
params.put("P_EMAIL_ADDRESS", P_EMAIL_ADDRESS);
params.put("DISPLAY_TYPE", DISPLAY_TYPE);
Object result = operationBinding.execute();
}I also have set a partial trigger of the input text to the command link Id in the UI.
Any help would be appreciated.
Thanks in advance,
SalThis is overly complicated. you post the code of you command link?
should work without any java code by setting a property listener which the from value set to the value of the link and the to property to the of the input text.
Timo -
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
-
Driving me nuts - iTunes has encountered a problem and needs to close
Hi all, first time post'er and all of that. I have a problem that is driving me completely insane, and I don't have a solution or workaround. I have upgraded from 6x to 7.02 iTunes and I keep getting the following error, 'iTunes has encountered a pro
-
Pages not displaying correct in Firefox...gaps in tables
I am in need of some help. I have never run into this before. I just finished a site designing it the same way. So here is a link and I think that it is plane to see that the tables are not compressing and aligning correctly...what is going on. I hav
-
Scrolling page whilst using mark up tool ??
In acrobat 6 whilst I was using the polygon fill or rectangle tools, I could use my mouse wheel to scroll and zoom. In acrobat 9 pro, when i am using any tools, i can't scroll or zoom. I have to move the mouse to the edge of the page to scroll which
-
Saving chart data into a spreadshee​t and also displaying it onto a table
I am having a few different problems with this VI. My intentions are to display incoming data from the serial port, and view it on a chart as well as the table, then I want to save the data and the time values into a text or excel file. Receiving dat
-
I have a form that repeatedly reads the database for some manipulation. Most of the times when the display (In task manager) updates the memory usage of ifrun60.exe go up by a few Kilobytes/megabytes and never come down and again when I perform anoth