Simulate the Query Builder functionality

Hi all,
I need to create in my application some functionality, such Query Builder: the drag and drop of tables, and graphically display of tables with the dragging possibility.
I have take a look into the source code of the query builder page, but does not understood, how to realize it. Has anyone idea?
Regards

Login to my workspace on apex.oracle.com (vikasa/guest/guest) and check out the Apex - SQL Workshop application (20777) and see how various features are implemented.
[You are on your own though as far as support is concerned, none of the features and techniques used are documented]
As you know, building something like that requires a high degree of proficiency with the DHTML stack (HTML, CSS, Javascript, XHTML, etc)
Good luck.

Similar Messages

  • Using dimension attributes in the Query Builder Bean

    All...
    I am developing an HTML client based tool using the JSP tags. I wish to create a report that selects the appropriate dimension value based upon an attribute.
    But...
    Using the query builder I can not select dimension values based upon dimension attributes. Is this possible? The only use I have found for the attributes is when I am sorting my selected diemsnion values.
    Thanks in advance
    Dylan.

    1. Java Client QueryBuilder has support for selecting dimension members based on an attribute.
    To use this functionality, go to Dimensional Panel -> Conditions tab. Drill on Match group of conditions. The attribute condition appears as the last available condition, but only for dimensions that have attributes.
    To test this, use BIBDEMO schema supplied with BI Beans and look at conditions for Product dimension.
    2. If you wish to display dimension attributes and their values in the HTML client UI,
    here is how you can retrieve attributes and their values for a dimension:
    (e.g. for Product dimension in BIBDEMO)
    String dimensionID = "MDM!D_BIBDEMO.PRODUCT";
    String hierarchyID = null;
    MDDimension dimension = metadataManager.getDimensionByUniqueID(dimensionID);
    MDHierarchy hierarchy = dimension.getDefaultHierarchy();
    if (hierarchy != null)
    hierarchyID = hierarchy.getUniqueID();
    // Retrieve all the attributes for this dimension
    MDAttribute[] attributes = dimension.getAttributes();
    if (attributes != null && attributes.length > 0)
    String attributeID = null;
    AttributeListStep attrStep = null;
    Selection sel = null;
    MetadataMap map = new MetadataMap(new String[] {MetadataMap.METADATA_VALUE});
    for (int i=0; i<attributes.length; i++)
    // Get the unique ID for the attribute
    attributeID = attributes.getUniqueID();
    // Create and evaluate an AttributeListStep
    attrStep = new AttributeListStep(dimensionID, hierarchyID, attributeID);
    sel = new Selection(dimensionID);
    sel.setHierarchy(hierarchyID);
    sel.addStep(attrStep);
    // Evaluate the AttributeListStep and get the DataAccess
    DataAccess da = query.createQueryAccess().getDataAccess(sel, map);
    // Walk the DataAccess and get the attribute values
    if (da != null)
    int extent = da.getEdgeExtent(DataDirector.COLUMN_EDGE);
    for (int i=0; i<extent; i++)
    // Get the attribute value
    strValue = (String)da.getMemberMetadata(DataDirector.COLUMN_EDGE, 0, i, MetadataMap.METDATA_VALUE);
    // Add the value to a drop down or another UI element...

  • Automating Query Builder Functionality?

    Hi,
    My project requires up to date information on the currently live File Repository Server.  I know this information can be found by manually entering a SQL statement into the Query Builder Tool.  However, I have been asked to create a script that performs this task automatically and repeatedly.  When the details of the FRS change, the up to date information must be logged to the Windows Event log from which the information will be lifted by our company's internal log monitoring tool.
    If anyone can give me an idea of how I might do this I would certainly appreciate the help.  I would also be thankful for any suggestions for alternative solutions to the one outlined above.  For instance is there a given pattern I can search any of the BOE log files for to gather the required info?
    I'm a total newbie, so apologies if any of the above sounds a bit naiave or just down right stupid...
    Best Regards
    David

    BOE provides SDK to access the CMS. Please look at http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm for more info on the SDK. You have the option from choosing from Java/webservice or .NET SDK.

  • Activate the Query Builder 2.0 in the application

    Hi all,
    is it possible to activate the query builder inside the application?
    With the custom theme.
    The query builder should be accessible through a link...
    Regards,

    Leonid,
    This is not possible.
    Joel

  • After I edited the SQL in a dataset, I can't use the query builder in any datasets that I create.

    Is there a way to reset BI Publisher Enterprise 11 so that I can use the query builder again instead of having to write out all of the SQL? I know that I can't use the query builder for the dataset that I edited the sql in but I would like to use the query builder for new datasets.
    Thanks,

    Hi J_Constantine,
    Welcome to the Apple Support Communities!
    I understand that your iPad is restarting and not responding sporadically. You have already attempted some great troubleshooting steps and I think you are on the right track. Holding the home button is one step that you take while placing your device in recovery mode to restore. This is the method that I would suggest to restore. For complete information on how to place your device into recovery mode, please reference the attached article. 
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Best regards,
    Joe

  • Is the Query Builder (QuB) fatally flawed? Or I, perhaps?

    I have noticed at lot of issues on both the general and php discussion forums regarding the Query Builder. I just completed the contacts management system tutorial and everything worked fine until the last step which involved using the QuB. Has anyone else got this to work consistently?...

    Folks,
    "slow and not particularly intuitive."
    ADDT in a nutshell?...
    ADDT´s Query Builder is loaded in a browser, which - unlike a standard Windows/Mac/whatever application - has a completely different "memory management", and if you´re loading heaps of data (e.g. SQL results) in a browser, it can get real slow due to that.
    Any real "application" is by nature superior to the Query Builder, but it´s like comparing apples with pizza, as the "runtime environment" is a totally different one.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Query Builder functionality

    Has anyone built a Query Builder Page in the apps that is similar to the standard APEX Query Builder?

    I haven't done exactly this, but remember doing a tabular form genarator (similar to the tabular form wizard in the builder) choosing tables, columns and field types. But that was using Apex 3.2, now that we have jQuery and dynamic actions in Apex 4.0, it should be much easier.
    If you looking for an approach, here's one
    <li>create a left side bar region with tables from schema: report or list based
    select table_name from user_tables<li>On click of the list entry, show a modal dialog of a report based on the columns of the selected table
    SELECT * FROM USER_TAB_COLS WHERE table_name = :<TABLE_NAME ITEM> Show images based on column type ("data_type" in user_tab_cols)
    Checkboxes return the column name for each row
    <li> Have a dynamic action that runs for each checkbox calling a PLSQL to update a collection adding the clicked column name to the the list.
    Refresh a updateable report region which is based on the collection , showing the column, sort order,group by options
    and JS code to move rows up or down (
    move_up code (pseudo code)
    this_row = $(this.triggeringElement).parents('tr:first);
    prev_row = this_row.prev();
    next_row = this_row.next();
    //move up
    prev_row.before(this_row);Then the SQL code generation would concatenate the application arrays containing the column names adding columns one row at a time and adding sort and order options. You would need to some custom PLSQL coding, looping throw each row adding predicates.

  • How to show synonyms in the query builder?

    Hi all,
    is it possible to show the synonyms in query builder? The synonyms are created to the objects from another schema.
    Regards,

    I don't believe so. If you create a view on the foreign schema's table you can use the view in the QB.
    Scott

  • How to find out query name using Elements of the query builder.

    Hi SDNers,
    how to find out query name using Elements of the query .
    thanks,
    satyaa

    Hi,
    For having a look at the relation between BEx tables,check the link below:
    http://wiki.sdn.sap.com/wiki/display/BI/ExploretherelationbetweenBEx+Tables
    -Vikram

  • How to Simulate The Excel LINEST Function in LabVIEW

    This may be a dummy question but I’m pressed for time.  I have used the Linear Fit.vi function to duplicate the Excel LINEST function and it works great.  However, the engineers here want to set the LINEST const option to FALSE.  How can I duplicate this option using LabVIEW?  I’m using LV v.8.5.1.
    Solved!
    Go to Solution.

    Hi Darin,
      Your suggestion to use the General Polynomial Fit.vi lead me in the right direction.  I am able to duplicate the “const” option within the Excel LINEST function by using this vi.  Your response is much appreciated because it saved me considerable time.  Attached is a modified version of the Regressions Demo.vi that was available in LV help.  It shows how the “const” option makes a difference in the linear slope.
      Thanks again,
      Dave J.
    Attachments:
    Regressions Demo for TS1.vi ‏33 KB

  • Some users can't see attributes in the Query Builder

    Hi.
    I have problem. Some users can't see some of attributes of info-object in the Query Designer. Where is the problem?

    I think you would need to give more details on the problem,
    as <b>some</b> users are not able to see <b>some</b> attributes.
    Do they all share the same profile, what is the distinguishing thing among the some users who can see the attributes and the ones who cannot see the attributes.
    Need to drill down further I guess.
    Cheers
    Anurag

  • How to convert the query to function

    Please help to convert the below given query to a function :
    SELECT
      ITEM_CODE, ITEM_NAME,
      ROUND(OPSTK/CNV/ML,2) OPSTK, ROUND(OPVAL,3)OPVAL,
      ROUND(INQTY/CNV/ML,2) INQTY, ROUND(INVAL,3) INVAL,
      ROUND(OUTQTY/CNV/ML,2) OUTQTY,ROUND(OUTVAL,3)OUTVAL,
      ROUND((NVL(OPSTK,0)+NVL(INQTY,0)-NVL(OUTQTY,0))/CNV/ML,2) CLSTK,
      ROUND((NVL(OPVAL,0)+NVL(INVAL,0)-NVL(OUTVAL,0)),3) CL_VAL
    FROM
      SELECT ITEM_CODE, ITEM_NAME, IU_CONV_FACTOR CNV, IU_MAX_LOOSE_1 ML
      FROM   ITEM,ITEM_UOM
      WHERE  ITEM_CODE = IU_ITEM_CODE AND IU_UOM_CODE = ITEM_UOM_CODE
      SELECT SL_ITEM_CODE OP_ICODE,
             SUM(DECODE(RCVD_ISSD,'R',1,'I',-1)*QTY_BU) OPSTK,
             ROUND(SUM(DECODE(RCVD_ISSD,'R',1,'I',-1)*VAL_1),2) OPVAL
      FROM   STK
      WHERE  DT <  TO_DATE(:P249_DATE1,'DD-MM-YYYY')
      GROUP BY SL_ITEM_CODE 
      SELECT SL_ITEM_CODE TX_ICODE,
             SUM(DECODE(RCVD_ISSD,'R',1)*QTY_BU)INQTY,
             SUM(DECODE(RCVD_ISSD,'R',1)*VAL_1) INVAL,
             SUM(DECODE(RCVD_ISSD,'I',1)*QTY_BU)OUTQTY,
             SUM(DECODE(RCVD_ISSD,'I',1)*VAL_1) OUTVAL
      FROM   STK
      WHERE  DT BETWEEN TO_DATE(:P_DATE1,'DD-MM-YYYY')
      AND    TO_DATE(:P249_DATE2,'DD-MM-YYYY')
      GROUP BY SL_ITEM_CODE
    WHERE ITEM_CODE = OP_ICODE(+)
    AND   ITEM_CODE = TX_ICODE(+)
    --AND   ITEM_CODE LIKE :P_ITEMCODE
    ORDER BY ITEM_CODEYogesh

    create or replace type typ_stk is object(
      ITEM_CODE number, ITEM_NAME varchar2(100) ,
      OPSTK number, OPVAL number,
      INQTY number ,  INVAL number,
       OUTQTY number ,OUTVAL number,
       CLSTK number,
       CL_VAL number
    create or replace function fn_stk return typ_stk is
    v_ITEM_CODE number;
    v_ITEM_NAME varchar2(100) ;
    v_OPSTK number;
    v_OPVAL number;
    v_INQTY number ; 
    v_INVAL number;
    v_OUTQTY number ;
    v_OUTVAL number;
    v_CLSTK number;
    v_CL_VAL number;
    begin
      select 1,'item',2,3,4,5,6,7,8,9 into
      v_ITEM_CODE ,
    v_ITEM_NAME ,
    v_OPSTK ,
    v_OPVAL ,
    v_INQTY , 
    v_INVAL ,
    v_OUTQTY ,
    v_OUTVAL ,
    v_CLSTK ,
    v_CL_VAL
      from dual;
      return typ_stk(v_ITEM_CODE ,
                        v_ITEM_NAME ,
                        v_OPSTK ,
                        v_OPVAL ,
                        v_INQTY , 
                        v_INVAL ,
                        v_OUTQTY ,
                        v_OUTVAL ,
                        v_CLSTK ,
                        v_CL_VAL);
    end fn_stk; 
    select treat(fn_stk as typ_stk).item_code item_code,
           treat(fn_stk as typ_stk).ITEM_NAME ITEM_NAME,
           treat(fn_stk as typ_stk).OPSTK OPSTK,
           treat(fn_stk as typ_stk).OPVAL OPVAL,
           treat(fn_stk as typ_stk).INQTY  INQTY,
           treat(fn_stk as typ_stk).INVAL  INVAL ,
           treat(fn_stk as typ_stk).OUTQTY OUTQTY,
           treat(fn_stk as typ_stk).OUTVAL OUTVAL,
           treat(fn_stk as typ_stk).CLSTK CLSTK,
           treat(fn_stk as typ_stk).CL_VAL CL_VAL
      from dualare you expecting something like this ?

  • Search for elements of the Query Builder

    Hi,
    can somebody please give me an idea of where to search for Query elements by the UID.
    My colleague created a standard BEx transport order and did nothing else than release it. Now the order contains different Query elements that should be deleted. We want to check those elements before transporting, but can't find a way...
    Thanks!!!!

    Goto SE16 and check in RSZCOMPDIR Table

  • Functions Not Available in Query Builder

    Application Express 4.1.1.00.23
    When we go into the Query Builder and select a table and then, select a column, this adds a row for that column below the table. In that newly added row, there is a dropdown labeled "Function". However, this drop down is never enabled, i.e. clicking it has no effect.
    Inspecting this element in Chrome, we find that the following error is being thrown at line 502 of qb_core.js
    >
    Uncaught TypeError: Cannot call method 'indexOf' of undefined
    >
    The offending line appears to be:
    var lid = tableDiv.childNodes.id.substring(0,tableDiv.childNodes[i].id.indexOf('_'));
    Has anyone seen this or does anyone have a work around?
    Thanks,
    -Joe                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Mehabub,
    Seems hard to believe that it is working for you. We are on Chrome 21.0.1180.89 m. This is not working for anyone (was originally reported by an End User). BTW, we forced our users to abandon IE in lieu of Chrome. Clearing the cache makes no difference.
    It does not work in Safari. Safari -5.1.7 (7534.57.2) throws errors here:
    >
    qb_core.js:129TypeError: 'undefined' is not an object (evaluating 'e.explicitOriginalTarget.id')
    >
    if (e.explicitOriginalTarget.id == 'QUERYTEXT'){
            if (e.ctrlKey == true && (e.charCode == 97 || e.charCode == 99)) {
              return e.keyCode;
            } else {
              return false;
        }It does not work AT ALL in IE. IE doesn't even add the row for the selected column in the GUI. It throws this error (from F12 Debug):
    >
    SCRIPT5022: DOM Exception: HIERARCHY_REQUEST_ERR (3)
    qb_core.js, line 1389 character 5
    >
    This is the section of the code it dies on:
    if(document.all){
        table.firstChild.appendChild(newTR);
      }else{
        table.appendChild(newTR);
      }It does work in FireFox (15.0). This is the only browser for which this works (for anyone here).
    -Joe

  • Simple Question About Using "Group by" Inside the Oracle XE Query Builder

    Hi,
    I am a new user of Oracle 10g XE and I have built and populated some tables. I am trying to create a view (make a query) via using the Query Builder. I have chosen two attributes, say course_section_ID and trainer_ID in the same table. I choose the "COUNT" function for course_section_no and I check the box for "Group By" with trainer_ID. (I would like to count the number course sections each trainer is teaching). Then I "run" the query and the same error message appears:
    fail to parse SQL query:
    ORA-00904: "COURSE_SECTION"."TRAINER_ID": invalid identifier
    Both attribute names should be valid (as shown above).
    If I only choose course_section_ID and do a COUNT on it, it gives the same error message on course_section_no.
    I did try to do the same thing with the demo HR database. There were no problems with counting a field nor with grouping on a field with HR.
    PLEASE HELP!
    Thanks.

    I have got it. When all the attribute names are in the uppercase, then I can do aggregate functions and "group by" with the GUI.

Maybe you are looking for