Implementing Dynamic Styles for Popups based on Query

I have a page with multiple report regions which are individually displayed depending upon values assigned to variables via a search page. On the resulting report region, I display the results of my SQL query as text, text fields, select lists, textarea, and popups. These fields are editable and will be submitted to update the data displayed and stored in the database. To maintain database referential integrity, obviously some fields will be reuired and some will have default values. I want to visually emphasize these two characteristics to the user by changing the field background color and font color depending upon whether the element is required or whether a default value is being displayed.
I have tried to accomplish as much as possible via inline styling and can accomplish everything except the popups. If I hard-code the style values for the popup IDs, I can affect the styles. The problem is that the number of rows which need to be addressed is dependent upon the number of rows in my table. Popup IDs are indexed by the row number (e.g. f01_0001 is the ID for the popup field for row 1; f01_0002 is the ID for the popup field for row 2, etc). Changing the template would affect all popups and I only want to address specific ones. I have tried to implement a JavaScript function (FORMAT_DEFAULT_AND_REQUIRED_COLUMNS(formItem1,formItem2,formItem3)) on the page HTML Header section which is called by onload="jvascript:FORMAT_DEFAULT_AND_REQUIRED_COLUMNS('P30_DATA_TYPE','P30_VIEW_OR_EDIT','P30_SOURCE');" from the "On Load - Page HTML Body Attribute."
Basically, I want this function to execute each time the page is loaded to dynamically assign style values to the popups (and potentially other columns as well). Depending upon the values of the three formItems, the function would know which column tags would need to be affected. From within the JavaScript function, I would call:
document.getElementById(f01tag).style.setExpression("background-color", "blue", "JavaScript");
This would occur within a loop from 1 to the number of rows to be displayed on the report region and the f01tag would be incremented by the loop counter.
Any ideas, assistance, or direction would be greatly appreciated. Thank you.

