Using dimension properties in LOOKUP

Hi,
I'm trying to use dimension properties in a LOOKUP, but when I execute the script the log tells me that COMPANY, SALESORG, PRODUCT and TRANSCURRENCY is not defined and therefore create a lookup on all members.
THe usage of properties in LOOKUP is described in the documentation, but somehow it doesn't seem to work for me. Can anyone help me?
*LOOKUP ACTIVITYPLAN
*DIM FCIC:ACCOUNT= "FULLCOST"
*DIM FCIC:PARTNER="I_NONE"
*DIM FCIC:COMPANY=PARTNER.ENTITY
*DIM FCIC:SALESORG=PARTNER.ENTITY
*DIM FCIC:PRODUCT=PRODUCT.PRODREF
*DIM FCIC:TRANSCURRENCY=PARTNER.CURRENCY
*DIM COUNTRY = "CO_NONE"
*DIM DATASOURCE = "INPUT"
*DIM PROFITCENTER = "YB99"
*DIM RPTCURRENCY = "LC"
*ENDLOOKUP
Regards,
Lars
Edited by: Lars Johansen on Nov 4, 2011 10:41 AM
Edited by: Lars Johansen on Nov 4, 2011 10:41 AM

Hi Gersh,
I'm getting closer. I have now tried to use the FOR/NEXT logic on 1 property and it works. I know want to include another. In this case it seems as if the LOOKUP works fine, but the WHEN/REC/ENDWHEN is not. It doesn't recognize my LOOKUP(%LOOP_CU%%LOOP_CO%).
Any suggestions have to solve this problem?
*LOOKUP ACTIVITYPLAN
*FOR %LOOP_CO% = %P_COMP%
    *FOR %LOOP_CU% = %P_CURR%
        *DIM %LOOP_CU%%LOOP_CO%:TRANSCURRENCY=%LOOP_CU%
        *DIM %LOOP_CU%%LOOP_CO%:ACCOUNT= "FULLCOST"
        *DIM %LOOP_CU%%LOOP_CO%:PARTNER="I_NONE"
        *DIM %LOOP_CU%%LOOP_CO%:COMPANY=%LOOP_CO%
        *DIM %LOOP_CU%%LOOP_CO%:SALESORG=%LOOP_CO%
        *DIM %LOOP_CU%%LOOP_CO%:PRODUCT=PRODUCT.PRODREF
    *NEXT
*NEXT
*ENDLOOKUP
*WHEN ACCOUNT
   *IS "QPURC"
               *FOR %LOOP_CU%=%P_CURR%
                   *REC(EXPRESSION=(%VALUE%*LOOKUP(%LOOP_CU%%LOOP_CO%)),ACCOUNT="529996")
                   *END
               *NEXT
*ENDWHEN

