How to set initial value for a dropdown box?
Hi,
Within Netweaver 2004S (BI 7.0) we use integrated planning. In one of our applications we want to use a dropdown box (created with the WAD) to make a selection possible for a characteristic.
We set up a pre-query to fill the dropdown box (via data binding CHARACTERISTIC_SELECTION) with the proper values. This works fine.
We pass on the choosen entry (via command SET_VARIABLES_STATE) to a second variable that is used in another query. This command is triggered after the user makes a selection in the dropdown box. Also this works fine. After selection of one entry, the output of the second query is limited.
We have the following problem: the first time a blank selection entry is added to the dropdownbox and that no values are passed on to the second query. Because it seems that the user first must choose an entry.
What we would like to do is that one of the found values of the pre-query is automatically selected in the dropdown box and passed on to the second variable (to limit the second query).
I give you an example:
The first query delivers value A, B, and C for the characteristic of the dropdown box.
The first time the dropdown box showns an empty entry, and three additional entries A, B and C. The second query shows all results, because the second variable doesn't receive any value via the command SET_VARIABLES_STATE. The command is not yet triggered.
When you select A, B or C, the command is triggered and the second query shows only results for the choosen entry (this is correct). Now the empty entry has disappeared from the dropdown box. Only the entries A, B and C are left.
Is it possible to set up the dropdown box on such a way (or add some script coding around it) that in the initial show for the dropdown box one of the entries is choosen automatically, so that the empty line is not part of the value set of the dropdown box and that the command connected to the dropdown box (in our case the SET_VARIABLES_STATE) is carried out automatically?
Please, who can help us with this?
Kind regards and thanks in advance,
Marcel.
Hi,
In BW 3.5,say you want to set default for calmonth.
In order to avoid the ALL option from appearing in the dropdown box,
filter infobject 0CALMONTH for DP1 by any valid value.
In the object Data_provider include the lines in Bold:
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="SET_DATA_PROVIDER"/>
<param name="NAME" value="DP1"/>
<param name="QUERY" value="WORKSHOP_CALMONTH_DROPDOWN"/>
<param name="INFOCUBE" value="0D_SD_C03"/>
<<b>param name="FILTER_IOBJNM" value="0CALMONTH"/>
<param name="FILTER_VALUE" value="200401"/></b>
DATA_PROVIDER: DP1
</object>
Hope this helps.
Anu.
Similar Messages
-
Initial value for a dropdown box
Hello all,
I have created a web template in the WAD (BI 70) with a dropdown box on a characteristic. A chart is displayed based on the query result. My query is built on an infoset.
My problem is to populate the filter with an initial value and still let users change the characteristic value in the dropdown (all values for the characteristic is not acceptable in the context) . Also, I don't want the variable screen to show up.
What is the best approach to achieve this?
Thanks,
JLIn Query Designer you put in your default value in the area to the right in the first pane..
If you put it on the left hand side, the filter will not be changeable.
Hope this helps.
Can give more presise answer if you need it. -
How to set default value for drop down box in jsf
Hi,
Can anyone help me to set the default value in drop down box using <af:selectManyChoice> ?
As I know there is an unselectedLabel attribute in <af:selectOneChoice> but not valid attribute for <af:selectManyChoice>.
Any help must be appreciated.
Regards,
AKHi Frank
My entity type is a List in managed bean. I have set the entityType in the constructor of the managed bean. I have attached my code here.
TPSearchCriteriaBean.java****************************************
/** Constructor */
public TPSearchCriteriaBean() {
super();
entityType=new ArrayList<String>();
entityType.add(UIConstants.LIST_ITEM_ALL);
authorizationType=new ArrayList<String>();
authorizationType.add(UIConstants.LIST_ITEM_ALL);
companyType=new ArrayList<String>();
companyType.add(UIConstants.LIST_ITEM_ALL);
mrgStatus=new ArrayList<String>();
mrgStatus.add(UIConstants.LIST_ITEM_ALL);
legalStatus=new ArrayList<String>();
setEntityType(entityType);
setAuthorizationType(authorizationType);
setCompanyType(companyType);
setMrgStatus(mrgStatus);
country = "0";
//address = new AddressBean();
UIConstants.java***********************************************************
public static final String LIST_ITEM_DEFAULT = "select";
public static final String LIST_ITEM_ALL = "0";
LOVManager.java*****************************************************************
public List<SelectItem> getLovList(String lovType, boolean requiredOption_SELECT, boolean requiredOption_ALL)
log.debug("LOV loading for " + lovType + ": START");
List<SelectItem> lovList = new ArrayList<SelectItem>();
//check validity of lov loading request
validLov:
for (int i = 0; i < lovTypeArray.length; i++)
if (lovTypeArray.equals(lovType))
break validLov;
log.debug("ERROR: LOV Type not valid.");
return lovList;
//First select is replaced by ALL here
//<-- Select --> should be an option
if (requiredOption_SELECT)
lovList.add(new SelectItem(UIConstants.LIST_ITEM_DEFAULT, "--Select--"));
LOVDao dao = new LOVDao();
dao.loadLOVValues(lovType, lovList);
log.debug("LOV Loading successful!");
//<ALL> should be an option
if (requiredOption_ALL)
lovList.add(new SelectItem( UIConstants.LIST_ITEM_ALL, "ALL"));
return lovList;
Kindly help me.
Regards,
AK -
How to set default values for boolean columns
I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
I've tried to set default value at column level:
<Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
<Default>TRUE</Default>
</Field>
and at content type level:
<FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
But in any case, when i create a new item with this content type, default value is applied.
Can anyone tell how to set default values for boolean columns?
Thanks in advance,
Regards,
SergioIn the field definition you can set
<Default>1</Default>
or
<Default>0</Default>
How to set the default value Null? -
How to set defalut values for html:radio
Hi all,
can you please tell me how to set defalut values for radio buttons (html:radio) in struts?You may have more luck if you ask this Struts specific question in a forum devoted to Struts at their own homepage over there at apache.org. It may also help a lot to read its documentation and tutorials. I would really be surprised if they didn't even document such a trivial thing.
-
How to Set default value for taxonomywebtagging control with terms and nested terms
Hi,
I have created taxonomy control in custom aspx page and I am able to select terms but I am trying to setup default value to that control.
Can anybody let me know how to set the default value for TaxonomyWebTagging control in custom.aspx page with nested terms?
Any help would be greatly apprecited.
Control code in aspx page:
<td>
<asp:Label runat="server" ID="lblLanguages">Field A: </asp:Label><asp:Label runat="server" ID="rfvlblLanguages" CssClass="errorMsg" ForeColor="Red">*</asp:Label>
</td>
<td>
<Taxonomy:TaxonomyWebTaggingControl ID="term" Width="385px" runat="server" /></td>Mapping metedata code:TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
//Set the Business Unit Field
SPSite site = SPContext.Current.Web.Site;
TermStore termStore = session.TermStores["Managed Metadata Service"];
Group group = termStore.Groups["GROUPName"];
TermSet termSet = group.TermSets["TERMSETNAME"];
Term term = termSet.Terms["TermA"];
Guid termGuid = term.Id;
term.SspId.Add(termStore.Id);
term.TermSetId.Add(termSet.Id);
term.AllowFillIn = true;
term.AnchorId = countryGuid;
term.IsMulti = true;
Thank you.
AA.Hi,
According to your description, you want to set default value for TaxonomyWebTaggingControl.
I have a test in my environment. It could be achieved by setting the Text Property of TaxonomyWebTaggingControl.
Here is the code snippet:
TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
SPSite site = SPContext.Current.Web.Site;
TermStore termStore = session.TermStores["Managed Metadata Service"];
Group group = termStore.Groups["GroupA"];
TermSet termSet = group.TermSets["A"];
Term term = termSet.Terms["A1"];
TaxonomyWebTaggingControl1.SspId.Add(termStore.Id);
TaxonomyWebTaggingControl1.SSPList = termStore.Id.ToString();
TaxonomyWebTaggingControl1.TermSetId.Add(termSet.Id);
TaxonomyWebTaggingControl1.TermSetList = termSet.Id.ToString();
TaxonomyWebTaggingControl1.AllowFillIn = true;
TaxonomyWebTaggingControl1.IsAddTerms = true;
TaxonomyWebTaggingControl1.IsMulti = false;
TaxonomyWebTaggingControl1.Text = string.Format("{0}|{1}", term.Name, term.Id.ToString());
Here is a detailed article for your reference:
http://blog.bugrapostaci.com/2010/09/23/taxonomywebtaggingcontrol-sharepoint/
Feel free to Reply the test result.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support -
Set initial value for numerical control
Hello LV users,
I have a VI that is used to initialize some experimental equiptment. It passes on a cluster of ten or so numerical control DBL integers as parameters. Everytime I open the programe the values are reset back to zero and I have to enter the values back in. Is there any way to set default values for the controls so I do not have to change them everytime I open the program.
Thanks
Solved!
Go to Solution.Wowden,
If you want to set default values for multiple numeric control's in your cluster in one go,
-Type in the desired default values
- Right click on your cluster, browse to 'data operations'
- Choose 'Make current values default.
Similarly, if you need to set defaults for multiple clusters or multiple controls on your front panel,
- Choose 'Edit' in the menu
- Choose "make current values default' (This sets defaults for all controls/constants etc. in one go)
RaVI -
Problem setting initial value for LOV
Hello, everyone. This seems like it should be simple, but it's giving me lots of problems. I am trying to create my first LOV. I have a messageLovInput item called PFedFilingStatus. From the Property Inspector, I can set an Initial Value of "02", which displays when I run the page, and lets me change it and validate it using the associated LOV.
What I would rather do is set the initial value programmatically, but here are my problems:
If I set the value like this:
OAMessageLovInputBean lovText = (OAMessageLovInputBean)pageLayout.findIndexedChildRecursive("PFedFilingStatus");
lovText.setText("02");
then the field displays properly at run time, but can't be changed. The LOV runs, but any value I select flips back to "02"
If I set the value like this:
lovText.setDefaultValue("02");
then nothing seems to happen at run time. The value is not displayed at all.
Can anyone tell me what I am doing wrong? Thanks for your help.
--DaveYes, that helps a bunch. Now can you tell me where that is set?
Thanks so much.
--Dave -
How to set default value for vc2_255_arr in plsql parameter directive?
Hi,
I would like to set a default values for a plsql parameter which is of vc2_255_arr type. How to do that?
Below is the example from PL/SQL Server Page.
+" To set a default value, so that the parameter becomes optional, include a default="expression" attribute in the directive. The values for this attribute are substituted directly into a PL/SQL statement, so any strings must be single-quoted, and you can use special values such as null, as in the following example:+
+<%@ plsql parameter="p_last_name" default="null" %> "+
My plsql parameter is p_arr which is of "TYPE vc2_255_arr IS TABLE OF VARCHAR2(255) INDEX BY BINARY_INTEGER"
*<%@ plsql parameter="p_arr" type="PMP_LIB.VC2_255_ARR" %>*
Thanks in advance!
kwongMy plsql parameter is p_arr which is of "TYPE vc2_255_arr IS TABLE OF VARCHAR2(255) INDEX BY BINARY_INTEGER"You need to declare it in a package specification and initialize in the package body:
SQL> create or replace package pmp_lib
as
type vc2_255_arr is table of varchar2 (255)
index by binary_integer;
vc2_255_arr_default vc2_255_arr;
end pmp_lib;
Package created.
SQL> create or replace package body pmp_lib
as
begin
vc2_255_arr_default (1) := 'abc';
vc2_255_arr_default (2) := 'def';
end pmp_lib;
Package body created.
SQL> declare
arr pmp_lib.vc2_255_arr := pmp_lib.vc2_255_arr_default;
begin
for i in 1 .. arr.count
loop
dbms_output.put_line (arr (i));
end loop;
end;
abc
def
PL/SQL procedure successfully completed.so in your case it would probably be sth like (assuming pmp_lib is a package):
<%@ plsql parameter="p_arr" type="PMP_LIB.VC2_255_ARR" default = "PMP_LIB.vc2_255_arr_default" %> -
How to set default value for html:file in struts
hi
i am working on an application using struts situation is i am using the
<html:file property="" /> to allow the user to upload file. but i need that a default file should be set so that even if the user donot click browse ie the user wish to upload that default file the default file get uploaded on page submition. Is it possible to set any default value for html:file ...if yes plz provide any suggestion or links how to achieve this. thanks in advancewww.google.com?q=STRUTS+DOCUMENTATION
-
How to set the value for Power Cost in SCCM reports in Euro's?
Hello,
I have found out how to change the value of the 'cost' of the KWh for these reports (reporting) . But ther original settings where displayed and set in USD($) with some other values. I have of course changed the USD to EUR (€) in my case, but my question
is: how do i know what I have to fill in in the field : costOfKwh, according my manager for my organisation it is in euro's 5,9 euroct/Kwh
Do I have to fill in 5,9 or 0,59 or 0,059 ???
Then also ther are some other values set in the original reports, like :
KwhConsumptionDesktopComputerOn value = 0,07
KwhConsumptionLaptopComputerOn value = 0,02
KwhConsumptionDesktopMonitorOn value = 0,03
Do i have to leave this settings ?Yes, I know this is an old post, I’m just trying to clean them up.
The default of 0.09 is 9 cents/ KwH so I’m assume that 5.9 cent (euro) so that you bet 0.059
BTW if you have edit the report to change $ to € then you can also set eh default value to whatever the current power cost is too.
http://www.enhansoft.com/ -
CRMD_ORDER: how to set default values for Requester and Change Manager
Hello Folks,
how do I set default values in TA crmd_order?
I drew my organizational hierarchy using TAs bp and ppoma_crm.
When a new Change Request (e. g. SDHF) is created, I want the four roles (Requester, Change Manager, IT Operator and Developer) to be set automatically, not manually.
Both Requester (= Key User) and Change Manager are derivable. I did not find anything in SPRO neither in the OSS neither here.
Points will be rewarded as a matter of course!
Thanx in advance!Hi Dirk,
look for Define Access Sequence & Define Partner Determination Procedure in SPRO and read the IMG Activity Documentation. You can find it in the Service Desk config, but it works for the other transaction types too.
Basically, you create Access Sequences where you tell the Partner Determination Procedure where to look for the values for the Partner Function fields.
The Access Sequence can use lots of sources for the information, including your org structure.
regards,
Jason -
How to set default values for inputs?
I have several inputs which are always initialized with 0 when I start the VI. I'd like save own default values for them. I've already tried just setting the numbers and saving the VI but it did not work.
If you want to make any data in any controls, Arrays you can right click on it select >Data operations>Make current values default or you can select EDIT in tool bar, click on Make current values Default.
First, enter the data you want in the control or array and then follow the things Geeta said.
Post if any other help required.
Message Edited by mathan on 12-05-2008 12:07 AM -
How to set coumn value for an ADF Table?
Hi,
I am currently using Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. I have an ADF table in which I have a column created using View Object as Select one choice. I want to set the value(first time as selected one) in it which is coming from my second View Object. Can anyone please provide me sample code for the same?
Thanks,
VikHi,
I have no idea what you are asking for. Did you try model driven List-of-Values defined for the attribute you want to update using a select one choice ? See this document http://www.oracle.com/technetwork/developer-tools/adf/learnmore/dec2010-otn-harvest-199274.pdf and look for how to create dependent list of values. Just follow the first part of it that explains how to create model driven LOV
Frank -
How to set threshold value for single tablespace in grid control 11g
Hi,
I want to set the threshold value for a single tablespace in grid control 11g,
please provide me a navigation path.Sandy wrote:
Can you please provide me the full navigation path?go to Targets --> Databases
Select the Database you like to set this alert for
Select link Metrics and Policy Settings
Maybe you are looking for
-
[SOLVED] upgraded to Systemd, BCM4312 wireless no longer working
Hello, I just finished upgrading my netbook to Systemd, and to my dismay the wireless stopped working. lspci -vnn | grep 14e4 reveals that I have a Broadcom BCM4312 LP-PHY rev01. I believe I was using the Linux kernel driver before with no issues, bu
-
Need help placing people / objects into another photo ...realistically
Hi, I've been a Photoshop user for many years now and have adopted CS4 when it initially came available. My photoshop skills are to a good standard however one thing I always find difficult is taking a selection from one photo (usually a person / obj
-
I use the BC4J technology and I have the following problem: I deploy a project and I declare the classpath in the Jserv properties file. Everything works perferctly. But when I deploy another application which has a different connection to the databa
-
Is it possible if i want to refund my ipad?
Does anyone know what should i do? I've bought it through online and i've used it about 20days already.
-
is anyone els haveing this problem?