Quering properties with dependant value

Hi,
I have 2 properties in KM which property B is dependant on property A.
for example:
Property A - Country
Property B - Cities
Allowed values are:
Germany - Walldorf, Berlin, Frankfurt, Hamburg
France - Paris, Nice, Bordeaux
(values were entered hard coded when properties were defined)
How do I get propery B's values by quering on property A by Java Code?
For example: for Germany I want to get Walldorf, Berlin, Frankfurt, Hamburg.
Thanks,
Omri

Solved it my on.
By querying on the 'additional_meta_tags' field I can get the 'dependOn' value and correct property.
Omri

Similar Messages

  • Creating a databound JSP pop-list (with dependent values)

    I was able to create a databound JSP pop-list from the "How To Create a Databound Pop-list with Oracle JDeveloper 10g" article. Where would I have to modify the code so that I can define a WHERE clause to the DepartmentView object so that only a subset of values are displayed? My goal is to try to create pop-lists so that the values of pop-list #2 is dependent on the current value in pop-list #1.

    You can create both static values and also
    values based on record group .
    I think you know how to create static values.
    (for static just give the values in "Element List" property of list item)
    Using Record group. see this example.
    Declare
    Rg_Id RecordGroup;
    Rg_Name varchar2(20) := 'Type';
    List_Id Item;
    Temp Number;
    Rowcount Number;
    Begin
    Rg_Id := Find_Group('Type');
    If Not Id_Null(Rg_Id) Then
    Delete_Group(Rg_Id);
    End If;
    Rg_Id := Create_Group_From_Query('Type','select empno,'
    | |'empno'
    | |' from emp ');
    List_Id := Find_Item('CTRL_BLOCK.IT_LIST');
    Temp := populate_Group(Rg_Id);
    Populate_List(List_Id,Rg_Id);
    End;
    In the selection you must give two columns one for label and another one for value.
    Try this and let me know if you have any problem.
    Regards,
    viji.
    null

  • Setting properties with parameter values in templates

    I'm using templates with JSF. I'd also like to acquire the value of a request parameter and pass it to a setter method in a ManagedBean so that I can derive the page body from it. My simplified template looks like this :
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:utils="http://java.sun.com/jsf/composite/utils" xmlns:f="http://java.sun.com/jsf/core">
    <!-- General Meta -->
    <f:metadata>
         <f:viewParam name="myparameter" value="#{myBean.someProperty}" />
    </f:metadata>
    <h:head>
              <title>No title here.</title>
    </h:head>
    <h:body>
         <div id="page">
              <div id="main">
                    <ui:insert name="body" />
              </div>
              <utils:navigation />
         </div>
    </h:body>
    </html>The "body", created with ui:composition, is using "myBean". But it doesn't matter because the "set" method isn't being called on the bean. Where should I put "f:viewParam" code
    to set the property of a ManagedBean if I'm using templates?
    Thank you in advance for any help.

    Problem solved.
    Found the solution to my general problem by making use of the Annotation "ManagedProperty". It only applies to request scope apparently but that is the scope where I need it.
    I found these two pages helpful.
    http://stackoverflow.com/questions/4888942/viewparam-vs-managedpropertyvalue-param-id
    http://download.oracle.com/javaee/6/api/javax/faces/bean/ManagedProperty.html

  • Dependent Values read only or all possible values

    Hello
    I have read the following instructions.
    [How to Configure Predefined Properties with Dependent Values (NW7.0)]|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30b1ec90-0201-0010-6192-d3de721f8ae4?quicklink=index&overridelayout=true]
    I need this scenario in the Portal search.
    So my question is:
    Is it possible, if Country is empty, that the field City is read only.
    In the How to guide you can see , if no city is selected the property city is a text field(not Dropdown) and you can enter a sting.
    Or it is possible, if no country is selected that the field city shows all possible cities, not restricted by countries.
    For example no country is selected and the field city shows all cities.
    or no country is selected and the field city is read only.
    The html code of dropdown list country is
    <option value="&lt;empty&gt;"><option value="Germany">Germany<option value="France">France
    Value of no selection
    &lt;empty&gt = <empty>
    If no country is selected the selected value is &lt;empty&gt or <empty>.
    I tried this:
    "dependon=Country,*=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    "dependon=Country,<empty>=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    "dependon=Country,&lt;empty&gt=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    without success
    Can some one help?
    Edited by: Dirk Wiegele on Jan 23, 2011 12:21 PM
    Edited by: Dirk Wiegele on Jan 23, 2011 12:22 PM

    Hi
    Yes, it is possible to generate an excel file in SAP. You can use any of the following FM's for the same:
    1. EXCEL_OLE_STANDARD_DAT
    2. GUI_DOWNLOAD
    3. XXL_FULL_API
    Hope it will help.
    Regards,
    Nikita

  • Creating dependent values in XML forms

    Hello,
    I need to create subcategory that depends on the chosen category.
    So, I have created properties with dependent values and it work just the way I need, but my problem is that I need to use them in XML form.
    Does anybody have any idea how to build an XML form with two fields and the values of the second field will depend on the chosen value of the first one?
    Hopefully somebody can give me an advice pretty soon, because I need to solve the problem urgently.
    Thanks in advance,
    Inna

    Hi Inna,
    Unfortunately dependent properties are not supported by XMLForms.
    Patricio.

  • Parameterized queries running much slower than ones with hardcoded values

    Very often there is a huge performance difference when using parameters in a query, compared to running the same code after replacing the parameters with hardcoded values: the parameterized version of the code runs much slower!
    The case is not parameter sniffing as it is not a (compiled) stored proc, but code executed directly from the editor and the performance issue has been observed in different versions of SQL Server (2000 and 2005).
    How is this explained and how can the parameterized queries have similar performance with the hardcoded ones?
    Also, why does this happen in some cases and not always?
    Finally, the same is sometimes the case with stored procs: a very slow running proc speeds up tremendously when running its code directly, instead of calling the procedure --and even faster, according to the previous, when its parameters are replaced with
    hardcoded values 

    >>The case is not parameter sniffing as it is not a (compiled) stored proc, but code executed >>>directly
    from the editor ?>>>and the performance issue has been observed in different >>>versions of SQL Server (2000 and 2005).
    Something like below?
    --SQL Server creates 3 execution plan rather only one
    DBCC FREEPROCCACHE
    GO
    SELECT *
    FROM Sales.SalesOrderHeader
    WHERE SalesOrderID = 56000
    GO
    SELECT * FROM
    AdventureWorks.Sales.SalesOrderHeader WHERE
    SalesOrderID = 56001
    GO
    declare @i int
    set @i = 56004
    SELECT *
    FROM Sales.SalesOrderHeader
    WHERE SalesOrderID = @i
    GO
    select  stats.execution_count AS exec_count, 
    p.size_in_bytes as [size], 
    [sql].[text] as [plan_text]
    from sys.dm_exec_cached_plans p
    outer apply sys.dm_exec_sql_text (p.plan_handle) sql
    join sys.dm_exec_query_stats stats ON stats.plan_handle = p.plan_handle
    GO
    ----This time only (we get parameterization)
    DBCC FREEPROCCACHE
    GO
    EXEC sp_executesql N'SELECT  SUM(LineTotal) AS LineTotal
    FROM Sales.SalesOrderHeader H
    JOIN Sales.SalesOrderDetail D ON D.SalesOrderID = H.SalesOrderID
    WHERE H.SalesOrderID = @SalesOrderID', N'@SalesOrderID INT', 56000
    GO
    EXEC sp_executesql N'SELECT  SUM(LineTotal) AS LineTotal
    FROM Sales.SalesOrderHeader H
    JOIN Sales.SalesOrderDetail D ON D.SalesOrderID = H.SalesOrderID
    WHERE H.SalesOrderID = @SalesOrderID', N'@SalesOrderID INT', 56005
    GO
    select  stats.execution_count AS exec_count, 
    LEFT([sql].[text], 80) as [plan_text]
    from sys.dm_exec_cached_plans p
    outer apply sys.dm_exec_sql_text (p.plan_handle) sql
    join sys.dm_exec_query_stats stats ON stats.plan_handle = p.plan_handle
    GO
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Issue with filtering values in Web Template

    I am facing a problem with filtering values in Web Template.
    I have two queries based on two different data providers. One query is getting data from an Info set and the other from a Remote Cube. I have a single navigational block to filter values for both these queries but the change gets reflected only on the variable of one query. The other reflects no change and shows all the values irrespective of the filter condition.
    I have tried the option of setting in the properties of the navigational block, ‘affected data providers’ as both your data providers.But no effect.
    Can a single navigational block be used to filter values on 2 queries which are built on different data providers? If yes, can someone please tell me how it is possible?
    Kindly let me know how can I make the changes appear in both the queries?I am using SAP BI 3.5.
    Thanks & Regards,
    Suchitra

    Hi Peng,
    Frank also published a fix for 11g R1: http://www.oracle.com/technology/products/jdev/tips/fnimphius/rc_expand_menu_on_mouse_over.html
    function showMenu(event){
       var adfRichMenu = event.getSource();
       adfRichMenu.getPeer().show(null,true);
    }This should work.
    Luc Bors

  • Colum Chart - (3-D) Stacked : compatible with negative values ?!

    Hi,
    In our VC model we are showing a Column Chart - 3-D Stacked.
    On our development server everything works fine. (the query gives positive values for the KPI's only btw)
    In production the bar chart is not being displayed. The bar remains on value 0. I'm quite sure this is related to the fact that we have some negative values on production for some of our keyfigures that we need in the chart. Many others are positive. This is not compatible with stacked charts I think, but.....on our quality environment the chart works fine with negative values for the same KPI's as well. The negative values are more or less ignored in the graph on quality.
    So my question is : Is it correct that negative values are officialy not compatible with VC stacked charts ? Why is it then working (ignoring the negative values) in some circumstances and other circumstances not ? The only difference between quality and production is that the KPI values are different but the same KPI's are negative anyway on these environments. The models (queries and VC model) were transported from dev->QA and to production.
    thanks for any feedback.

    Hi Todd,
    Depending how you look at costs, it's not expensive.
    A single developer license of Anychart 5 costs USD 499.00 - 15% if you use the APEX15 promotion code.
    If you spend a couple of days trying to integrate with something else you easily went over that amount.
    So really, it depends in which perspective you look at it. The workaround with Excel, is that really an option? How long would it take for every person wanting to see that screen? How long would it take before you get to $440?
    Anyway if you wait till next year, Anychart 5 is included in APEX 4.0 and you have it out of the box.
    Just my thoughts,
    Dimitri

  • Authorization variable not filled with authorization values

    Hello All
    I post a similar message earlier this week, I thought that my issue was solved, but it was not.
    I've got a workbook with 4 differents queries.
    There as an authorizations variable in each query. This variable properties is as follows :
    **General tab**
    Type of variable : characteristic value
    Processing type : authorization
    Characteristic : company code
    **Details**
    Variable represents : selection options
    Variable is : optional
    Variable is ready for input : yes
    I've followed recommandations from OSS notes 976680
    My issue is : if I run each query individually, variable is filled with authorized values
    If I run the workbook, variable is not filled with authorized value, so when end user run the workbook, BW consider that end user wants to see all data and get "No authorization".
    I don't understand why variable within the workbook doesn't show the authorized values and why the queries do.
    Any suggestion about this issue ????
    Thanks
    Catherine

    Hi
    thanks for replying
    I ran the query with UserID from RSECADMIN and I could open the query. But if I want to select 0profit_ctr I get this error No authorization to characteristic values.
    I  checked the log and this is the message.
    Value Authorization
    InfoProvider FIGL_MP1
    Value Authorization for Characteristic 0PROFIT_CTR
    Building the Buffer...
    Building the Buffer...
    No Authorization for Values
    thanks

  • How Can I replace newScale Text Strings with Custom Values?

    How Can I replace newScale Text Strings with Custom Values?
    How can I replace newScale text strings with custom values?
    All  newScale text is customizable. Follow the procedure below to change the  value of any text string that appears in RequestCenter online pages.
    Procedure
    1. Find out the String ID of the text string you would like to overwrite by turning on the String ID display:
    a) Navigate to the RequestCenter.ear/config directory.
    b) Open the newscale.properties file and add the following name-value pair at the end of the file:res.format=2
    c) Save the file.
    d) Repeat steps b and c for the RmiConfig.prop and RequestCenter.prop files.
    e) Stop and restart the RequestCenter service.
    f) Log  in to RequestCenter and browse to the page that has the text you want  to overwrite. In front of the text you will now see the String ID.
    g) Note down the String ID's you want to change.
    2. Navigate to the directory: /RequestCenter.ear/RequestCenter.war/WEB-INF/classes/com/newscale/bfw.
    3. Create the following sub-directory: res/resources
    4. Create the following empty text files in the directory you just created:
    RequestCenter_0.properties
    RequestCenter_1.properties
    RequestCenter_2.properties
    RequestCenter_3.properties
    RequestCenter_4.properties
    RequestCenter_5.properties
    RequestCenter_6.properties
    RequestCenter_7.properties
    5. Add the custom text strings to the appropriate  RequestCenter_<Number>.properties file in the following manner  (name-value pair) StringID=YourCustomTextString
    Example: The StringID for "Available Work" in ServiceManager is 699.
    If you wanted to change "Available Work" to "General Inbox", you  would add the following line to the RequestCenter_0.properties file
         699=General Inbox
    Strings are divided into the following files, based on their numeric ID:
    Strings are divided into the following files, based on their numeric ID:
    String ID  File Name
    0 to 999 -> RequestCenter_0.properties
    1000 to 1999 -> RequestCenter_1.properties
    2000 to 2999 -> RequestCenter_2.properties
    3000 to 3999 -> RequestCenter_3.properties
    4000 to 4999 -> RequestCenter_4.properties
    5000 to 5999 -> RequestCenter_5.properties
    6000 to 6999 -> RequestCenter_6.properties
    7000 to 7999 -> RequestCenter_7.properties
    6. Turn off the String ID display by removing (or commenting out) the line "res.format=2" from the newscale.properties, RequestCenter.prop and RmiConfig.prop files
    7. Restart RequestCenter.
    Your customized text should be displayed.

    I've recently come across this information and it was very helpful in changing some of the inline text.
    However, one place that seemed out of reach with this method was the three main buttons on an "Order" page.  Specifically the "Add & Review Order" button was confusing some of our users.
    Through the use of JavaScript we were able to modify the label of this button.  We placed JS in the footer.html file that changes the value of the butt

  • How to preset fields in TA BP with default values

    Hi!
    I want to fill few fields in transaction BP with default values.
    This should be if there`s a new business partner to insert.
    If i can do this depending on the selected role it was the best
    First i thought on SPA/GPA-parameters ... but then i can`t do it in depence on the selected role.
    In customizing i can tell only if a field should be displayed or not, for input or not, ... but no values to insert.
    Is here anybody with a good idea for me?
    Thanks a lot in advance.
    Best regards,
    Ingo
    Edited by: Ingo Schmökel on Jul 1, 2008 7:20 PM

    Hi,
    There is one possibility which requires an enhancement of the
    BDT event ISDAT and a call to the function module
    BUP_BUPA_FIELDVALUES_SET. This means that an ISDAT function module needs to be written (transaction BUS7) which calls the function module BUP_BUPA_FIELDVALUES_SET with the needed values that are to be defaulted. You can read the role value using BUS_PARAMETERS_ISSTA_GET (T_RLTYP).The fields which are possible can be found in the DDIC structure BUSDEFAULT. However this is limited only to the fields inside this structure.
    Thanks and warm regards,
    Smita.

  • How to preset fields in a transaction BP with default values

    Hi!
    I want to fill few fields in transaction BP with default values.
    This should be if there`s a new business partner to insert.
    If i can do this depending on the selected role it was the best
    First i thought on SPA/GPA-parameters ... but then i can`t do it in depence on the selected role.
    In customizing i can tell only if a field should be displayed or not, for input or not, ... but no values to insert.
    Is here anybody with a good idea for me?
    I`ve posted my question first in crm-section but i think here it`s better
    Thanks a lot in advance.
    Best regards,
    Ingo

    Hi,
    There is one possibility which requires an enhancement of the
    BDT event ISDAT and a call to the function module
    BUP_BUPA_FIELDVALUES_SET. This means that an ISDAT function module needs to be written (transaction BUS7) which calls the function module BUP_BUPA_FIELDVALUES_SET with the needed values that are to be defaulted. You can read the role value using BUS_PARAMETERS_ISSTA_GET (T_RLTYP).The fields which are possible can be found in the DDIC structure BUSDEFAULT. However this is limited only to the fields inside this structure.
    Thanks and warm regards,
    Smita.

  • Mandatory fields on the same page with dependent LOVs

    Hi,
    I am working on an ADF-BC application using JDeveloper 10.1.3.4
    I have an ADF Creation form with dependent LOVs and while implementing dependent LOVs we set the autoSubmit property of the selectOneChoiceListBox as true.
    If I have some mandatory fields on the same page then because of the autoSubmit property set as true whenever I select a value in the list the page gets submitted and the mandatory fields give an error that the values are required therefore I had to remove the mandatory fields.
    I tried using f:subview but even that dint serve the purpose because what I want is something like partialSubmit so that my mandatory fields do no give an error when I select a value in the list.
    Can somebody help me on this, how to have a dependent list and mandatory fields on the same page.
    P.S: It is very crucial for my application
    Thanks,
    Raksha

    Hello,
    This bug has been around since 10.1.3, its even still present in Trinidad and now in 11.
    One of the ways to avoid is to make your fields use:
    showRequired="true"instead of
    required="true"I have not found a decent way to avoid this in general.
    My idea was that this shiould be possible with a phaselistener and determine if this is a partial page event instead of a normal submit, but this didnt work.
    -Anton

  • Issue with variable values while adding report to Bookmarks/Favorites

    Hello All,
    I am able to save the reports from my portal as bookmarks with the appropiate navigation state & variable values for reports which do not have a mandatory value variable with no default value. For all other queries like queries with no mandatory variables or queries containing mandatory variables with default values, this is working fine. Any inputs is appreciated. We are in BI7.0 with SP12.
    Thanks,
    Danny

    What's your question, because from your statement, it seems like everything is fine ??
    Cheers,
    Andrew

  • Quering Problem With Int

    my jsp file is :
    <jsp:useBean id="user" class="com.mycompany.DelData" scope="page"/>
    <HTML>
    <BODY>
    <b>
    Your Data Deleted<BR>
    <% user.del(); %>
    </BODY>
    </HTML> And the DelData.java file is:
    package com.mycompany;
    import java.sql.*;
    public class DelData {
    public void del() {
    try{
    Class.forName("oracle.jdbc.OracleDriver");
    Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@.......:o9ir2","user1", "user1");
    Statement stmt = conn.createStatement();
    PreparedStatement p_stmt = null;
    int num = 1010;
    p_stmt = conn.prepareStatement("delete from trainee where univ_reg = 1011");
    int rs = p_stmt.executeUpdate();
    p_stmt.close();
    conn.close();
    } catch (Exception e) {
    System.err.println("Got an exception! " + e);
    System.err.println(e.getMessage());
    } I am able to delete string value but not able to delete integer values
    also while quering if i use string as a condition it executing but not in the case of int.
    I had also try this with PreparedStatement But Same result.
    Help Me !!!
    Its working with string values but not with integer values

    int num = 1010;
    p_stmt = conn.prepareStatement("delete from trainee where univ_reg =?);
    p_stmt.setInt(1,num);
    int updateCount = p_stmt.executeUpdate();

Maybe you are looking for

  • HOW TO REINSTAL THE OS SO YOUR AUDIGY 2 WO

    / Save all your settings: Start/All Programs/Accessories/System Tools/Files and Setting Transfer Wizard 2/ Ensure BIOS is correct (This is based on an Intel board but other boards have similar features and commands) a/ Enter BIOS setup by repeatedly

  • Acrobat 11.0.5 PDF Maker does not save attachments in Outlook 2013

    I had lots of problems getting PDFMaker to work in Outlook 2013.  Finally with 11.0.5 ver it appears to work. Unfortunately....when saving attachments it does Not  save the attachments. This is a very serious problem as I am dependent on archiving em

  • Can't select file names in list view

    System: Mac Pro 2.93 Quad-Core, 6GB RAM, 10.6.2 I updated from 10.6.1 to 10.6.2 using software update AND from 10.6 to 10.6.2 doing a clean install. Both times I had problems with the finder: first, the icons in the sidebar turned into "page" icons (

  • Styling image that displays after clicking thumb ?

    Hello, Below is a snippet from your average list of thumbnails that lead to a full sized image when clicked. <ul>  <li>    <a href="fullsizeimage.jpg"><img src="thumbnail.jpg" /></a>  </li></ul> The full sized image of course opens "stand-alone" in a

  • Printing a list of keywords

    Is there anyway to generate and print a list of keywords from Lightroom - not as in information on a contact sheet - just a simple list of the keywords created. Thanks Vicki