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!
Holli
Did you try giving it an id ?
<c:MyLogin id="loginScreen" /c>
So later you can do loginScreen .empNum.text = "my text"
Laurent,
Similar Messages
-
How to set the WebDynpro application title (IE windows title)?
Hello all,
I would like to set the WebDynpro application title according to the current transaction ID. This title is the IE windows title that is shown on the upper left-corner of the IE browser.
Rule: [Object Instance Information] u2013 [Application Title] u2013 [Browser Title]
For example: Trans. <No.> - <My App> - Windows Internet Explorer
I would like to set <No.> dynamically on run-time according to my current transaction number.
I have this piece of code that gets a reference to the application info:
data: lr_app_info TYPE REF TO if_wdr_rr_application.
lr_app_info ?= wdr_task=>application->application_info.
And there is lr_app_info->get_description() method to have the description of the application, but there is no set method.
The application description can be hardcoded in:
tx. SE80, opening the WebDynpro component, then accessing its WebDynpro application. In the properties tab, there is a description field. I need to append transaction ID to it.
Do you know any way to implement this? This issue is for WebDynpro ABAP.
Best regards and thanks in advance,
Fouad.Hello Satra,
Thanks for your reply. I already had a look into that thread, but my question is not related to the windows title of the WebDynpro component.
My question is related to the title of the Internet Explorer that we all see on the top left-corner. For WebDynpro , this is the WebDynpro application title. How can we change it?
I hope my question is clear now, and I wish someone can help me soon.
With kind regards,
Fouad. -
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 the value of a variable in a cluster in LabVIEW from C#?
Hi guys, I'm working on a small c# program, which using the interface provided by LabVIEW. And I know that, using lv.SetControlValue(name, value) can set a variable just on the front panel. But in my case, there're several clusters on the front panel. So it confused me how to set the variables in these clusters. For example there's a cluster named clusterA, and a variable in it named valueA, I've tried something like this:
lv.SetControlValue("clusterA.valueA",1);
but it totally not work. Anyone has some experience about this stuff? Thanks a lot!!
Solved!
Go to Solution.Hey guys, thanks a lot for all your reply. I just find a simply way to solve this porblem. For example, there a cluster named "ClusterA", and there are only two control values in it, which are: an int value named "IntA" (default value IntA = 10)and a string value named "StringA" (default value StringA = "abc"). In C# if you invoke the method:
var clusterA = (Array) vi.GetControlValue("ClusterA");
you will get an Array looks like: clusterA = {10, "abc"}; Then if you want to change IntA to 123, you just need to do:
clusterA.SetValue(123, 0); // 123 is the value, 0 is the index of IntA in the array clusterA, after this clusterA = {123, "abc"}
After this, you just need to give the array back to LabVIEW by using:
vi.SetControlValue("ClusterA", clusterA);
and now see the panel in you LabVIEW, the IntA is changed. -
In flex, How to set a value to one parameter, the parameter
defined in a cffunction in a cfc file, In the cffunction there are
much cfargument, I want set a value to one of them, such as the
cfc:
<cffunction access="remote" name="myShow" output="false"
returntype="struct">
<cfargument name="ID" type="numeric" default=0>
<cfargument name="GoodsID" type="string" default="">
<cfargument name="DestTime" type="string" default="">
<cfargument name="DestCount" type="numeric" default=1>
How I set a value to only parameter one of them , such as set
GoodsID when use mx:remoteObject.
Thanks for your helpGot maybe a solution for you, I have just tested it.
So, the idea is to use intermediate variables. Imagine Var1 and Var2 variables that you refresh with your more or less complicated queries. Then what you can do is to refresh your final variable Var3 with a query using your intermediate variables. Here is an example for Oracle:
select #Var1+#Var2 from dual
This way you can make a chain of dependent variables: Var3 is using Var2 and Var2 is using Var1.
Hope it helps.
Shamil -
How to set the default selection to "Select All" in a Multi valued parameter in SSRS 2008?
Hello Everyone,
How to set the default selection to "Select All" in a Multi valued parameter in SSRS 2008?
Regards
Gautam S
RegardsYou need to specify "Default Values" in the report parameter property. Choose similar option used in the "Available Values" option, this will allow the parameter to check "Select All".
Regards, RSingh -
How to set the Default values for Info Objects in Data Selection of InfoPac
Hi All,
Flat file Extracion:
How to set the Default values for Info Objects in Data Selection Tab for Info Package
ex: Fiscal Year Variant Info Object having values 'K4' 'Y2' etc in Flat file
Initially default value(not constant) for this info Object value should be 'K4' in Info Package
If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
Rgds,
CVHi,
suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
haritha -
How to set the value of process variables/payload using a managed bean?
Hello,
Someone can give me an example about how to set the values of a process payload in a managed bean?
thank you!Try this:
jsf page:
<af:selectOneChoice label="Select Suburb"
requiredMessageDetail="Select a suburb"
valueChangeListener="#{selectOneChoiceBean.onValueChanged}"
validator="#{selectOneChoiceBean.validate}"
unselectedLabel="None" autoSubmit="true"
binding="#{selectOneChoiceBean.selectOneChoice}"
value="#{selectOneChoiceBean.value}">
<f:selectItems value="#{selectOneChoiceBean.selectionList}"/>
</af:selectOneChoice>
backing bean:
public class SelectChoiceBean {
private List<SelectItem> selectionList;
private String value = "B";
private RichSelectOneChoice selectOneChoice;
public SelectChoiceBean() {
initSelectionList();
public void setSelectionList(List<SelectItem> selectionList) {
this.selectionList = selectionList;
public List<SelectItem> getSelectionList() {
return selectionList;
public void onValueChanged(ValueChangeEvent valueChangeEvent) {
System.out.println(valueChangeEvent.getNewValue());
// Add event code here...
public void validate(FacesContext facesContext, UIComponent uIComponent,
Object object) {
// Add event code here...
private void initSelectionList() {
selectionList = new ArrayList<SelectItem>();
selectionList.add(new SelectItem("A", "A label"));
selectionList.add(new SelectItem("B", "B label"));
selectionList.add(new SelectItem("C", "C label"));
public void setValue(String value) {
this.value = value;
public String getValue() {
return value;
public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
this.selectOneChoice = selectOneChoice;
public RichSelectOneChoice getSelectOneChoice() {
return 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 SelectOneChoice
Hi,
I need an help....
can anyone please tell me how to set the value in SelectOneChoice.
I want to set the value at index 3
i am trying selectOneChoice1.setvalue(new Integer(3)); but it is throwing an NullPointerException.
Thanks,
NehaHi,
is it ADF bound? If so then you set the default value to the list binding in the PageDef file. The value of the component must be bound to a method expression, which is why you see an exception. However, I think we need more information
Frank -
URM How to set default value in the "New Check-in" - "Folder" field
Hello everyone,
I'm trying to find out how to set the default value for the "folder" field in a check-in profile created using the Configuration Manager. If I browse to the folder in the "Browse Content -> Folders" menu and check-in a file inside the folder, it will fill this field automatically. I need to replicate this behavior using the "New Check-in" drop-down menu and selecting a profile, in other words, associate a Folder with a check-in profile.
I know it was possible to do so in previous versions using the folders_g component, but I'm unable to figure out how to accomplish it with the new FrameworkFolders component.
Any help is greatly appreciated.
Thank you.Hello,
It is working fine try this.
PARAMETERS :
y_p_list TYPE char32 AS LISTBOX VISIBLE LENGTH 22
MODIF ID rsg. .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR y_p_list.
MOVE: text-200 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-203 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-210 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-211 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-204 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-205 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-206 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-207 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-208 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FIELD'
dynpprog = sy-repid
stepl = 1
value = ' '
value_org = 'S'
display = ' '
TABLES
value_tab = y_i_listbox[]
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
REFRESH y_i_listbox. -
How to set default values on the screen painter parameters?
Hello ABAP Gurus,
I would just want to ask how to set default values on the screen painter parameters.
Thank you for your replies.Hi,
To set default values for screen painter parameters initialize the field names with default values in the PBO module....
say u have the field name as f_field1....
in the PBO of that screen initialize it....
f_field1 = '100' "here 100 is the default value.
<b>reward points if useful.</b>
regards,
Vinod Samuel. -
How to set the default context value for flexfield in OAFramework pages
Hi,
I have a page which contains a contexxt value field i.e Flexfields
To select the context value we have to select the value from drop down
So Here we want to display the context value immediately when the page is called
How to set the default valu in this case
Regards,
KrishnaYou can set the Attribute category view attribute to the Flexfield context value and call prepareforRendering in the flex bean. Check the dev guide for details.
Regards
Sumit -
How to set the default value of an item type DATE PICKER to the day of yest
Hi
How to set the default value of an item type DATE PICKER to the day of yesterday ?
Thank you very much !
Christian.Hi Christian,
Have a look at this thread Re: Default the Date Picker to Today
It covers this issue in detail.
Regards
Paul -
How to set the default value in dashboard prompt?
Hi there,
In my Dashboard prompt I'm getting values like:
Mar 2010
Apr 2010
May 2010
Jun 2010
How to set the default value to the current month (Jun 2010). I don't want to use "specific value". I want to use the "SQL Result" for populating the default value.
Appreciate your helphi,
you can create a Repository variable current_month with the expression as
select to_char(trunc(sysdate),'Mon')from dual
and use this in the prompt "Default to" Server variable and use this repository variable.
hope this helps.
cheers,
vineeth
Maybe you are looking for
-
Ideas for getting a nice water colour type of effect PE7
I wish to frame some pictures for a room where all colours are pastel and think a water colour treatment for the shots would look good. I know there are loads of effects but wonder if anyone would share their ways of getting a nice end result. My sho
-
Percentage in cross tab report
Hi My report look lkes id total percentage desc 1 2 3 total per d1 0 1 0 0 33% d2 1 1 0 2 66% d3 1 0 0 1 33% I insert cro
-
PDF printing with proxy server
Hello, I installed Apex 3.0.1 and configured it for pdf printing using OC4J and Apache FOP. The OC4J process is running on the same server as the database. I used localhost as hostname and 8888 as port. Everything works fine, however, when I specify
-
How to create a password with JTextField
Hi, I need to create a password field on the JTabbedPane. I can create a TextField and setEchoChar to make it a password field. However it is not working well with the rest of the JComponents. Can I do this on a JTextField? I could not find the funct
-
Javaw.exe throws Disk A: is not ready message
My application worked fine with JWS 1.0.1 until I started using JFileChooser in my application. When I am calling a constructor JFileChooser("C:/TEMP") JWS's javaw.exe throws the warning "Disk A is not ready. Retry, Abort, Ignore" Then if I press "Ig