Similar Messages

  • SSRS MDX Query Dimension Properties Missing

    I have been stumped on this for a few days thought I'd throw this out here. I've read every related article in the forum regarding MDX Queries and Dimension Properties in SSRS Report Developer and haven't found a case exactly like this with a solution that
    works.
    Environment is SQL 2012 SP1 Cum update 5
    I am doing a rather generic query out of MS Project Servers OLAP cube and I can't get the dimension properties to show up in the flattened output for my dataset. See below.
    SELECT
    NON EMPTY { [Measures].[FTE est] } ON COLUMNS,
    NON EMPTY {
    [Value_Stream_Project].[Value_Stream_Project].ALLMEMBERS *
    [Project Status_Project].[Project Status_Project].ALLMEMBERS *
    DESCENDANTS([Project List].[Project List Level 02].ALLMEMBERS)*
    DESCENDANTS([ProjectManager_Project].[ProjectManager_Project Level 02].ALLMEMBERS) *
    [Planner_Project].[Planner_Project].ALLMEMBERS *
    [Time].[Month].ALLMEMBERS
    DIMENSION PROPERTIES
    MEMBER_CAPTION,
    MEMBER_UNIQUE_NAME,
    PARENT_UNIQUE_NAME,
    LEVEL_NUMBER ,
    [Project List].[Project List Level 02].[Start Date],
    [Project List].[Project List Level 02].[Finish Date]
    ON ROWS
    FROM (
    SELECT ( STRTOMEMBER(@FromTime, CONSTRAINED) : STRTOMEMBER(@ToTime, CONSTRAINED) ) ON COLUMNS
    FROM (
    SELECT ( STRTOSET(@RBSResource, CONSTRAINED) ) ON COLUMNS
    FROM (
    SELECT ( STRTOSET(@ProjectStatusProject, CONSTRAINED) ) ON COLUMNS
    FROM (
    SELECT ( STRTOSET(@ValueStreamProject, CONSTRAINED) ) ON COLUMNS
    FROM [MSP_Portfolio_Analyzer]))))
    My issue is the [Project List Level 02] dimension Properties  (below) are not showing up in the Query designer output, aren't being generated as fields in the dataset and can't be referenced as a property in an expression (i.e. Fields!Project_List("Start
    Date") )
    [Project List].[Project List Level 02].[Start Date],
    [Project List].[Project List Level 02].[Finish Date]
    The odd part is if I change the above two rows in my query to this :
    [Project List].[Start Date],
    [Project List].[Finish Date]
    The Query designer shows the properties in the output but leads to  2 other issues,
    1) I have to modify the generated Dataset field values to remove the [Project list Level 02] in the Level unique name like this
    Before<?xml version="1.0" encoding="utf-8"?><Field xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="MemberProperty" PropertyName="Project List - Start Date" LevelUniqueName="[Project List].[Project List Level 02]" />
    After
    <?xml version="1.0" encoding="utf-8"?><Field xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="MemberProperty" PropertyName="Project List - Start Date" LevelUniqueName="[Project List]" />
    2) I have to restrict my cross join to only the current level (Level 02) or it expands the results to the parent hierarchy of the Project List dimension and skews my measure summaries.
    I've tested the query in SSMS directly and the properties are showing up just fine for those dimensions using the original syntax.
    Any help would be appreciated.

    Hi there,
    Which data source provider are you using?  Are the connection strings used in SSMS the same as SSRS? Doing a profiler trace against Analysis Services might point to differences in how the connection is made or query is parsed.
    This may help.
    http://www.sqlchick.com/entries/2011/10/23/pros-cons-of-using-the-ole-db-provider-for-ssas-100-when-rep.html
    Did you try using With clause to make a friendly name for the member properties?
    http://melick-rajee.blogspot.ca/2012/04/how-to-get-member-properties-in-mdx.html
    cheers,
    Andrew
    Andrew Sears, T4G Limited, http://www.performancepointing.com

  • Background image  for JPanel using UI Properties

    Is there any way to add background image for JPanel using UI Properties,
    code is
    if (property.equals("img")) {
    System.out.println("call image file in css"+comp);
    //set the background color for Jpanel
    comp.setBackground(Color.decode("#db7093"));
    here the comp is JPanel and we are setting the background color,
    Is there any way to put the Background image for the JPanel ????

    KrishnaveniB wrote:
    Is there any way to put the Background image for the JPanel ????Override the paintComponent(...) method of JPanel.
    e.g.
    import javax.swing.*;
    import java.awt.*;
    import java.io.*;
    import javax.imageio.ImageIO;
    public class ImagePanel {
        public void createAndShowUI() {
            try {
                JFrame frame = new JFrame("Background Image Demo");
                final Image image = ImageIO.read(new File("/home/oje/Desktop/icons/yannix.gif"));
                JPanel panel = new JPanel() {
                    protected void paintComponent(Graphics g) {
                        g.drawImage(image, 0, 0, null);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setSize(new Dimension(400, 400));
                frame.setContentPane(panel);
                frame.setLocationRelativeTo(null);
                frame.setVisible(true);
            } catch (IOException ex) {
                ex.printStackTrace();
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new ImagePanel().createAndShowUI();
    }

  • Using Dimension Formulas to sum data based on different criteria

    Hi all,
    I am trying to use a u201CDimension Formulau201D to perform the following calculation:
    We have an account dimension which has 2 important properties:
    1.     CRITERIUMTYPE: This property can have 3 different values: u201CWERKu201D, u201CINVu201D OR u201CLIQu201D
    2.     ACCTYPE: This property can have 2 different values: u201CEXPu201D or u201CINCu201D
    The client wants to have a report that sums data based on these 2 properties. An example will help to clarify this:
    ACCOUNTS     CRITERIUMTYPE     ACCTYPE     VALUE
    ACCOUNT A         WERK                          EXP               100 u20AC
    ACCOUNT B         WERK                          INC               150 u20AC
    ACCOUNT C         WERK                          EXP               200 u20AC
    ACCOUNT D         WERK                          INC               300 u20AC
    ACCOUNT E         INV                          EXP               50 u20AC
    ACCOUNT F         INV                          INC               100 u20AC
    ACCOUNT G         INV                          EXP               200 u20AC
    ACCOUNT H         INV                          INC               500 u20AC
    The clients wishes to see this data in the following way:
    CRITERIUMTYPE     ACCTYPE     VALUE
       WERK                         EXP              300 u20AC
                                        INC              450 u20AC
       INV                         EXP              250 u20AC
                                     INC              600 u20AC
    In order to achieve this I have created several new accounts, one for each combination e.g.: Account WERKEXP is used to sum the data on the combination CRITERIUMTYPE=WERK and ACCTYPE=EXP. I have created a dimension formula in my account dimension but this is where I am stuck. I have created the following formula to calculate the account WERKEXP:
    IIF([BUDGETPOSITIE].CURRENTMEMBER.PROPERTIES("ACCTYPE")="EXP",IIF([BUDGETPOSITIE].CURRENTMEMBER.PROPERTIES("CRITERIUMTYPE")="WERK",[BUDGETPOSITIE].CURRENTMEMBER,0),0)
    The problem with this formula is the following:
    The formula will add all amounts that meet the 2 criteria mentioned in the formula, EXP and WERK, but as soon as it finds an accounts that does not match the 2 criteria it will set the account WERKEXP back to 0. I need to know if there is a way, using dimension formulas, of adding these values together without the new account being set to 0 as soon as one of the accounts it needs to check does not meet 1 of the 2 criteria.
    We are working on SAP BPC 7.5 for NW with SP04
    All help is very much appreciated!
    Kind regards,
    Stefano

    Hi,
    You can also use ParentHn property to have different grouping of accounts within the dimension.
    So in your case rather using the member formula you can have four accounts and add them in the Parenthn property for grouping it.
    1. The Solution proposed by Nilanjan is specific for a Report/IS and Performance will be good
    2. My solution will be global something similar to MDX formula, but performance may be slightly lesser than using excel function.
    Hope this helps,
    Regards,
    G.Vijaya Kumar

  • Account Dimension Properties

    Hi,
    I have some questions concerning Account dimension properties:
    1. "EnableCustom1Aggr"--->Whether aggregation is enabled for intersections of the Account and Custom dimensions This attribute is used for special totals, not summing. Specify Y if the account can aggregate with Custom dimensions or N if it cannot. does this mean that by default summing is working?
    2."EnableDataAudit"---> what does it mean to have an audited account or scenario?
    3. did anyone try member name that have space character on oracle database.
    4.what is the use of plug accounts.
    Thanks,
    foksh

    does this mean that by default summing is working?
    The account rollup is summing by default, but if you do not have the EnableCustomAggr checked, the Custom dimension members will show nothing.
    "EnableDataAudit"---> what does it mean to have an audited account or scenario? will allow you to see changes made to that account from the Tasks Folder -> Data Audit option.
    what is the use of plug accounts. R/= This are were you usually store the difference between your Intercompanies.
    Using spaces in member names is not recommended, try undercores _

  • Use dimension in HSF freeform calculation

    Hi everybody,
    I want to use dimension structure in Oracle Hyperion Strategic Finance Application.
    I assigned a user defined dimension, to an account. Then, I used a different dimension for any other account. e.g: v300.00.001/A1 - v300.00.002/B1
    Now, I want to create a freeform calculation for an account that names as v300.00.002/B1. My formula is; v300.00.002/B1= @DIM(v300.00.001, "A1")
    But this fomula, send error "HSF14359: The formula for v300.00.001/A1 requires v300.00.002/B1 which does not exist in this file.
    How can I solve this problem? Can I use freeform calculation with dimensional structure in HSF?
    Thanks.

    It's extremely annoying that the FLD() command isn't yet availlable in NW, unless it's coming with 7.5 or has been included in one of the more recent support packs.
    As a an alternative you may be able to use the following MDX routine:
    Returns the value of a property of the current member of a dimension
    *function PRO(%DIMENSIONNAME%,%PROPERTYNAME%)
    %DIMENSIONNAME%.Properties("%PROPERTYNAME%")
    *endfunction
    Unfortunately I've never been able to use this with a When statement, so you may have to ask an ABAP resource to develop a BADI to achieve your required results.

  • Description on Essbase Account Dimension Properties

    Hi everyone! I am a newbie on Oracle Hyperion and Essbase. I joined a company as a trainee software developer. And my role is to support my superiors in developing Planning and Budget Applications for Plantations of our company.
    I tried my best to find places in internet where I can improve my knowledge in the application but there is no place I found as free since my company is not ready to give good professional training. so I decided to choose the forum where I guess I would get help.
    My first question to ask is about Account Dimensions Properties,+_ what they do, what are their uses, what for an account type is used, where time balance is used etc.
    Edited by: 930603 on Apr 27, 2012 10:51 AM

    Hi,
    Welcome to the world of Hyperion first i suggest you to start reading the essbase dbag, it will help you to understand what exactly the product do and also help you to understand the best optimum solution for your design & implementation
    for Account Dimensions Properties
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_dbag/frameset.htm?dotattrs.htmlThanks,
    Avneet Singh Bhatia

  • Script calculation for dimension properties

    Dear Experts,
    I am using BPC 7.0NW,
    My code in Default.lgf:
    *BEGIN
    [P_ACCT].[#B] = [P_ACCT].[A]* [P_ACCT].[C]
    *END
    Now, I want to run this calculation for dimension property wise.
    LIke i want to add dimension properties in above calculations.
    And how do i put "IF" conditions?
    Please help me ...
    Thanks alot in advance.....!

    Kumar,
    follow next steps:
    1. Create new logic file and name it "TEST" for example
    2. Use next coding in it:
    *XDIM_MEMBERSET P_ACCT = YOUR_P_ACCT_MEMBER
    *IS "YOUR_PROPERTY_VALUE"
    *REC(EXPRESSION=%VALUE%,TIME="2010.MAR")
    *ENDWHEN
    *COMMIT
    3. Validate and save your TEST.LGF
    4. Insert next coding into DEFAULT.LGF
    *INCLUDE ADD.LGF
    5. Validate and save DEFAULT.LGF
    Put your values insted of "YOUR_P_ACCT_MEMBER", "YOUR_PROPERTY_VALUE"
    This coding works for sure.
    U can use ABAP in script logic. The mechanism is described here:
    http://help.sap.com/saphelp_bpc70sp02/helpdata/en/a1/532226947C49A5B2E2BD32450CB2D1/frameset.htm
    Hope that was helpful,
    Dzmitry

  • Using jndi.properties with weblogic 6.1

    Apologies if this is a basic question - I am new to Weblogic.
    I have successfully got a test EJB working with Weblogic 6.1 using a properties object to set up my JNDI InitialContext.
    In the weblogic examples I've downloaded it says you can also use a jndi.properties file to do this. I have set up a jndi.properties file, which is in the classpath for my class calling the EJB. But when I do my jndi .lookup("ejbname") I get the error:
    javax.naming.CommunicationException: Can't find SerialContextProvider
    The weblogic documentation at:
    http://e-docs.bea.com/wls/docs61///rmi_iiop/API_rmi_iiop.html
    refers to using jndi.properties and says to look at:
    http://edocs.bea.com/wls/docs61/jndi/jndi.html
    But at this page there is no mention of the jndi.properties method.
    I'd be grateful for any suggestions - in particular whether it is possible to use this method of configuring the JNDI setup.
    I'm running wlserver6.1 on a Windows 2000 PC, using JDK 1.3.1
    My jndi.properties file looks as follows:
    java.naming.property.names=java.naming.factory.initial,java.naming.provider.url
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://localhost:7001

    It is not WebLogic-specific. See
    http://java.sun.com/j2se/1.3/docs/api/javax/naming/InitialContext.html
    Alison Tunley <[email protected]> wrote:
    Apologies if this is a basic question - I am new to Weblogic.
    I have successfully got a test EJB working with Weblogic 6.1 using a properties object to set up my JNDI InitialContext.
    In the weblogic examples I've downloaded it says you can also use a jndi.properties file to do this. I have set up a jndi.properties file, which is in the classpath for my class calling the EJB. But when I do my jndi .lookup("ejbname") I get the error:
    javax.naming.CommunicationException: Can't find SerialContextProvider
    The weblogic documentation at:
    http://e-docs.bea.com/wls/docs61///rmi_iiop/API_rmi_iiop.html
    refers to using jndi.properties and says to look at:
    http://edocs.bea.com/wls/docs61/jndi/jndi.html
    But at this page there is no mention of the jndi.properties method.
    I'd be grateful for any suggestions - in particular whether it is possible to use this method of configuring the JNDI setup.
    I'm running wlserver6.1 on a Windows 2000 PC, using JDK 1.3.1
    My jndi.properties file looks as follows:
    java.naming.property.names=java.naming.factory.initial,java.naming.provider.url
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://localhost:7001--
    Dimitri

  • Dimension Properties

    The Dimension Properties and the columns in Dimension members are Not in match. As I can add my own columns in the Dimension members directly.
    Then why should I defined the Dimension peroperties at the first place?

    You can add whatever columns into your dimension sheet but they are not going to be a dimension property that you can access from logic or member lookup. That is why you must defined property for dimension independently.

  • How to set proxy authentication using java properties at run time

    Hi All,
    How to set proxy authentication using java properties on the command line, or in Netbeans (Project => Properties
    => Run => Arguments). Below is a simple URL data extract program which works in absence of firewall:
    import java.io.*;
    import java.net.*;
    public class DnldURLWithoutUsingProxy {
       public static void main (String[] args) {
          URL u;
          InputStream is = null;
          DataInputStream dis;
          String s;
          try {
              u = new URL("http://www.yahoo.com.au/index.html");
             is = u.openStream();         // throws an IOException
             dis = new DataInputStream(new BufferedInputStream(is));
             BufferedReader br = new BufferedReader(new InputStreamReader(dis));
          String strLine;
          //Read File Line By Line
          while ((strLine = br.readLine()) != null)      {
          // Print the content on the console
              System.out.println (strLine);
          //Close the input stream
          dis.close();
          } catch (MalformedURLException mue) {
             System.out.println("Ouch - a MalformedURLException happened.");
             mue.printStackTrace();
             System.exit(1);
          } catch (IOException ioe) {
             System.out.println("Oops- an IOException happened.");
             ioe.printStackTrace();
             System.exit(1);
          } finally {
             try {
                is.close();
             } catch (IOException ioe) {
    }However, it generated the following message when run behind the firewall:
    cd C:\Documents and Settings\abc\DnldURL\build\classes
    java -cp . DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615) at java.net.URL.openStream(URL.java:913) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    I have also tried the command without much luck either:
    java -cp . -Dhttp.proxyHost=wwwproxy -Dhttp.proxyPort=80 DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.yahoo.com.au/index.html
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245) at java.net.URL.openStream(URL.java:1009) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    All outgoing traffic needs to use the proxy wwwproxy (alias to http://proxypac/proxy.pac) on port 80, where it will prompt for valid authentication before allowing to get through.
    There is no problem pinging www.yahoo.com from this system.
    I am running jdk1.6.0_03, Netbeans 6.0 on Windows XP platform.
    I have tried Greg Sporar's Blog on setting the JVM option in Sun Java System Application Server (GlassFish) and
    Java Control Panel - Use browser settings without success.
    Thanks,
    George

    Hi All,
    How to set proxy authentication using java properties on the command line, or in Netbeans (Project => Properties
    => Run => Arguments). Below is a simple URL data extract program which works in absence of firewall:
    import java.io.*;
    import java.net.*;
    public class DnldURLWithoutUsingProxy {
       public static void main (String[] args) {
          URL u;
          InputStream is = null;
          DataInputStream dis;
          String s;
          try {
              u = new URL("http://www.yahoo.com.au/index.html");
             is = u.openStream();         // throws an IOException
             dis = new DataInputStream(new BufferedInputStream(is));
             BufferedReader br = new BufferedReader(new InputStreamReader(dis));
          String strLine;
          //Read File Line By Line
          while ((strLine = br.readLine()) != null)      {
          // Print the content on the console
              System.out.println (strLine);
          //Close the input stream
          dis.close();
          } catch (MalformedURLException mue) {
             System.out.println("Ouch - a MalformedURLException happened.");
             mue.printStackTrace();
             System.exit(1);
          } catch (IOException ioe) {
             System.out.println("Oops- an IOException happened.");
             ioe.printStackTrace();
             System.exit(1);
          } finally {
             try {
                is.close();
             } catch (IOException ioe) {
    }However, it generated the following message when run behind the firewall:
    cd C:\Documents and Settings\abc\DnldURL\build\classes
    java -cp . DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615) at java.net.URL.openStream(URL.java:913) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    I have also tried the command without much luck either:
    java -cp . -Dhttp.proxyHost=wwwproxy -Dhttp.proxyPort=80 DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.yahoo.com.au/index.html
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245) at java.net.URL.openStream(URL.java:1009) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    All outgoing traffic needs to use the proxy wwwproxy (alias to http://proxypac/proxy.pac) on port 80, where it will prompt for valid authentication before allowing to get through.
    There is no problem pinging www.yahoo.com from this system.
    I am running jdk1.6.0_03, Netbeans 6.0 on Windows XP platform.
    I have tried Greg Sporar's Blog on setting the JVM option in Sun Java System Application Server (GlassFish) and
    Java Control Panel - Use browser settings without success.
    Thanks,
    George

  • Error in WEBI report and MDXTEST  when using Dimensions in Prompt

    Hi,
    I am using BOXIR3.1 SP2, SAPBI 7.0
    I m creating a webI report (Universe is on SAP BI Query.) which include following objcets in Query section of WebI pannel:
    Business partner, Account Class, Total Arreas count.
    The Condition pane of Webi Includes Prompt on object "Account Class".
    When I run a report, I get List of values for Dimension Account Class, when I select one of available value eg: Commercial Customer,I get Following Error.
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[4EITIDWAFWLLZD2ONIAVCKD56] }  ON COLUMNS , NON EMPTY CROSSJOIN( [Z_BPATNER].[LEVEL01].MEMBERS,  { [Z_FCACTBP__0UCACC_CLAS].[Commercial Customers] }  ) ON ROWS FROM [ZFC_M07/Z_FC_M07_Q002]  failed to execute with the error Value Commercial Customers for characteristic Z_FCACTBP__0UCACC_CLAS unknown. (WIS 10901)
    I tried running same query in MDXTEST editor of BI. I got same error!!!
    Then I tried changing the MDX Query as:
    SELECT  { [Measures].[4EITIDWAFWLLZD2ONIAVCKD56] } 
    ON COLUMNS , NON EMPTY CROSSJOIN( [Z_BPATNER].[LEVEL01].MEMBERS,  { [Z_FCACTBP__0UCACC_CLAS].[COM] }  ) ON ROWS 
    FROM [ZFC_M07/Z_FC_M07_Q002]
    Then it worked Fine!!!  If you observe the change is in the value of Prompt Account Class [Z_FCACTBP__0UCACC_CLAS].[COM]
    By default Dimension object in Universe shows text value, but when I changed the MDXQuery with Key value (This is one of the value of value is for [Z_FCACTBP__0UCACC_CLAS].[Level01] object in mDX test Editor.) It works fine.
    I wonder How do i solve this problem!! List of values available in dimension cannot be changed at universe level.
    Please let me know if any solution for this exists.
    regads,
    Nisha.

    Hi Ingo,
    I am creating the prompt on the dimension "Account Class" at WebI level.
    The Technical name of this object is: [Z_FCACTBP__0UCACC_CLAS].[LEVEL01]
    Also,
    I confirmed that Index Awareness is applied on this dimension as [Z_FCACTBP__0UCACC_CLAS].[LEVEL01].[TECH_NAME].
    This Dimension has detail object called "Account Class (Key) "and "Account Class (Medium name)".
    MDXtest editor in SAP, shows me text as well as [ Level01] values:
    Eg: Account Class InfoObject has values "Commercial Customer " (This is text value)and  "[Z_FCACTBP__0UCACC_CLAS].[COM]".
    COM Refers to Commercial Customer .
    So In WebI when I use Dimension "Account Class" as prompt, I get Text value of this InfoObject which is "Commercial Customer ".
    and MDXQuery Fails. But when I modify this query in mDXTEST Editor with value as "[Z_FCACTBP__0UCACC_CLAS].[COM]", It work fine.
    I donu2019t understand the reason, since this problem is with almost 90% of Dimension object.
    When I delete this object from universe, and refresh the universe then webI works fine.
    But, if for some reason I refresh the universe again, the Dimension object as a prompt doesnu2019t work!!!
    This error occurs every time I refresh the universe.
    We are in UAT phase and soon to go Live!!  We cannot afford to delete the object every time I refresh the universe.
    Please let me know your inputs.
    regards,
    Nisha.
    Edited by: Nisha Makhija on Oct 15, 2009 4:56 PM

  • Cost involved in changing the code using log4j.properties to log4j.xml

    i have finished my application, and it was done in such a way that logging is done using log4j but it was using log4j.properties file.
    now i need to change it to log4j.xml. i need to do this at the earliest. so i need to know the cost involved in it?. do i need to change a lot on my app to read the log4j.xml?. In my app there is a function named getProperties, which actually reads the log4j.properties file.
    this is the code of that function
    public static Properties getProperties(String filename,String path) throws myException
    //InputStream is = null;
    FileInputStream is=null;
            Properties props = new Properties();       
            //ClassLoader classLoader = ResourceUtil.class.getClassLoader();
            //is = classLoader.getResourceAsStream(filename);
            File catalinaHome = new  File(System.getProperty("catalina.home"));     
            try {       
    is=new
    FileInputStream(catalinaHome.getCanonicalFile()+path + filename);
    } catch (IOException e) {
            if(is == null)
                String message = "Cannot locate property file " + filename + " in the classpath";
                log.error(message);
            throw new myException(message);
            try
                props.load(is);
            catch (IOException e)
                String message = "Error reading property file " + filename;
                log.error(message);
            throw new myException(message, e);
            finally
                try
                    is.close();
                catch(Throwable t)
                    t.printStackTrace();
            if(props.isEmpty())
                String message = "No properties are defined in " + filename;
                log.error(message);
            throw new myException(message);
            return props;       
    }and my initialize function is
    public static void initialize()
    Properties properties=null;
    try {
    String path="/properties/";
    properties=ResourceUtil.getProperties("log4j.properties",path);
    } catch (myException e2) {
    e2.printStackTrace();
    PropertyConfigurator.configure(properties);
    }Message was edited by:
    xema
    Message was edited by:
    xema
    Message was edited by:
    xema

    >
    1. Restructure log4j.properties into log4j.xml.
    thats done
    2. Move log4j.xml into a directory that's in the
    classpath.
    actually i donot understand what does it mean to move in a directory thats in classpath means. i have to use logging in my webapplication running in tomcat. and my log4j.xml has to reside in catalina.home/properties/. My log4j.properties have been residing here and it had worked well woth the previous function. Now what i did is placed the log4j.xml under properties folder. Now tell me what modifications should i make in the above code.
    3. Remove any code that explicitly configures log4j
    (i.e. the initialize() method) because log4j will
    configure itself from any properties file it finds in
    the classpath, automatically, the first time it is
    called.I prefer not remvoing this function as this function is being called in many of my classes... and we don't have time to edit all...
    please help... and excuse me if i asked some blunders.!!!

  • Multiple use of properties file

    Is there a way to use a properties file for multiple languages?
    ie.
    en_EN points to the en_EN properties file
    I want en_US to also point to that, is this possible? (it now points to default language if not present)
    And anyone got a good tutorial / overview of the possibilities of properties file? have not been able to find a good example that shows all possibilities
    Thanks

    Provide an en version which contains all the English stuff, then put all the en_US and en_EN variants into those files respectively.

  • Using a treemap for lookup in a jsp grid

    Hi
              I am trying to use a treemap to lookup the names for id´s in a table.
              for example.
              Lookup table:
              ID.....Name
              1......carrot
              2......bananna
              the main table looks like this:
              row....id
              1.......2
              2.......1
              3.......1
              4.......2
              in my jsp page I want it to look like this:
              row....id
              1......bananna
              2......carrot
              3......carrot
              4......bananna
              I have the lookup table loaded into a treemap in the begin part of my pageflow.
              is there a special way that I can refer to the treemap in a grid view, for example, with a netui-data:expressionColumn ?
              thanks for any help.
              /Nigel
              Message was edited by NigelGuest at Feb 3, 2005 2:34 AM

    hi,
              important here to aknowledge that the {} databinding are compile time. This implies a whole lot of restrictions. The scenario below works for me:
              - getLookupMap in the pageflow returns the lookup map
              - getList in the pageflow returns the list
              The following code then works for me
              <!-- in the heading of my JSP -->
              // get the lookup map into pagecontext
              <netui-data:getData resultId="lookup"
              value="{pageFlow.lookupMap}"/>
              // pull down as a new page attribute
              <%
              Map lookup = (Map)pageContext.getAttribute("lookup");
              %>
              Now, in my repeater ( of gridview ) I implement the column showing the actual mapped value like this:
              // to get the item key
              <netui-data:getData resultId="key"
              value="{container.item}"/>
              // to set the mapped attribute value
              <%
              pageContext.setAttribute(
              "lookupValue",
              lookup.get(pageContext.getAttribute("key")));
              %>
              // to render the mapped attribute value
              <netui:label value="{pageContext.lookupValue}"
              defaultValue=" " />
              Probably not exactly what you asked for, but hopefully close enough to guide you in the right direction.
              - Anders M.

Maybe you are looking for