How to Name Fields when querying database?

I am trying to query a database and then use "Split Fields" from data manipulation. The table I am querying has 100+ columns which has details about a User. I am able to automate perfectly the way I want.
The only annoying piece is that when I try to query the published data from split fields, I have to look into the database and find the number and then add it here. Is there a way to name these fields in a friendly way - like Username, phone number, DOB,
etc etc
Regards, Vik Singh "If this thread answered your question, please click on "Mark as Answer"

Hi,
the Integration Pack for SQL form Kelverion is much more comfortable:
http://www.kelverion.com/integration-packs/ip-sql-server/
Regards,
Stefan
www.sc-orchestrator.eu ,
Blog sc-orchestrator.eu

Similar Messages

  • How to extract the Physical Query(database Query)

    Hi ,
    How to extract the Physical Query(database Query) from obiee which was fired in obiee
    Regards
    Ranga

    Hi Ranganath,
    Have a look the following links.
    Setting Logging level:
    http://gerardnico.com/wiki/dat/obiee/loglevel
    How to see physical query:
    http://gerardnico.com/wiki/dat/obiee/manage_session_log
    If you are new to OBIEE, spend some hours on the following blog to learn from basics to advanced level.
    http://gerardnico.com/wiki/
    http://obiee101.blogspot.com/
    http://www.rittmanmead.com/blog/
    Hope it helps you.
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • Applying functions to database fields when querying for a form field

    Hi,
    how is it possible to apply trim() or another method to the content of a database field when a query is initiated?
    The actual problem is that there are entries in the database which are entailed by a blank and, because the user is not aware of this fact, he cannot be forced to add a blank or % to the form field he is querying.
    Does anyone have an idea how to solve this issue?
    Thank you very much in advance.
    Message was edited by:
    user492074
    null

    The where clause is built that way:
    WHERE (ETN.trim(ETN_PLZ)=:1)
    The error message:
    ORA-00904: "ETN"."TRIM": invalid identifier
    Actually, I guess that the trim statements should surround ETN.ETN_PLZ but that is obviously not the case.
    Apart from that I did not enter 1 as the value to query for.
    Nevertheless, thank you for your help. Forms version is 10.1.2 by the way.

  • How to pass parameters to query-database function [Solved]

    Dear All,
    I'm working on a BPEL process which reads a file and the data is passes on
    to a web service. In the transform activity to transform data from the source to the
    web serivice parameters, I want to use the query-database function to check if
    the value given in the file exists in the database. I have added a 'If' XSL construct
    for this. Now when the query is static (given with hardcoded where clause), the
    query-database function works fine. But I want to use one of the column in the
    source variable in the SQL query I'm using in the query-database function.
    i.e. If I give the query as below it is working:
    <xsl:if test="orcl:query-database("select empno from emp
    where empno='10'",.....) > 0">
    I want to replace the hardcoded value 10 with the value from the source variable.
    I'm not sure how this should be done. If I refer to the element directly in the XSL
    it is not working. I've shown this below.
    <xsl:if test="orcl:query-database("select empno from emp
    where empno='/tns:Root-Element/tns:Data/:tns:Empno'",.....) > 0">
    Something like above does not work. I'm not sure also if the syntax is correct. It
    does not give any error, but the transformation does not happen.
    Is there any way you can pass any input value as a parameter to the
    query-database function?
    Thanks in advance
    -Ruban

    Hi Dipal,
    The concat works! Thank you very much for the help. I didn't try concat before.
    I was using a alphanumeric field, so it was required to add one more concat
    for enclosing the value with single quotes. For numerical fields, one concat would
    be enough as you had shown.
    My xsl looks like this now:
    <xsl:if test="orcl:query-database(concat(concat("select empno from emp
    where empno='",/tns:Root-Element/tns:Data/:tns:Empno),"'"),
    false(),false(),"jdbc/DbConnection") > 0">
    This works properly.
    Regards,
    -Ruban

  • SAP BW Query in CR2008: only tech names displayed when query is changed

    Hello Experts,
    we have the following constellation / problem:
    SAP Query BW 7.0
    a report built upon this query with Crystal Reports 2008
    the report is currently not using any of the Database fields, is just consists of the layout
    Now we want to change / add the underlying query. But either if we add the new query or replace the old query by the new query, the result is the same:
    only the technical names of the query structures (UIDs) are shown, neither the descriptions nor the technical names (concerning SAP BW) are shown.
    The 'new' query is a slightly changed copy of the old query, I don´t think that is has to do anything with the query.
    As mentioned, everything seems to be perfect as long as we just do 'Create Report upon query', then the descriptions and technical names (not the UIDs) are shown, but not if we add / replace the existing query through another.
    Many thanks for your help in advance !
    Frank

    So the solution seems to be:
    Open the Query Designer and tick 'Allow External Access to this Query' on the Advanced Tab to allow access with OLE DB for OLAP to the query.
    Then the query appears in Crystal Reports under the source system and 'Queries' whereas before it is only accessible directly under the source system.
    If a query is accessible under the source system, the BW Query Driver is used, which seems not to be able to cope correctly with the technical names.
    If accessed via 'Queries', the BW MDX Driver comes into action and not only the tech names but also the description etc. is displayed.

  • Contacts' first name field gets inserted in last name field when syncing

    I have a strange behavior when syncing between iOS and the Mac:
    A few contacts that I have only have a first name, let's say "Anna".
    Everything runs fine on iOS - I write that person a mail and everything's fine. But the moment I write Anna a mail on my Mac the last name field also gets the entry of the first name field, thus leading to the contact "Anna Anna".
    All I can do now is delete the last name field and everything's fine till I write a message on my Mac again.
    Note: this problem only occurs on my Mac, not on iOS.
    Second ote: the moment I'm sending the Mail on my Mac, iOS gets this error over sync.
    Third note: I recognized that Mail.app's autocomplete/history of contacts has somehow stored those accounts like "Anna Anna". Removing the Previous Recipients from the list hasn't solved the problem yet.
    This problem only covers 4 of my contacts, but being the most used ones this is driving me nuts.
    Any help would be greatly appreciated!
    Best regards,
    Tobi

    Yup have tried resetting the contacts setting to switch it the wrong way round, didn't solve the problem - then back to the correct way round, also didn't solve the problem.
    It's just the way that sometimes it shows firstname then lastname, and sometimes it shows lastname then firstname. Not one or the other but both ways round.
    I have txts in my inbox that are first name first, underneath txts that are lastname first.
    All very confusing I'm sure you can imagine!!

  • How update area field when geometry is updated

    hi all,
    plz can someone help me to find solution or give me a way to solve my problem
    i would like to create procedure to recalculate the area of geom and insert it the value in the specified field when the geom is updated.
    I try 2 methods but no one works, the error appears if i update the geometry of parcel
    ------------------------------------------PL/SQL------------------------------------
    ----------------------------------------Oracle 9i---------------------------------------
    CREATE OR REPLACE TRIGGER "GIS"."TRG_PARCEL" BEFORE
    INSERT
    OR UPDATE ON "PARCEL" FOR EACH ROW DECLARE
    BEGIN
    IF INSERTING THEN
    select SDO_GEOM.sdo_area(geom,0.05) into :new.fld_AREA
    from parcel where id_parcel = (select max(id_parcel) from PARCEL) ;
    ELSIF UPDATING THEN
    -----------------1st case to try ------------------------------
    UPDATE PARCEL a
    SET fld_AREA = (select SDO_GEOM.sdo_area(a.geom,0.05)
    from parcel a where NOT SDO_GEOM.RELATE(a.geom,'EQUAL',val_new,0.005) = 'EQUAL' )
    WHERE NOT SDO_GEOM.RELATE(a.geom,'EQUAL',val_new,0.005) = 'EQUAL';
    -----------------2nd case to try ------------------------------
    SELECT SDO_GEOM.SDO_AREA(c.geom, m.diminfo)
    into :new.fld_AREA
    FROM PARCEL c, user_sdo_geom_metadata m
    WHERE m.table_name = 'PARCEL' AND m.column_name = 'GEOM'
    AND old.geom <> :new.geom ;
    end if;
    end;
    thnx for all
    Geomaticien TN

    Hello,
    You may try the following:
    CREATE OR REPLACE TRIGGER "GIS"."TRG_PARCEL" BEFORE
    INSERT OR UPDATE ON "PARCEL" FOR EACH ROW DECLARE
    BEGIN
    :NEW.fld_AREA := SDO_GEOM.sdo_area(:NEW.GEOM,0.05);
    END;
    Thanks,
    Ying
    Edited by: user704655 on Jul 22, 2009 11:37 AM

  • How to display field when using Query Panel..

    Hello,
    I created a Named Criteria with a bindvariables then I drag the Named Criteria I created to the page with ADF Query Panel, then I drag the VO where the Named Criteria to the page with ADF Form.
    now what I need ..
    I need the Fields in ADF Form (input text....) to be displayed befor I cliked the search button. becasue the page design will appear bad. so how can I dislpay them when the page load.
    Thanks,

    May be you need to update the values of the screen field like:
    DATA BEGIN OF LNA_DYNPF OCCURS 1.
    INCLUDE STRUCTURE DYNPREAD.
    DATA END OF LNA_DYNPF.
        l_total = l_total + S10_QUANTITY.
        LNA_DYNPF-FIELDNAME  = 'S10_TOTAL_PRICE'.   " field name
        LNA_DYNPF-FIELDVALUE = l_total.   " value
        APPEND LNA_DYNPF.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
             EXPORTING
                  DYNAME               = l_cporg        " your program
                  DYNUMB               = '0100'  " your screen
             TABLES
                  DYNPFIELDS           = LNA_DYNPF
             EXCEPTIONS
                  INVALID_ABAPWORKAREA = 1
                  INVALID_DYNPROFIELD  = 2
                  INVALID_DYNPRONAME   = 3
                  INVALID_DYNPRONUMMER = 4
                  INVALID_REQUEST      = 5
                  NO_FIELDDESCRIPTION  = 6
                  UNDEFIND_ERROR       = 7
                  OTHERS               = 8.
    Regards,
    Naimesh Patel

  • A record selection problem with a string field when UNICODE database

    We used report files made by Crystal Reports 9 which access string fields
    (char / varchar2 type) of NON-UNICODE database tables.
    Now, our new product needs to deal with UNICODE database, therefore,
    we created another database schema changing table definition as below.
    (The table name and column name are not changed.)
        char type -> nchar type
        varchar2 type -> nvarchar2 type
    When we tried to access the above table, and output a report,
    the SQL statement created from the report seemed to be wrong.
    We confirmed the SQL statement using Oracle trace function.
        SELECT (abbr.) WHERE "XXXVIEW"."YYY"='123'.
    We think the above '123' should be N'123' because UNICODE string
    is stored in nchar / nvarchar2 type field.
    Question:
    How can we obtain the correct SQL statement in this case?
    Is there any option setting?
    FYI:
    The environment are as follows.
        Oracle version: 11.2.0
        ODBC version: 11.2.0.1
        National character set: AL16UTF16

    With further investigating, we found patterns that worked well.
    Worked well patters:
        Oracle version: 11.2.0
        ODBC version: 11.2.0.1
        National character set: AL16UTF16
        Report file made by Crystal Reports 2011
        Crystal Reports XI
    Not worked patters:
        Oracle version: 11.2.0 (same above)
        ODBC version: 11.2.0.1 (same above)
        National character set: AL16UTF16 (same above)
        Report file made by Crystal Reports 2011 (same above)
        Crystal Reports 2008 / 2011
    We think this phenomenon is degraded behavior of Crystal Reports 2008 / 2011.
    But we have to use the not worked patters.
    Anything wrong with us? Pls help.
    -Nobuhiko

  • Unable to verify login name SADMIN - when configure database/import repo

    I am installing siebel 8110 on my test machine (win2k8) with sql2k5 as db. I am having error when database configuration has reached the stage of importing repo.
    Connecting to database...
    Connected.
    Starte common api.
    Unable to verify login name SADMIN.
    Unable to start common api.
    Unable to start common api.
    Error in initiate function.
    As instructed on the install guide, I created the database "Siebel" with collation Latin1_General_CI_AS (tried Latin1_General_BIN, same error). Then run the grantuser.sql from dbsrvr\MSSQL\grantusr.sql with success.
    I can then verify:
    1. Users SADMIN & SIEBEL can be used to login to sql server via sql management studio. Passwords are same as their username, same upper case.
    2. SSE_ROLE is created for "Siebel" database and contains "SADMIN"
    3. "Siebel" database shows owner as "SIEBEL" in properties.
    4. DSN created in the installation process is verified successfully.
    The error I had actually shows it has sucessfully connected to the database and the previous database schema creation was also successful. How would the heck it failed the SADMIN verification?
    In the imprep_prim.log, I can see the command it failed was repimexp.exe /a I /G ENU /u SADMIN /p ***** /c ES8_BB_DSN /d dbo /r "Siebel Repository" /f e:\siebel\dbsrvr\common\mstrep.dat /l e:\siebel\.....
    If I copy the command and run after modifying the "*****" with real password (SADMIN in my case), it gets the same error.
    If run through the database configuration wizard and choose "Import repository", the same error.
    Please advise what can I check to rectify the error. I am frustrated.....
    Edited by: 911762 on 22-Feb-2012 21:31

    Well, I solved it last night by stabing the dark. Just for someone who might have the same problem again.
    There is nothing wrong with the password and username used in my case. The message was completely misleading. It is about the sort order.
    There is no way to change the sort order (binary, dictionaory, etc) of an instance without rebuilding it.
    1) I installed a new instance by selecting the "binary sort" during the installation wizard and use "Latin1_General_BIN" as installation guide suggested.
    2) Then I cleaned up the unfinished configuration progress by deleting the "siebsrvr\LOG\install\state".
    3) run the sql script to create the database with "Latin1_General_BIN" to match the collation of the instance and same grantuser.sql I did before.
    4) Retry the install with "Binary sort" selected.
    Bottomline, sort order and collation have to be "binary sort" and "Latin1_General_BIN" in both the instance and the siebel database that will be created. Maybe both instance and siebel database wizard are set to use "Dictionary, case sensitive" option can work, but I did not try it.
    run sql query "sp_helpsort" in your sql studio to find out the setting of sort order. For binary sort it will show as such.
    Edited by: 911762 on 23-Feb-2012 20:19

  • Missing fields when querying citadel using ADO

    Hello everyone.
    We are logging 372 data points in citadel.
    We have a MS Access application running alongside Lookout that does a lot of processing. We use ADO to query Citadel and pull out the required data across all of the data points.
    However, each time the query is run it returns a different number of fields - sometimes 368, 370 other times the full count , 372.
    Obviously this is quite a problem.
    Any suggestions anyone?
    All the best,
    Scotty

    Hy Scotty,
    Obviously you are using ADO ODBC driver that connects to Citadels ODBC driver. I used sometimes the ODBC driver for Citadel but I did not encounter such problems so far.
    Do you have maybe a small MS Access example and a database example which would reproduce that behavior? I would be interessed to see how you'll get the different amount of results.
    Please, let me know
    Roland

  • How to update field when check box checked

    Hi All,
    I am using oracle Forms 10g,
    I have a block with 20 fields.So first 10 Fields are not updatable and remaining are Editable. So the user will enter the Data and changes the data.And check the Check box and save the data.
    Inside the save button i have written the update code.
    When the user Edit two or three records and click three Check box and click the save button only one record is getting entred in my custom table.
    This is my code please correct me where i went worng.
    This is my code inside my button
    declare
    Begin
    If :ASSEMBLIES_BLOCK.CHECK_IN_OUT='Y' THEN
    IF SHOW_ALERT ('UPDATE_ALERT') = alert_button1 THEN
    LOOP
    XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGOSTICS_UPDATE;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
    NEXT_RECORD;
    END LOOP;
    STANDARD.COMMIT;
    fnd_message.set_string ('Transaction Saved Successfully');
    fnd_message.show;
    ELse
    NULL;
    END If;
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    WHEN OTHERS
    THEN
    NULL;
    END;
    I have write a procedure in program unit.
    XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGOSTICS_UPDATE
    Assemblies block is my current block that user enter the data and click the check box and save the data.
         Update XXTLX_PO_ASSEMBLIES set CASE_NO=nvl(:assemblies_block.CASE_NO,Null),
              PACKAGE_TYPE=nvl(:assemblies_block.PACKAGE_TYPE,null),
              PACKAGE_QTY=nvl(:assemblies_block.PACKAGE_QTY,Null),
              GROSS_WT=nvl(:assemblies_block.GROSS_WEIGHT,Null),
              OPI_DATE=nvl(:assemblies_block.OPI_DATE,Null)               
              Where ponum=:DETAIL_BLOCK.PO_NUMBER
              AND PO_LINE_NUM=:DETAIL_BLOCK.LINE_NUM          
              AND BOM_NO=:assemblies_block.BOM_NO;
    So when we click the multiple check box and save the data only one data is entering.
    Thanks & Regards
    Srikkanth

    I guess I don't understand.
    >
    ... my requirement is only the checked fields need to get updated. If in a block there are 10 records means ill update only the 3rd and 4th record and then click the check box.. and then ill click the save button.
    >
    Is this block a database block or a non-database block? If it is a database block then Oracle can handle updates to that block for you because if keeps tabs if a record was updated or not and you wouldn't need to do an UPDATE statement.
    If it is a non-database block, and you are looping through each record and only updating the items that have checkboxes next to them you would still have to go to the first record then step through each record and see if it needs to be updated. I am just guessing here because I don't think I have a good grasp on what you are doing, but you could change your XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGISTICS_UPDATE package to only update the items that have checkboxes next to them, by checking each checkbox:
    -- Check Case No
    if nvl(:assemblies_block.chase_no_check,'N') = 'Y' then
      update xxtlx_po_assemblies
         set case_no = :assemblies_block.case_no
       where ponum = :detail_block.po_number
         and po_line_num = :detail_block.line_num
         and bom_no = :assemblies_block.bom_no;
    end if;
    -- Check Package Type
    if nvl(:assemblies_block.package_type_check,'N') = 'Y' then
      update xxtlx_po_assemblies
         set package_type = :assemblies_block.package_type
       where ponum = :detail_block.po_number
         and po_line_num = :detail_block.line_num
         and bom_no = :assemblies_block.bom_no;
    end if;
    -- Check Package Qty
    .

  • How to Display Columns when Query is returning No Columns?

    I am Creating a Load Status Dash Board and I want to Dispaly Columns when Load is Not Started  too. As of Now My query is returning no Results which needs to Modified and Display Columns and Status Not Started to it? Could you please suggest any solutions to it? Thanks

    Hi,
    if you like to show a message instead of NO RESULTS . then you could easily get it by changing the custom text in the properties
    if you want it in a table format . you need to have a table with some data according to the reporting requirement
    thanks

  • How to use index, when query has decode/case

    Hi,
    I have the following query
    i have a index on party_id,party_type_Code in the zx_party_tax_profile table But this index is not used as Iam using a decode on the columns of the zx_party_tax_profile table,
    Is there any way i can rewrite the query so that it uses index
    sELECT /*+ INDEX(ZX_PARTY_TAX_PROFILE_U2) */ party_tax_profile_id FROM (SELECT
    ThirdPartyTaxProfileEO.SUPPLIER_FLAG,
    ThirdPartyTaxProfileEO.CUSTOMER_FLAG,
    ThirdPartyTaxProfileEO.SITE_FLAG,
    ThirdPartyTaxProfileEO.PARTY_TAX_PROFILE_ID,
    ThirdPartyTaxProfileEO.PARTY_ID,
    ThirdPartyTaxProfileEO.REP_REGISTRATION_NUMBER,
    ThirdPartyTaxProfileEO.OBJECT_VERSION_NUMBER,
    ThirdPartyTaxProfileEO.REGISTRATION_TYPE_CODE,
    ThirdPartyTaxProfileEO.COUNTRY_CODE,
    ThirdPartyTaxProfileEO.MERGED_TO_PTP_ID,
    ThirdPartyTaxProfileEO.MERGED_STATUS_CODE,
    ThirdPartyTaxProfileEO.PROGRAM_APP_NAME,
    ThirdPartyTaxProfileEO.PROGRAM_NAME,
    PartyPEO.PARTY_NAME,
    PartyPEO.PARTY_ID AS PARTY_ID1,
    PartyPEO.PARTY_NUMBER,
    decode(ThirdPartyTaxProfileEO.CUSTOMER_FLAG,
    'Y',decode(ThirdPartyTaxProfileEO.SUPPLIER_FLAG,
    'Y', 'SC',
    'C'),
    decode(ThirdPartyTaxProfileEO.SUPPLIER_FLAG,
    'Y', 'S',
    NULL)
    ) AS PARTY_USAGE,
    ThirdPartyTaxProfileEO.REP_REGISTRATION_NUMBER AS TAX_REG_NUMBER,
    LkupPartyUsage.MEANING AS PARTY_USAGE_DESC,
    PartyPEO.PARTY_NAME AS PARTY_FULL_NAME,
    PartyPEO.ADDRESS1||','||
    PartyPEO.ADDRESS2||','||
    PartyPEO.ADDRESS3||','||
    PartyPEO.CITY||','||
    PartyPEO.postal_code||','||
    PartyPEO.COUNTRY AS ADDRESS,
    PartyPEO.COUNTRY AS COUNTRY_CODE_TCA,
    TerritoryPEO.TERRITORY_SHORT_NAME AS COUNTRY_NAME,
    PartyPEO.JGZZ_FISCAL_CODE AS TAX_PAYER_ID,
    PartyPEO.DUNS_NUMBER_C AS DUNS_NUMBER,
    PartyPEO.Party_Number as Party_Num_Calc,
    null as REGISTRATION_TYPE_NAME,
    null as ROUNDING_LEVEL_NAME,
    null as ROUNDING_RULE_NAME,
    null as COUNTRY_NAME_PTP,
    'ZX_PARTY_TAX_PROFILE' as TAX_REPORTING_ENTITY_CODE
    FROM ZX_PARTY_TAX_PROFILE ThirdPartyTaxProfileEO,
    HZ_PARTIES PartyPEO,
    FND_LOOKUP_VALUES_VL LkupPartyUsage,
    FND_TERRITORIES_VL TerritoryPEO
    WHERE ThirdPartyTaxProfileEO.PARTY_ID = PartyPEO.PARTY_ID AND
    LkupPartyUsage.LOOKUP_CODE = decode(ThirdPartyTaxProfileEO.CUSTOMER_FLAG,
    'Y',decode(ThirdPartyTaxProfileEO.SUPPLIER_FLAG,
    'Y', 'SC',
    'C'),
    decode(ThirdPartyTaxProfileEO.SUPPLIER_FLAG,
    'Y', 'S',
    NULL)
    ) AND
    PartyPEO.COUNTRY = TerritoryPEO.Territory_Code (+) AND
    LkupPartyUsage.LOOKUP_TYPE = 'ZX_TP_PARTY_USAGE'
    ORDER BY UPPER(PARTY_FULL_NAME)) QRSLT WHERE UPPER(PARTY_NAME) IS NOT
    NULL
    Any help will be appreciated

    You can rewrite your where clause to not use decode or case statements e.g. this:
      AND LkupPartyUsage.LOOKUP_CODE = DECODE( ThirdPartyTaxProfileEO.CUSTOMER_FLAG
                                , 'Y', DECODE( ThirdPartyTaxProfileEO.SUPPLIER_FLAG, 'Y', 'SC', 'C' )
                                     , DECODE( ThirdPartyTaxProfileEO.SUPPLIER_FLAG, 'Y', 'S', NULL ) )
                                     )can be rewritten to this:
    and (
          ( ThirdPartyTaxProfileEO.CUSTOMER_FLAG = 'Y'  AND
              ((ThirdPartyTaxProfileEO.SUPPLIER_FLAG = 'Y' AND LkupPartyUsage.LOOKUP_CODE = 'SC') or
                ThirdPartyTaxProfileEO.SUPPLIER_FLAG != 'Y' AND LkupPartyUsage.LOOKUP_CODE = 'C')) or
          ( ThirdPartyTaxProfileEO.CUSTOMER_FLAG != 'Y'  AND
              ((ThirdPartyTaxProfileEO.SUPPLIER_FLAG = 'Y' AND LkupPartyUsage.LOOKUP_CODE = 'S') or
                ThirdPartyTaxProfileEO.SUPPLIER_FLAG != 'Y' AND LkupPartyUsage.LOOKUP_CODE is null))
        )It's not as sussinct, but it avoids the use of functions that could be preventing the optimiser from using an index.

  • Selecting first N characters when querying the CMS

    I am trying to retrieve only the first 6 characters of the SI_KEYWORDS field when querying the CMS from within the SDK.  When testing within QueryBuilder the following in bold does not work, although LEFT is a command for achieving this in SQL.  Can someone help me to know if this is possible within QueryBuilder SQL and if so how to achieve it?
    Select LEFT(SI_KEYWORD,6) as keyword, SI_NAME From CI_INFOOBJECTS, CI_SYSTEMOBJECTS, CI_APPOBJECTS WHere SI_KIND='webi'
    and SI_KEYWORD != '' and SI_KEYWORD != 'Hidden' and SI_KEYWORD != 'Auditor'
    ORDER BY keyword, SI_NAME
    Thanks,
    Dave

    Hi Ted,
    Thanks for your reply.  I understand the querying of the CMS better after reading it. 
    We are utilizing the keywords field and the description field to obtain some metadata about our reports that I need to access from java code.  Unfortunately, we have 4 different pieces of metadata we want to store and only the 2 fields in which to store them, so we are using delimiters in the keywords field to separate the values.  For example, we have "value1value2" as the keyword field in one report, but in another report if value2 is blank we simply have "value1".  This works well as we just parse the delimiters in java and we can store the 2 different values in the one keyword field.  The part that is not working well with this approach, though, is ordering the results.  We want to order the reports by value1 and then by SI_NAME.  Because some of the reports have value1value2 and others just have value1 it throws this ordering off if I use "ORDER BY SI_KEYWORD, SI_NAME". 
    I've been looking for ways to get around this without doing a re-sort in Java and this is all I could think of:
    1. Are there some additional user-defined fields that we could expose in the report properties in the CMC, and then retrieve via Query Builder / SDK?  Something like SI_UDF1, SI_UDF2, etc.  All we could find were keywords and description.
    2. Using a SUBSTR or LEFT-like function on the keywords field so that it only gets value1 for sorting purposes only, but still retrieve the entire keywords field in the SELECT.  I understand now based on your explanation that this will not work as (if I understand correctly) it would modify the report object in the CMS to set the keyword to the truncated value.
    Any advice you could offer would be greatly appreciated.  I know I can always bite the bullet and do the sorting java-side once I get the resultset back, but I was hoping to avoid the performance hit of doing that.
    Thanks,
    Dave