Ed
Taken a look at it using the developer access you provided. Think you were nearly there!
The style sheet wasn't being picked up because of the link href in the page template. Think you must have cut and pasted the existing link for the theme CSS and left in the themes/theme_10/ component? That would apply for style sheets stored there in the file system. For your ApEx CSS from the database you just need #WORKSPACE_IMAGES#pdam.css.
To get the styles defined in the CSS appearing for all of the items - including the popups - I added class="default|required|default_required" attributes using the p_attributes parameter in the APEX_ITEM package methods referenced in your report source query. (Probably possible to do this in the Tabular Form Element section of the report definition too, but if you've got dynamic requirements as to which classes are needed where, the former approach is more likely to be useful - you can control which classes using DECODE, CASE, scalar subqueries etc.)
Seems to be working in Windows IE 5.5/6/7 and Opera 9; Mac Firefox 2 and Safari 3 beta. Safari 2 doesn't support styling of the select lists, as I mentioned in my previous post.
Few points on your CSS:
1. Setting font size in pixels causes accessibility issues, both due to Win IE lacking support for user resizing of pixel sized text, and because of general variation in display resolutions. Use a different method for real world use.
2. Always specify a generic font family as a fallback in case your preferred fonts are not available: font-family: "Times New Roman", Times, serif;
3. text-shadow is not yet a widely supported CSS 3 property. Although it is working in Safari 3 - even (to my surprise!) in a form control - it looks kind of unreadable, and I doubt that even when widely available it will be universally supported for forms controls. Anyway, note that text-shadow properties are not specified enclosed in quotes.
Hope this lets you progress.

Similar Messages

  • Cant use dynamic constant for measure MDX SSRS query

    I am trying to write a dynamic MDX query in SSRS.  I was sucessful with the groups being dynamic,
    but the measures are not working as they do in SQL Mgmnt Studio.  For example,  this text
    is not working (the data set is invalid after when executed):
    ="WITH "
    +" member [Measures].[Measure1] AS "+iif(Instr(Join(Parameters!ColumnValues.Label,","),"01") > 0,Parameters!ColumnValues.Value(0),"0")
    So if ColumnValue "01" was not selected measure1 should just be "0". 
    It works ok if you just hard code : "member [Measures].[Measure1] AS 0", but fails when used in the IIF().
    Anyone see the problem with this?
    Thank You

    Hi billywinter,
    You issue can be caused by the Parameters!ColumnValues.Value(0) will return the integer value which missing the "", so it will cause the issue.
    Please modify the query like below  to have a test:
    ="WITH "
    +" member [Measures].[Measure1] AS "+iif(Instr(Join(Parameters!ColumnValues.Label,","),"01")
    > 0,CStr(Parameters!ColumnValues.Value(0)),"0")
    If you still got some issue, please try to provide the error message to help us better analysis about the issue.
    Any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Dynamic visibility for a custom component

    Hi everybody,
    I have implemented dynamic visibility for my component and try to use it with the Xcelsius checkbox.
    At preview my component is visible as the checkbox is checked.
    I unchecked the checkbox then my component is no more visible,  and it is works fine.
    But when I checked the checkbox again, my compoenent doesn't appear any more...
    Any idea ?

    Hi Evan,
    I am developing a component which requires "Dynamic Visibility" property.
    Its an Icon component where I have to bind a value for Icon. (i.e 0-30 Smiley, 31-70 dash, 71-100 Frown)
    The dynamic visibility works fine only when I bind both (Value for Icon,  Dynamic Status) to the same excel cell.
    Looks like Xcelsius wants all the bindings to be done to same cell in the Excel.
    [Here|http://docs.google.com/View?id=dzf62p8_35gc73brzm] is my code for your review.
    Please help me. Your timely respose would be of great help for me.
    Thanks
    Ravi.

  • How to dynamically resize taskflow popup set as inlineDocument.

    I've been trying to figure out how to dynamically set the WindowHeight and WindowWidth of a taskflow deployed as a inlineDocument popup. Sadly, neither the forums nor google came to the rescue so I had to actually figure this one out on my own. But at least now is my opportunity to work up some forum karma! :)
    Sample workspace containing the solution is here: http://www.williverstravels.com/JDev/Forums/Threads/2337969/MaxPopupSize.zip
    General Strategy for Solution:
    - Pull the browser height and width using Javascript
            function browserSize(evt)
              var button = evt.getSource();
              var agent = AdfAgent.AGENT;
              var windowWidth = agent.getWindowWidth();
              var windowHeight = agent.getWindowHeight();
              AdfCustomEvent.queue(button, "customEvent",
                width: windowWidth,
                height: windowHeight
              true);
              evt.cancel();
            }- Using a clientListener and serverListener, pull this information into a managed bean and set height / width in button's setWindowWidth(), setWindowHeight() attribute.
      public void onButtonClick(ClientEvent clientEvent)
        Double dw = (Double)clientEvent.getParameters().get("width")-100;
        Double dh = (Double)clientEvent.getParameters().get("height")-100;
        this.popupButton.setWindowWidth(dw.intValue());
        this.popupButton.setWindowHeight(dh.intValue());
        ActionEvent aE = new ActionEvent(this.getPopupButton());
        aE.queue();  
      }- Due to JSF Lifecycle complications, the managed bean will need to call a different button than the one which holds the client and server listener. It will be the second button (popupButton in the code above) which then calls the popup.
    Props to Frank for the client / server listener tutorial: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf
    Props to Martin Deh for the javascript insights: http://martindeh.blogspot.com/2011/03/dynamic-resizing-for-popup-dialogs.html
    Hope this helps someone down the road.
    Will

    Thanks LovettWB ...
    Your question helped me a lot...  I am able to pass these two parameters width/height to my bean and am able to set it to pop-up :)                                                                                                                                                                                                                                                                                                                                   

  • Dynamic resizing of popups

    Hi All,
    I am using JDev 11.1.2.4.0 and  bounded taskflows.
    In my fragment I have a popup with panel Window. I want to set the content width & height of this as per the browser
    I followed the steps as per this http://www.ateam-oracle.com/dynamic-resizing-for-popup-dialogs/
    My popup code is as below
                                       <af:popup id="pdfPopup" autoCancel="disabled" partialTriggers="cb1"
                                                  popupCanceledListener="#{rLBean.closeDetachPopup}"
                                                  contentDelivery="lazyUncached">
                                            <af:panelWindow id="pdfWindow" title="Label Design" modal="true"
                                                            stretchChildren="first">
                                                <af:panelStretchLayout id="psl7" startWidth="0px" endWidth="0px"
                                                                       topHeight="0px" bottomHeight="0px">
                                                    <f:facet name="bottom"/>
                                                    <f:facet name="center">
                                                        <af:inlineFrame id="if2"
                                                                        source="/pdfservlet?#{bindings.LId.inputValue}*#{bindings.LVn.inputValue}"/>
                                                    </f:facet>
                                                    <f:facet name="start"/>
                                                    <f:facet name="end"/>
                                                    <f:facet name="top"/>
                                                </af:panelStretchLayout>
                                            </af:panelWindow>
                                        </af:popup>
    This popup is invoked as below
         <af:commandButton text="Maximize" id="cb1" partialSubmit="true"
                                                                          clientComponent="true"
                                                                          icon="/images/maximize_detach.png"
                                                                          shortDesc="Maximize" blocking="true">
                                                            <af:clientListener type="action"
                                                                               method="openPopup('pt1:pdfPopup','pt1:pdfWindow')"/>
                                                        </af:commandButton>
    Javascript method is as below
    function openPopup(popupId, panelWindowId) {
        return function (event) {
            try {
                var agent = AdfAgent.AGENT;
                var windowWidth = agent.getWindowWidth();
                var windowHeight = agent.getWindowHeight();
                //alert('maximize.............');
                var region = AdfPage.PAGE.findComponentByAbsoluteId('r1');
                //alert(region +' ------------ '+popupId+' --------------- '+panelWindowId);
                var popup = region.findComponent(popupId);
                //alert(popup);
                var panelWindow = popup.findComponent(panelWindowId);
                alert(panelWindow);
                panelWindow.setContentWidth(Math.max(100, windowWidth - 100));
                panelWindow.setContentHeight(Math.max(100, windowHeight - 100));
                if (popup != null)
                    popup.show();
                else
                    popup.hide();
            catch (err) {
                alert(err);
    When alert is there, I am getting the ID of panel window and everything works fine.
    But if I comment the alerts, its returning null. I dont know whats going wrong.
    Kindly Help

    Issue is, with the above code, I am not able to get the panel window ID.
    As you'll can see in the javascript code, I have commented the alerts. Magically, if i uncomment one of the alerts, its able to find the ID.
    Yes..!! I have tried this code by setting the clientComponent=true for the pop-up as well as panelWindow. But it didn't help.....
    Kind Regards

  • Dynamic dependency for filters

    Hi,
    I need to implement dynamic dependency for the filters inside webi report.
    I can use "cascading prompts". But this will will be like (filter 2 dependent on filter 1, filter 3 dependent on filter 2).
    But in my case I need all the filters to be interdependent to each other. This means at any time if I select any filter, other filters should show only those values available for selection (NOT ALL VALUES).
    Could you please suggest me the best approach to achieve this requirement?
    Regards,
    Saranga T A

    Thanks for the response guys. (Sorry for my delayed reply)
    I inquired some of my friends who are using different Reporting tools (BrioIntelligence, MicroStrategy).
    Those tools support dynamic dependency for block level filters.
    To be more clear, my question is:
    Consider there is a table:
    Branch     Segment     Employee
    A                    01               100
    B                    02               101
    B                    03               102
    C                    04               103
    D                    04               104
    D                    05               105
    Here, if we have filters or Branch, Sement and Employee,
    User should be able to see only those value in the filter which satisfies other filter values in a row.
    For example: If Branch "B" is chosen, only Segement "02","03" should be available for selection.
    In thesame way, If Segment "04" is chosen, only Branch "C","D" should be available for selection.
    (Beacuse any other combination would retrieve no rows).
    In ourcase we have 4-5 filters which are not in the hierarchy. Even if they do, the depedency is linear and will not be interdepedent.
    i believe it is the inbuit feature of many of the other Reporting Tools, but is there a turn around to achieve this in BO 3.1?
    Kind Regards,
    Saranga T A

  • Dynamic VARIANT FOR Fiscal Period and dates

    Hi
    We have a custom transaction with date and fiscal period as vairable parameters and need to know if we can generate a DYNAMIC VARIANT for these based on FISCAL PERIOD.
    Replies will rewarded

    Hi,
              Use transaction OB29, this is in the IMG.
    Or
    Path..
    SPRO -> SAP REFERENCE IMG -> FINANCIAL ACCOUNTING -> FINANCIAL ACCOUNTING GLOBAL SETTINGS -> FISCAL YEAR -> MAINTAIN FISCAL YEAR...
    <b>Reward points</b>
    Regards
    Message was edited by:
            skk

  • Minimize and maximize icon for popup dialog

    How can i create a minimize and maximize icon for a popup dialog?By default close[x] icon is there.What should be done to have a minimize and maximize icons?

    You cannot do this (at least, there is no such one capability out of the box). But, you can play with panelWindow contentWidth/contentHeight at runtime, take look at: http://martindeh.blogspot.com/2011/03/dynamic-resizing-for-popup-dialogs.html

  • Dynamic fetch for dynamic sql query

    Hi All,
    I want to dynamically create a query and fetch it into a dynamic cursor record...The structure of the record should be the same as that of the query...
    Can you suggest any method to do that.
    eg
    OPEN <dynamic cur> FOR <dynamic stmt>;
    LOOP
    FETCH <dynamic cur> INTO <dynamic rec>;
    END LOOP;
    CLOSE <dynamic cur>;
    How do I declare the dynamic rec here?I would not know the columns in the query beforehand either.
    Thanks,
    Merz
    Edited by: merz on Sep 12, 2011 5:02 PM
    Edited by: merz on Sep 12, 2011 5:03 PM

    merz wrote:
    Hi All,
    I want to dynamically create a query and fetch it into a dynamic cursor record...The structure of the record should be the same as that of the query...
    Can you suggest any method to do that.And how are you expecting to write an application around a dynamic query and dynamic structure that you don't know?
    Saying that, as others have said, there is the DBMS_SQL package which can be used for certain valid reasons such as the following example....
    As sys user:
    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    /As myuser:
    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
      END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
          ELSE
            v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
          END CASE;
        END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;This allows for the header row and the data to be written to seperate files if required.
    e.g.
    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    PL/SQL procedure successfully completed.Output.txt file contains:
    empno,ename,job,mgr,hiredate,sal,comm,deptno
    7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
    7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
    7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
    7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
    7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
    7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
    7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
    7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
    7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
    7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
    7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
    7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
    7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
    7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10The procedure allows for the header and data to go to seperate files if required. Just specifying the "header" filename will put the header and data in the one file.
    Adapt to output different datatypes and styles are required.

  • Dynamic group for HSW object based on Site (Gateway) server

    Hi
    Using the SiteName parameter when deploying gateway servers like described in the blog post from Cameron Fuller
    http://blogs.catapultsystems.com/cfuller/archive/2015/02/12/creating-dynamic-groups-for-objects-which-exist-behind-a-gateway-in-opsmgr-part-1.aspx
    I would like to create an aditional dynamic Group with all Health Service Watcher objects related to an Site (Autocreate) Group.
    Any ideas on the XML Query or other ways of duing this?

    Yes I know this one, but the SiteName Group is not in my MP.
    So I need to reference the XML to a Group outside of my own MP.
    Like:
    http://blogs.technet.com/b/kevinholman/archive/2014/04/09/creating-groups-of-health-service-watcher-objects-based-on-other-groups.aspx
    But with the '<MonitoringClass>$MPElement[Name="grouptest.compgroup"]$</MonitoringClass>'
    Line pointing to a autocreated SiteName Group.

  • What do you need to do in your bean for implementing dynamic QL?

    Do I need to add an import for QueryHome? Also, what is query home?
    I got the bottom code for dynamic QL on a bea website, but it doesn't work in
    giving me problem for QueryHome (can not resolve symbol). How do I implement dynamic
    QL in weblogic 7.0.
    InitialContext ic = new InitialContext();
    RolesHome rHome = (RolesHome)ic.lookup("");
    QueryHome qh = (QueryHome)rHome;
    String ejbQL = "SELECT DISTINCT OBJECT(o) FROM users AS o," + " IN(o.forRoleID)
    AS r" + " WHERE r.iD = " + getID() +
    filter + orderBy;
    Query query = qh.createQuery();
    Thank you
    Ronak Parekh

    Hi,
    How are you doing?
    Try the following:
    o Let's try a very simple query such as: SELECT OBJECT(o) from users o
    o Next, try query.find(ql) instead of query.find(ql, properties)
    Best regards,
    -Bart Simpson
    "Ronak" <[email protected]> wrote:
    >
    Bart,
    Thanks for the help.
    This is the code that I am trying to implement:
    Object[] arguments;
    Properties myProp = new Properties();
    for(int i = 0; i < arguments.length; i++)
         myProp.setProperty(String.valueOf(i), String.valueOf((arguments)));
    InitialContext ic = new InitialContext();
    RolesHome rh = (RolesHome)ic.lookup("RolesHome");
    QueryHome qh = (QueryHome)rh;
    String weblogicQL = "SELECT DISTINCT OBJECT(o) FROM users AS o," + "
    IN(o.forRoleID)
    AS r" + " WHERE r.iD = " + getID() + filter + orderBy;
    Query query = qh.createQuery();
    return query.find(weblogicQL, myProp);
    This is the error that I am getting:
    compile:
    [javac] Compiling 9 source files to C:\anttest\myapp\myejb\classes
    [javac] C:\anttest\src\java\com\software\business_component\RolesBean.java:160:
    cannot access weblogic.ejb.QueryProperties
    [javac] file weblogic\ejb\QueryProperties.class not found
    [javac] return query.find(weblogicQL, myProp);
    [javac]
    1 error
    I can not find the class weblogic.ejb.QueryProperties. Am I doing the
    right thing.
    Please do let me know.
    Thanks
    Ronak Parekh
    "Bart Simpson" <[email protected]> wrote:
    Hi,
    How are you doing?
    What version of WLS are you using? Dynamic Queries are support in 7.+
    You also need to enable dynamic query. Use <enable-dynamic-queries>
    tag in weblogic-ejb-jar.xml
    Best regards,
    -Bart Simpson
    "Ronak Parekh" <[email protected]> wrote:
    Do I need to add an import for QueryHome? Also, what is query home?
    I got the bottom code for dynamic QL on a bea website, but it doesn't
    work in
    giving me problem for QueryHome (can not resolve symbol). How do I
    implement
    dynamic
    QL in weblogic 7.0.
    InitialContext ic = new InitialContext();
    RolesHome rHome = (RolesHome)ic.lookup("");
    QueryHome qh = (QueryHome)rHome;
    String ejbQL = "SELECT DISTINCT OBJECT(o) FROM users AS o," + " IN(o.forRoleID)
    AS r" + " WHERE r.iD = " + getID() +
    filter + orderBy;
    Query query = qh.createQuery();
    Thank you
    Ronak Parekh

  • How to set up Dynamic Variants for job which is based on Pay Period

    Hi,
    We need to set up dynamic variant for payroll interface.  This interface is based on Pay periods and that is why we need to use different variant for each month.  Letus know how to set up dynamic variant which will take care of Pay Periods

    Hi,  Thnx for reply.
    We are not changing the control records, current period will be some old period in system. 
    payroll is not processed in SAP,

  • Print layout designer for develop report based on query

    Dear Experts/Gurus,
    I am amazing about the manage previous reconciliation report. When I opened it using print layout designer, it looks like the report is not built using query, but I am not sure yet. This is very confusing. I created query similar with manage previous reconciliation (MPR), but when I link the query to print layout and try to make similar format/appearance with MPR report (reconciliation management (system)), it is not success.
    Isn't the MPR report built not based on query ? I appreciate your answer. TIA
    Rgds,

    Hi,
    I am not sure I understand what's the problem:
    Is it the layout that is different or the data?
    Regarding the data you can use SQL Profiler (maybe you did?) to find out what queries are fired, but please note that there are some stored procedures in the DB that are used for some specific functions - not sure whether the "MPR" uses any of these.
    Then you must include some non-default filter in SQL Profiler...
    ...but you can also use the logging functionality in B1 for that purpose:
    Just activate the logging (see the "log" folder in the B1 subdirectory) in the corresponding config file: choose the option to have the SQLs logged in conjunction with the logging being triggered in all cases (not just error).
    Thus you will get all the SQLs - just plain - from the B1 application, but note that it will obviously slow it down!
    HTH,
    Frank

  • Problem when querying OLAP for Value based hierarchy

    Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
    the strange part is if I only put one value, it will work perfectly
    for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
    but if I put multiple value to the list
    CF_HIER::426362
    CF_HIER::424470
    CF_HIER::429073
    CF_HIER::424230
    then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
    for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
    this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
    this is the code how I guery
    ////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
    String[] elementIdArr = new String[elementIdList.size()];
              int i = 0;
              for (Long elementId: elementIdList) {
                   String elementIdStr ="";
                   if (hierarchy instanceof MdmLevelHierarchy)
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            level.getName()+dimension.getValueSeparationString()+
                                            level.getName()+"_"+elementId;
                   else
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            elementId;
                   elementIdArr[i++] = elementIdStr;
              Source myList = dp.createListSource(elementIdArr);
              result = hierarchy.getSource().selectValues(myList);
         Source joinedSource = measure.getSource();
              joinedSource = joinedSource.join(result );
    is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
    thanks

    Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
    the strange part is if I only put one value, it will work perfectly
    for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
    but if I put multiple value to the list
    CF_HIER::426362
    CF_HIER::424470
    CF_HIER::429073
    CF_HIER::424230
    then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
    for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
    this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
    this is the code how I guery
    ////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
    String[] elementIdArr = new String[elementIdList.size()];
              int i = 0;
              for (Long elementId: elementIdList) {
                   String elementIdStr ="";
                   if (hierarchy instanceof MdmLevelHierarchy)
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            level.getName()+dimension.getValueSeparationString()+
                                            level.getName()+"_"+elementId;
                   else
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            elementId;
                   elementIdArr[i++] = elementIdStr;
              Source myList = dp.createListSource(elementIdArr);
              result = hierarchy.getSource().selectValues(myList);
         Source joinedSource = measure.getSource();
              joinedSource = joinedSource.join(result );
    is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
    thanks

  • I need an example of JSR179 implementation for CDC based device

    Actually i am trying to develop an LBS(Location based Service) application for Pocket PC that is a CDC based Device,
    I searched a lot on internet for any example that could help me but could't found anything usefull information.
    I found a lot of stuff for MIDP, i found JSR179 implementation for MIDP but could't found anything for CDC(Connected Device Configuration).
    So i need an example of JSR179 implementation for CDC based device. I really need it.
    waiting for your help....
    thanx
    Vivek Mishra

    What is it from a business perspective that you are trying to accomplish?
    What are you going to do with this data once you get it into the format you're envisioning?
    Are you anticipating creating a collection of REC_SET records? Is there a reason that you're not using an associative array keyed on the c2 value (assuming collections are even appropriate to the problem you're trying to solve)?
    Justin

Maybe you are looking for

  • Unable to edit First no in Numbering series

    Hello Experts One of my client has entered data in Purchase Order for first time . First PO in the database . But unfortunately numbering series wasn't set , and by default general document numbering had 25 as its next no for PO. And user added the d

  • Runtime error when trying to use Thinkvantage system updater

    I get a runtime error when trying to use the Thinkvantage system updater.Have tried it numerous times and this is the exact message: "Runtime error! Program:C:\Program Files\Lenovo\System Update\tvsu.exe This application has requested the Runtime to

  • Visual Difference on image between acrobat 6 and Above

    Dear all, We have a query on visual difference in the pdf file(particularly in images). We have also inserted the screenshot image in this mail Please help and tell me the difference in features on this. In Acrobat Professional 9.0 In Acrobat Profess

  • Memory errors in Precalc on Workbook using SAPGUI 720/Excel 2007

    When application does precalc of a workbook, they are getting memory errors.  This is after we are utilizing latest version of precalc Settings were started from the BEx Broadcaster     Processing for user E445357, language EN     Processing setting 

  • There is no problem in Outlook but Lync does not start. → "Microsoft Lync cannot be started"

    hi, There is no problem in Outlook but Lync does not start. → "Microsoft Lync cannot be started" Addtional Info:Office2007(natural but 32bit)is in use. External devices except phone are not connected. Not able to understand the issue. vene tried unis