Maybe you are looking for

  • A 16:9 to 4:3 problem

    Someone provided me with (2) DVD's which have video on them that plays in a 4:3 player window when I pop it into DVD Player on the Mac. However, the video is obviously squeezed. When I play the DVD's on my HDTV 16 x 9 TV (and my external DVD player),

  • Siebel BIP Parameterized Report Date Comparison

    Hello, we are working on a Siebel/BI Publisher integration and are using parameterized reports. In the parameters we would like to enter 2 dates, "From" and "To" date to receive eg all Service Requests (from an employee) in this timeframe. <?param@be

  • Grant Permission on SPListItemCollection Level

    Hello, I have a document library.To acheive item level security,i broke the inheritance till item level. Can we add/remove users to multiple items at a time programatically? Thanks, Sree

  • EE SDK install / PC Tools Spyware Doctor / trojan-spy.flux

    While installing java_ee_sdk-5_04-windows.exe ( on Windows XP Professional SP2) I receive a message from Spyware Doctor that it has blocked a malicious action attempting to access windowsnativetoolkit_3.0.2_1.exe by trojan-spy.flux. I've spent some t

  • PO line tem service no

    Hi All, Even though I have posted this query in MM forum, still if somone from this forum can please help I need to get field PO line tem service no (SRVPOS) by passing PO no (EBELN) & order no(AUFNR). How can I get it? As I have checked table EKKN,E