Querying a datasource using this format - {call displayLocation()}?

I've inherited a CF app and surprisingly I've never encountered calling a function or stored prodcedure like this before. I'm having trouble locating the datasource, I'm guessing it may be an Access db?
<cfquery datasource="mydsn" name="myvariable">
     {call displayLocation()}
</cfquery>

Bah, figures. A half hour later I find what I'm looking for. It's just another MSSQL Server SP.

Similar Messages

  • How to use this function call function 'REUSE_ALV_COMMENTARY_WRITE' in alv

    hi all
    thanks in advance
    how to use this function in alv programming
    call function 'REUSE_ALV_COMMENTARY_WRITE'
    why use and what purpose use this function plz tell me details
    plz guide me
    thanks

    Hi
    see this exmaple code where i had inserted a LOGO by useing this FM
    *& Report  ZTEST_ALV_LOGO
    REPORT  ztest_alv_logo.
    TYPE-POOLS : slis.
    *ALV Formatting tables /structures
    DATA: gt_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: gt_events   TYPE slis_t_event.
    DATA: gs_layout   TYPE slis_layout_alv.
    DATA: gt_page     TYPE slis_t_listheader.
    DATA: gs_page     TYPE slis_listheader.
    DATA: v_repid     LIKE sy-repid.
    *ALV Formatting work area
    DATA: w_fieldcat TYPE slis_fieldcat_alv.
    DATA: w_events   TYPE slis_alv_event.
    DATA: gt_bsid TYPE TABLE OF bsid WITH HEADER LINE.
    INITIALIZATION.
      PERFORM build_events.
      PERFORM build_page_header.
    START-OF-SELECTION.
    *perform build_comment.     "top_of_page - in initialization at present
      SELECT * FROM bsid INTO TABLE gt_bsid UP TO 10 ROWS.
    *perform populate_for_fm using '1' '3' 'BUKRS' '8' 'GT_BSID' 'Whee'.
    *USING = Row, Column, Field name, display length, table name, heading
    *OR
      PERFORM build_fieldcat.
      gs_layout-zebra = 'X'.
    *top of page event does not work without I_callback_program
      v_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program                = v_repid
          i_structure_name                  = 'BSID'
       i_background_id                   = 'ALV_BACKGROUND'
          i_grid_title                      = 'This is the grid title'
      I_GRID_SETTINGS                   =
          is_layout                         = gs_layout
          it_fieldcat                       = gt_fieldcat[]
          it_events                         = gt_events[]
        TABLES
          t_outtab                          = gt_bsid.
    Form..............:  populate_for_fm
    Description.......:  Populates fields for function module used in ALV
    FORM populate_for_fm USING p_row
                               p_col
                               p_fieldname
                               p_len
                               p_table
                               p_desc.
      w_fieldcat-row_pos      = p_row.          "Row Position
      w_fieldcat-col_pos      = p_col.          "Column Position
      w_fieldcat-fieldname    = p_fieldname.    "Field name
      w_fieldcat-outputlen    = p_len.          "Column Lenth
      w_fieldcat-tabname      = p_table.        "Table name
      w_fieldcat-reptext_ddic = p_desc.         "Field Description
      w_fieldcat-input        = '1'.
      APPEND w_fieldcat TO gt_fieldcat.
      CLEAR w_fieldcat.
    ENDFORM.                    " populate_for_fm
    *&      Form  build_events
    FORM build_events.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = gt_events.
      READ TABLE gt_events
                 WITH KEY name =  slis_ev_user_command
                 INTO ls_event.
      IF sy-subrc = 0.
        MOVE slis_ev_user_command TO ls_event-form.
        APPEND ls_event TO gt_events.
      ENDIF.
      READ TABLE gt_events
                 WITH KEY name =  slis_ev_top_of_page
                 INTO ls_event.
      IF sy-subrc = 0.
        MOVE slis_ev_top_of_page TO ls_event-form.
        APPEND ls_event TO gt_events.
      ENDIF.
    ENDFORM.                    " build_events
    *&      Form  USER_COMMAND
    When user command is called it uses 2 parameters. The itab
    passed to the ALV is in whatever order it currently is on screen.
    Therefore, you can read table itab index rs_selfield-tabindex to get
    all data from the table. You can also check r_ucomm and code
    accordingly.
    FORM user_command USING  r_ucomm     LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
      READ TABLE gt_bsid INDEX rs_selfield-tabindex.
    error checking etc.
      SET PARAMETER ID 'KUN' FIELD gt_bsid-kunnr.
      CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
    ENDFORM.                    "user_command
    *&      Form  top_of_page
    Your own company logo can go here if it has been saved (OAOR)
    If the logo is larger than the size of the headings in gt_page,
    the window will not show full logo and will have a scroll bar. Thus,
    it is a good idea to have a standard ALV header if you are going to
    use logos in your top of page.
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = gt_page
          i_logo             = 'ENJOYSAP_LOGO'.
    ENDFORM.                    "top_of_page
    *&      Form  build_fieldcat
    *Many and varied fields are available here. Have a look at documentation
    *for FM REUSE_ALV_LIST_DISPLAY and REUSE_ALV_FIELDCATALOG_MERGE
    FORM build_fieldcat.
      w_fieldcat-fieldname  = 'BUDAT'.
      w_fieldcat-seltext_m  = 'Dte pst'.
      w_fieldcat-ddictxt(1) = 'M'.
      w_fieldcat-edit = 'x'.
    Can change the position of fields if you do not want them in order
    of the DDIC or itab
    w_fieldcat-row_pos = '1'.
    w_fieldcat-col_pos = '10'.
      APPEND w_fieldcat TO gt_fieldcat.
      CLEAR w_fieldcat.
    ENDFORM.                    " build_fieldcat
    *&      Form  build_page_header
          gt_page is used in top of page (ALV subroutine - NOT event)
          *H = Header, S = Selection, A = Action
    FORM build_page_header.
    For Headers, Key is not printed and is irrelevant. Will not cause
    a syntax error, but is not used.
      gs_page-typ  = 'H'.
      gs_page-info = 'Header 1'.
      APPEND gs_page TO gt_page.
      gs_page-typ  = 'H'.
      gs_page-info = 'Header 2'.
      APPEND gs_page TO gt_page.
    For Selections, the Key is printed (bold). It can be anything up to 20
    bytes. It gets printed in order of code here, not by key value.
      gs_page-typ  = 'S'.
      gs_page-key  = 'And the winner is:'.
      gs_page-info = 'Selection 1'.
      APPEND gs_page TO gt_page.
      gs_page-typ  = 'S'.
      gs_page-key  = 'Runner up:'.
      gs_page-info = 'Selection 2'.
      APPEND gs_page TO gt_page.
    For Action, Key is also irrelevant.
      gs_page-typ  = 'A'.
      gs_page-info = 'Action goes here'.
      APPEND gs_page TO gt_page.
    ENDFORM.                    " build_page_header

  • Query Program ! use this for your query's like SQLPlus , copy-paste and run

    H!
    Like the Subject Title:
    If you have PHP and Oracle then you can use this if you are learning the query's or you don't wanna use SQLPlus.
    BTW this is my first script, but it works fine here.
    //the code
    <?//made by [email protected]
    IF($_SERVER['REQUEST_METHOD'] == 'POST' AND isset($_POST['username']) AND isset($_POST['password'])) {
    //gebruik het juiste dll bestand.
    dl("php_oci8.dll");
    define("USERNAME",$username);
    define("PASSWORD",$password);
    $conn      = OCILogon(USERNAME,PASSWORD);
    $sql      = stripslashes($sql);
    IF($btnRollback){
         ocirollback($conn);
         echo "Rollback done !";
    IF($btnCommit){
    ocicommit($conn);
    echo "Committed !";
    IF($btnVersion){
         echo OCIServerVersion($conn);
    IF($btnSql){
    $stmt      = OCIParse($conn,$sql);
    IF(OCIExecute($stmt) === TRUE){
              $msg = "The Query was oke !";
    if (OCIStatementType($stmt) == "SELECT") {
         $ncols     = OCINumCols($stmt);
         echo "<table width=\"100%\" border=\"1\" cellspacing=\"1\" cellpadding=\"0\" bordercolor=\"#FFFFFF\" bordercolorlight=\"#FFFFFF\" bordercolordark=\"#FFFFFF\">\n";
         echo "<tr>\n";
         for($i=1;$i<=$ncols;$i++){
         $column_name[$i] = OCIColumnName($stmt,$i);     //tabel kopjes
              $column_type[$i] = OCIColumnType($stmt,$i);     //extra info
    $column_size[$i] = OCIColumnSize($stmt,$i);      //extra info
              echo "<td class=\"row\"><b>$column_name[$i]</b></td>\n";
         echo "</tr>\n";
         while(OCIFetch($stmt)){
         echo "<tr>\n";
              for($i=1;$i<=$ncols;$i++){
         $column_value[$i] = OCIResult($stmt,$i);
                   echo "<td class=\"row\">$column_value[$i]</td>\n";               
         echo "</tr>\n";
         //extra info
         echo "<tr>\n";
         for($i=1;$i<=$ncols;$i++){
              echo "<td class=\"row\"><i>$column_type[$i] $column_size[$i]</i></td>\n";
         echo "</tr>\n";
         echo "</table>\n";
         OCIFreeStatement($stmt);
    OCILogoff($conn);
    ?>
    <style type="text/css">
    <!--
    .row { 
         background-color: #EEEEEE;
         border: #000000;
         border-style: solid;
         border-top-width: 1px;
         border-right-width: 1px;
         border-bottom-width: 1px;
         border-left-width: 1px;
         font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt;
    -->
    </style>
    <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="submit">
    <hr>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="37%">
    <textarea name="sql" cols="60" rows="10"><?echo $sql;?></textarea>
    </td>
    <td width="63%" valign="top">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="12%">Username:</td>
    <td width="88%">
    <input type="text" name="username" value="<?echo $username;?>">
    </td>
    </tr>
    <tr>
    <td width="12%">Password:</td>
    <td width="88%">
    <input type="password" name="password" value="<?echo $password;?>">
    </td>
    </tr>
    <tr>
    <td width="12%"> </td>
    <td width="88%"> </td>
    </tr>
    <tr>
    <td width="12%">
    <input type="submit" name="btnSql" value="Sql">
    </td>
    <td width="88%">
    <input type="submit" name="btnCommit" value="Commit">
    <input type="submit" name="btnRollback" value="Rollback">
    <input type="submit" name="btnVersion" value="Version">
    </td>
    </tr>
    </table>
    <?echo $msg;?> </td>
    </tr>
    </table>
    <br>
    <font face="Verdana, Arial, Helvetica, sans-serif" size="1">don't use ;</font>
    </form>

    But your script is not outputing the result of the query. So how do we view the returned resultset.

  • TS3356 Simple question I hope! I want to buy a camcorder by JVC but it uses a format called AVCHD. I believe this has to be converted before it can be used on iMovie. Can anyone tell me, in simple language, if this is so and how easy it is?

    I want to buy a new camcorder and am considering one by JVC. This one, plus a few others such as Sony use AVCHD. I gather this would be need converting before any editing can be done in imovie?? I cant find a simple answer to this question. It seems strange to me that Mac dont appear to support AVCHD when so many video camera companies use it. Can anyone advise please, in simple language as I am far from a computer geek!!!
    Is conversion a complicated or time consuming process and would it be simpler to fo for an MP4 type

    Most AVCHD camcorders can be used in iMovie without any conversion needed if they are imported directly from the camcorder.
    When you hear someone mention that you must convert AVCHD to use in iMovie, it is usually because they removed the files from the camcorder and only removed part of the files and folders. You need all of them to import to iMovie.
    However, you should check to see if the camcorder you are choosing will work in iMovie. Here is a list of compatible camcorders.
    http://help.apple.com/imovie/cameras/en/index.html?lang=en_US

  • What is this format called? How do I do it?

    Hey! I want to know how to format a site such that the content is on the middle column with a different background color as the main background, such as on bodybuilding.com
    I don't know what this type of thing is called so I couldn't search for any answers yet.
    Picture help in case I'm not making much sense:

    Hi nitro7,
    Welcome to the world of web designing. To get what you are trying to achieve, you will have to set the background color for the page (blue in this case), and then create a container DIV for the rest of the content with the background color white.
    Before you proceed,  I would suggest that you take up a tutorial on HTML and CSS. Later, use David Powers's tutorial Web page design | How to make and style a web page in Dreamweaver CC
    Thanks,
    Preran

  • Query for output in this format

    Hi,
    I have data in following format:
    CLIENT REVNO QTY1 RATE1 QTY2 RATE2 QTY3 RATE3
    cln1 1 50 120 60 130 70 140
    cln1 3 10 100 20 50 30 25
    cln1 4 40 50 30 25 40 15
    cln1 2 20 120 10 60 20 30
    cln1 5 25 70 15 35 30 18
    I require o/p in following format:
    cln1 25 70 40 50 10 100 20 120 50 120
    cln1 15 35 30 25 20 50 10 60 60 130
    cln1 30 18 40 15 30 25 20 30 70 140
    In the first record of above result "25" is qty1 of revno=5 & "70" is rate1 of revno=5
    similarly, "40" is qty1 of revno=4 and "50" is rate of revno=4 and so on ..
    In the second record, "15" is qty2 of revno=5 and "35" rate2 of revno=5 and so on.
    So basically,
    it should be qty1 & rate1 of revno 1through 5 in 1st records then
    qty2 & rate2 of revno 1 through 5 in 2nd record
    and qty3 &rate3 of revno 1to5 in 3rd record
    Any Suggestions

    Hi Mohan,There is some problem with your query . It does not function properly.can you check it again?                                   
    Also, one client can have at the most 10 revno and at least 1 revno.                         
    So for a client the query would execute for his last 5 revno.                         
    client     revno      qty1     rate1     qty2     rate2     qty3     rate3
    cln1     1     120     10     130     5     110     20
    cln1     2     105     20     122     7     150     5
    cln1     3     115     25     140     50     110     10
    cln1     4     124     10     145     5     80     40
    cln1     5     50     100     100     50     25     200
    cln1     6     35     40     40     50     25     60
    cln2     1     15     5     18     9     21     11
    cln2     2     16     7     9     9     11     5
    cln2     3     7     7     9     9     11     11
    cln3     1     12     20     15     25     20     30
    The output at the bottom is in the format given below:                    
    Format:
         rev5          rev4          rev3          rev2          rev1     
    cln1     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1
    cln1     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2
    cln1     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3
    cln2     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1
    cln2     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2
    cln2     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3
    cln3     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1
    cln3     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2
    cln3     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3
    Required Output:
    cln1     35     40     50     100     124     10     115     25     105     20
    cln1     40     50     100     50     145     5     140     50     122     7
    cln1     25     60     25     200     80     40     110     10     150     5
    cln2     7     7     16     7     15     5                    
    cln2     9     9     9     9     18     9                    
    cln2     11     11     11     5     21     11                    
    cln3     12     20                                        
    cln3     15     25                                        
    cln3     20     30

  • Using conditional formating on member columns in essbase hirarchy in obiee

    Hi All,
    I ws analysing an existing sample PnL report in obiee 11g.
    Wht I found that there is conditional formating used on 'Balance' member column based on one of the member column (net income) from 'income statement' hirarchy of essbase cube. I tried to open the 'Conditional Format' tab and tried to look into the conditional formating based on the columns above. Wht I noticed that , in the filter, some values are uses such as equal to is in 300000 and so on.. I thought of editing the value to specify another value, but could not edit the value as it is non editable.
    Can anyone tell me how to specify such value.? I tried to furhter investigate and found that is is actually comming from net income member, but I am not able to edit it modify it.. I wanted to used this formatting feature in my another report which I created from scratch, but not able to understand how to do it..
    Any help, please?
    Thanks and Regards
    Santosh

    Hi Dhar,
    Thank you for your quick reply.
    I have added couple of screenshot to flickr to clarify my problem: http://www.flickr.com/photos/93812026@N07/
    Picture 1:
    Yes, your assumption is correct. We are using gen x level members in report, but these members are shared members or Dynamic calculations i.e. we have created custom account hierarchy for them.
    Picture 2:
    Basic situation, when I query that hierarchy. I.e. it returns account names for both members in the hierarchy. Furthermore, so far I have used only one pair of account, i.e. WOC
    Picture 3:
    I'm able to "merge" these two account members simply by adding "case when" statement to account dimension object. It shows values correctly in a table (picture 4)
    Picture 5:
    BUT, when adding other accounts to query filter, the returned values are no longer correct, but some sort of multiplication.
    --> it seems, that OBIEE cannot figure the context it should do the calculation against and I don't know how to define it there.
    Ps. Next step was, that we tried to use dashboard prompt to return correct values to calculations, but after being able calculate correctly values for these above mentioned accounts, we ran into problem, when trying to add entity level to dashboard prompt (OBIEE gave an error refering Essbase). I believe this is a bug in this version.
    -Esa-

  • Use WSDL to call Webservice

    Guys, I am on 6.20
    I read through the documentation on some related topics but still don't have a clear idea of how to proceed.
    I have a WSDL provided to me. I need to use this and call the Webservice from my BSP.
    I have seen examples where SOAP message is hardcoded and tried to do similar using information for mWSDL but am getting a HTTP comm. failure?
    Whats the preferable method to use WSDL and call the webservice in 6.20.?
    Do I have to create a XSLT program to parse a WSDL and provide something which  I could then use to make the call?
    Appreciate it..
    Thanks.

    Look at the below thread to consume webservice..
    Re: Consuming WebService, + SOAP HEADER AUTH:
    <i>Do I have to create a XSLT program to parse a WSDL and provide something which I could then use to make the call?</i>
    Yes, to translate from XML to ABAP you can use XSLT.
    To know <b>more about XSLT</b> check the below links:
    reference link:
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/9d7348389211d596a200a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/576670dca511d4990b00508b6b8b11/content.htm
    Upload XML to internal table and vice versa in SAP 4.6C
    /people/r.eijpe/blog/2005/11/10/xml-dom-processing-in-abap-part-i--convert-an-abap-table-into-xml-file-using-sap-dom-approach
    <i>*Reward each useful answer</i>
    Raja T
    Message was edited by:
            Raja Thangamani

  • PRE 9 - Why can I not use flv formats in it?

    There seems to be a fix or plug-in for every other version of PRE.  Why can't these fixes be used for PRE 9 - surely Adobe knows people want to use this format for editing - they let you load up to this format so why not include an editing function...?

    A rhetorical question, right? Otherwise, you won't get an answer from any of us. We're just fellow users.
    I'd recommend you contact Adobe and let them know how you feel. There's even a feature request area.
    Click the Contact button at the top of this web page.

  • I cannot burn anything using this program

    I have read the instructions, I have read the Hot Tips, and I have even saved an image file and nothing. I have checked settings and preferences and wasted years of time trying to use this so called cool program. I am using an external burner and it is recognized by the program. What the heck is going on and why isn't this program working. The DVD is encoded as well. It even gets my hopes up and runs through the burning process and then burns the disc with nothing on it. Pointless! This is DVD 6.

    I'll try the disk image again. I have created on before, but don't actually get to use it. I'll open the disk image file and it has, of course, two files in it. It doesn't prompt or I haven't seen info in iDVD to burn the image. I'll check the link you sent me.
    After you have created your disk image, you can test it to see if it works properly. Open DVD Player (Applications folder). Then, click on your disk image to mount it on the desktop. Now, you should see your movie start to play using DVD Player. If it plays correctly, you should be able to burn it.
    To burn a DVD from a disk image, open Disk Utility ( Applications->Utilities->DU). Drag your disk image into the left panel. Click on it to select it, then click on 'Burn' on the top left. Follow the instrucions re: inserting your blank DVD disk. You should get a burned DVD in a few minutes.
    (These instructions should be one the links I posted...).
    The disc will go through the burn and eject the disk with the message burning completed.
    You actually get that message, the disk is ejected, but nothing is burned onto it? It won't play in the computer or on a DVD player?
    Then when I try to shut the program down it won't. A message of "cleaning up" prompts in the program and never completes.
    You mean that you cannot close your iDVD project? Even if you have problems at this point, your disk should have burned already.
    Are you referring to your iDVD project as 'the program'?
    When you try it again, start with creating a disk image. Be sure to 'delete encoded assets' before you have iDVD make the disk image.
    Also after iMovie there is an option to send to iDVD so themes and what not can be added. I usually send the movie that way.
    Sometimes that process causing double rendering. Try saving and quitting your iMovie. Open your iDVD project, or better, create a new one. Then, drag and drop your movie into it from within iDVD, via the 'media' pane.
    Honestly, it should not be this difficult for you to get a 10min movie burned to disk

  • Simple query but not using index..please help??

    I do have this column indexed. Why my query is not using this index?
    Any help .
    select count(*) from v_dis_sub_har;
    SQL>
      COUNT(*)
       4543289
    1 row selected.
    SQL>
    select vzw_vendor_id , count(*)
    from v_dis_sub_har
    group by vzw_vendor_id
    SQL>   2    3    4 
    VZW_VENDOR_ID   COUNT(*)
           200091     908653
           200013     908659
           200012     908659
           200057     908659
           200031     908659
    5 rows selected.
    SQL> SQL>
    explain plan for
    select
    event_seq
    from v_dis_sub_har b 
    where b.VZW_VENDOR_ID='200013'
    -- and b.status='P' and b.extract_date is null
    SQL>   2    3    4    5    6    7 
    Explained.
    SQL> SQL>
    select plan_table_output from table(dbms_xplan.display)
    SQL> SQL>   2 
    PLAN_TABLE_OUTPUT
    Plan hash value: 2852398983
    | Id  | Operation         | Name          | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |               |   908K|  7986K|  3132  (16)| 00:00:38 |
    |*  1 |  TABLE ACCESS FULL| V_DIS_SUB_HAR |   908K|  7986K|  3132  (16)| 00:00:38 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
       1 - filter("B"."VZW_VENDOR_ID"=200013)
    13 rows selected.
    SQL> SQL>

    You are right Justin. Oracle is not stupid as you may want to say some times when things do not happen according to you. I just created a bitmap index on status field and look what appened. Som times it uses bitmap index and some times it does not. And the reason is clear. Row count by status. 'S' status uses bitmap index where 'P' does not.
    Thanks for your help.
    select   status, count(*)
    from v_dis_sub_har
    group  by status
    ;SQL>   2    3    4 
    S   COUNT(*)
    A    5844982
    P    2312759
    S      20178
    3 rows selected.
    SQL>
    explain plan for
    select
    event_seq
    from v_dis_sub_har b 
    where
    --b.VZW_VENDOR_ID=200013
    --  and
    b.status='S'
    --and b.extract_date is null
    select plan_table_output from table(dbms_xplan.display)
    SQL>   2    3    4    5    6    7    8    9   10 
    Explained.
    SQL> SQL> SQL> SQL>   2 
    PLAN_TABLE_OUTPUT
    Plan hash value: 829738689
    | Id  | Operation                    | Name                         | Rows  | Bytes | Cost (%CPU)| T
    ime     |
    PLAN_TABLE_OUTPUT
    |   0 | SELECT STATEMENT             |                              | 20290 |   118K|  2772   (1)| 0
    0:00:34 |
    |   1 |  TABLE ACCESS BY INDEX ROWID | V_DIS_SUB_HAR                | 20290 |   118K|  2772   (1)| 0
    0:00:34 |
    |   2 |   BITMAP CONVERSION TO ROWIDS|                              |       |       |            |
            |
    |*  3 |    BITMAP INDEX SINGLE VALUE | V_DISPATCH_SUBSCRIPTION_NDX2 |       |       |            |
            |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       3 - access("B"."STATUS"='S')
    15 rows selected.
    SQL> SQL> set line 120
    SQL> /
    PLAN_TABLE_OUTPUT
    Plan hash value: 829738689
    | Id  | Operation                    | Name                         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |                              | 20290 |   118K|  2772   (1)| 00:00:34 |
    |   1 |  TABLE ACCESS BY INDEX ROWID | V_DIS_SUB_HAR                | 20290 |   118K|  2772   (1)| 00:00:34 |
    |   2 |   BITMAP CONVERSION TO ROWIDS|                              |       |       |            |          |
    |*  3 |    BITMAP INDEX SINGLE VALUE | V_DISPATCH_SUBSCRIPTION_NDX2 |       |       |            |          |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       3 - access("B"."STATUS"='S')
    15 rows selected.
    SQL>
    explain plan for
    select
    event_seq
    from v_dis_sub_har b 
    where
    --b.VZW_VENDOR_ID=200013
    --  and
    b.status='P'
    --and b.extract_date is null
    select plan_table_output from table(dbms_xplan.display)
          SQL>   2    3    4    5    6    7    8    9   10 
    Explained.
    SQL> SQL> SQL> SQL>   2 
    PLAN_TABLE_OUTPUT
    Plan hash value: 2852398983
    | Id  | Operation         | Name          | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |               |  2325K|    13M|  5784  (18)| 00:01:10 |
    |*  1 |  TABLE ACCESS FULL| V_DIS_SUB_HAR |  2325K|    13M|  5784  (18)| 00:01:10 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
       1 - filter("B"."STATUS"='P')
    13 rows selected.
    SQL>

  • Formating Numbers Using Word Format Mask

    Hello!
    Usually i use this format command to format my elements inside of each layout ( '<?format-number:Total_Price_w_o_Tax_ID12;'999G999D99'?>' ) but in this specific case i have one form field that contains the sum of a xml field ( ' <?sum(current-group()/Taxable_Ammount_ID9)?>' ) and i cant use format-number command to the format so i tryied with word format mask #.00##0,00. My problem is when i have for exemple 75 with 00 decimals it appears '75' and i want '75.00' . if i have 75.29 i dont have problems . Someone know how i can get '75.00' instead of '75' ?
    Thanks in advance

    Instead of using format-number, could you do this?
    <?xdoxslt:pat_format_number(sum(current-group()/Taxable_Ammount_ID9), '#.00', $_XDOLOCALE)?>

  • Query using a Formatted Search

    Hi,
    I am trying to do the following but its not working and need a little help please.
    I have a series of UDF's on the Goods Receipt PO screen which I need populating on the batch transactions screen automatically.
    i.e I have a UDF called U_Width on the main Goods Receipt screen (PDN1) and when I click add on a batched item it asked me for the batch details.  I need the UDF in the Batch Screen (OIBT.U_Width) to be automatically populated with this information.
    I thought by using the following simple query and set as a formatted search would work but it doesn't seem to recognised the PDN1 table as a current document
    SELECT $[PDN1.U_Width]
    help please

    $ value will only work for current active form.  It is not possible to get the other form's value.
    Thanks,
    Gordon

  • Can anyone answer this question? What is used to format a string so that it falls into a certain Row/Column in excel? see text for indepth question.

    I'm attaching a file that may help. Just remember this is my FIRST attempt at using NI/FeildPoint so things that would be obvious to the normal users more than likely would slide right by me. So I'll try and explain what the text contains as to make my problem more clear. I'm using a FP-1000, FP-AI-100, and a FP-TB-10. i'm creating a application where I'm using the 8 channels from the FP-AI-100 to monitor a control system ,that we manufacture. The control system is in an environmental chamber. I use the FP-TB-10 to monitor the temperature while in the chamber. The control system is ran for 4 hours under varing enviromental conditions while I monitor vital system voltages with the FP-AI-100. Now the application that i'm building starts with the obvious FP CREATE.VI and so forth I have no problem communicating with the FP's, but the information that I'm monitioring needs to be placed into a file with Headers describing the information below it. Now I use a "WHILE LOOP.VI" to monitor the FP-AI-100 & FP-TB-10 for the 4 hour period. but before that I create and open a file where I use a "CONCATENATE STRINGS.VI" to enter the headers I need. I do this by CONSTANTS, CONTROLS, TABs, AND CARRIAGE RETURN being entered into the "CONCATENATE STRINGS.VI" in the order I want them to appear. I use ROW 1 to enter (OPERATOR:with a CONSTANT) an a (CONTROL so the operator may enter his name and be recorded into the file) using a TAB to seperate Columns and a CARRIAGE RETURNto drop down to ROW 2 for the next headers. I use header names and TABs to seperate the columns. This part works great. I end up with ROW 1 having the operator information then ROW 2 having the headers for all the channels I'm using to monitor the control system with in their own column. The trouble happens when I write to this file during the "WHILE LOOP". The information recorded for DATE:, TIME:, and Channel 0 of the FP-AI-100 end up right under their corresponding header on ROW 3, but the rest of the data ends up on ROW 4 in column 3 and goes down many rows with some of the data not being stored at all. It varies on how many rows are used starting at ROW 4 but hey always stay in column 3. I use the "FP READ.VI" outputing to a "ARRAY TO SPREADSHEET STRING.VI" outputing to a "CONCATENATE STRINGS.VI" for each channel within the "WHILE LOOP" then into the "WRITE.VI". I use the "CONCATENATE STRINGS.VI" to place my data OR atleast I thought you could do that some how I'm not quit doing something write either there is a sampling/timing issue or writing to file issue where things are being confused in the "WHILE LOOP" if someone know a better route to perform what I'm tring here I would be interested. Its not like I'm not giving it the old colledge try here but without proper training and the vagness of the manuals it's difficult to understand what every connection actually does.I'm tring though for everyone who happens to fill pity for me
    Thanks for your help
    John Morris
    Glendinning Marine Product, Inc.
    Attachments:
    ALLchannels ‏273 KB

    > I appreciate your effort to help me, but there is still a slight cloud
    > in front of my eyes here.(I must mention that I'm using Labview 5.1
    Oh, to bad. I'm using LV 6,02 and tried to save the application as LV5.1,
    but it didn't work.
    > Lets start with the easy one which is the SECOND main thing you
    > wanted to mention. In my application I used individual Create Tag.vi's
    > "so your saying that I can use just one Create Tag.vi and one Read.vi
    > and what ever I use to display the values will automatically to show
    > the individual channels" in other words if I use a "Indicator(DBL)"
    > comming out of the Read.vi what ever I use in the "PANEL" layout will
    > expand to show all 8 channel if I was using a FP-AI-100? Cool...
    Allmost right. The 8 channels come out as 1D-array, ch0...ch7.
    > #1--How do I change the delimiter (TAB) to a delimiter (comma) in a
    > Array to Spreadsheet String.vi?
    > ...cut
    I don't use this Spreadsheet VI, because files coming out there allways
    start this time consuming EXCEL wizzard. Because of this, I programmed my
    own CSV-conversion vi. Maybe you could just use a common texteditor, like
    wordpad and put the csv-examples from my last reply down to a text file
    and rename it to *.csv. Texteditors terminate lines with "\r\n" by
    default, so this is a very quick way for testing.
    > FP_Analog_Logging example to record all eight channels it uses a Array
    I didn't find the vi you metione above, but there is another good one:
    Look at examples\FieldPoint\DataLogging\FP Logger.vi.
    In a little case structure, at "false", there is a function called "Format
    into string".
    Pop up on the format string and adjust >>'\' Codes Display<<.
    Then you change the format string into: %.;%-f%s
    A Tab string is connected to the lower input of this function. Replace
    this one with a comma.
    That should do.
    >
    > #2--If using just one Create Tag.vi and one Read.vi and I have the
    > Item Name listed as ALL I take it that the information comming out of
    > the Read.vi is data for each channel in a String format starting with
    > channel 0 and ending with channel 7 for the FP-AI-100.
    Yes, just as explained above. If you put a indicator at the output to
    display the values, you can expand the display to show all 8 channels, but
    you can't name induvidual cells. In a array, all cells have identical
    named labels. If you want to name the individually, you have to attach the
    array to cluster function and put the indicator after this one. Enable
    labe display and name the output values individually.
    > #3--Now I use the following to "Format String" in the Array to
    > Spreadsheet string.vi (%.4f)but I don't see anyway of changing the
    > delimiter from (TAB) to (COMA)
    Explained above.
    > #4 you stated text strings need a "as prefix and sufix" and each
    > string is seperated by a coma, a period is used as decimal number
    > separator and lines have to be terminated by my question is
    > WHERE IS THIS ACCOMPLISHED? WHAT VI OR WHAT CONNECTOR PIN?
    Well, modifying strings are done with string functions.
    Above, as I explained how the sample FP Logger.vi can be modified to do
    the job for numbers. The pre- and suffixing with ", you only need for
    strings, which EXCEL should interpret a string and as nothing else as a
    string, even if there's a number inside. You usually need this only for
    headers. So its easyest, if you just write your string into a string
    constant or control and concatenate it to the previous csv-file contents.
    Oh, I just see by looking at the above mentioned example... Inside the
    case structure, but in the "true" case, there are error messages
    concatenated to the logfile. At this point it is importent, to use " for
    integrating the message into the CSV file, because a error message usually
    looks like this: >> ERROR 2345 in vi yxz <<
    Here you have text and number strings mixed in one line. EXCEL does not
    know, if it should interpret the number inside the error line as separate
    number, separating the line into three colums i.e. string before number,
    number and string after number. So tell EXCEL by putting a " before and
    after the line each.
    For this, expand the Format To String function by one input, move down all
    connections, to be able to insert a string constant with a " to the first
    argument connector. Change the contents of the string constant at the
    bottom argument from tab to ", (quotation mark AND comma)
    > #5 You gave me an example of what a 3 column header could look like:
    > "col0","col1","col2"\r\n Now is this something that you enter
    > somewhere cause I know that \r is carriage return and \n is newline so
    > I take it that the above is entered somewhere maybe in the Write.vi to
    > the connector called Header (F)? See this is what confuses me because
    > NI manuals have no examples of certain connectors types being used or
    > any reference as to how they manipluate data with there varing type
    > inputs. Or maybe I'm just missing them.
    The example I mentioned above help here to.
    Look at the Write File function. This function receves data from a
    function named concatenate strings. Expand this function to have one more
    spare input at the bottom. Create a string constant. Switch the constant
    display to "\" mode. Enter "col0","col1","col2"\r\n into the constant.
    Connect the constant to the spare input.
    Doing this, every dataline in the csv file is followed by
    "col0","col1","col2"\r\n .
    I wish you a nice weekend,
    Rainer Ehrt

  • How to retain field formatting using this.getField

    I am pulling a phone number from a form field using this.getField("EmailAddress").value and inserting it into an email.  Once there, it loses it's formatting as a phone number and becomes a string if 10 digits again.  Is there a way to retain or recreate this formatting?

    Since a Format script doesn't change the underlying field value, just what gets displayed in the field, you'll have to add something that changes the underlying field value. You can use the Validate event for this and even use the same built-in code that's use by Acrobat to do the formatting. Begin by adding the following function to a document-level JavaScript:
    // Function in a document-level JavaScript
    function phoneValidate() {
          // Use Acrobat built-in formatting routine for phone numbers
          AFSpecial_Format(2);
    and call this function with the following custom Validate script:
    // Custom Validate script
    phoneValidate();
    The AFSpecial_Format() function takes what is entered into the field, generates a formatted string, and set event.value to the string. When this is done in a Validate script, it changes the field value.

Maybe you are looking for

  • How can I connect my 3gen apple tv with HDMI to my bush LCD32TV022HD which does not have an HDMI port but does have 1)S-Video I/P, 2)Video I/P, 3) L

    How can I connect my 3gen apple tv with HDMI to my BUSH LCD32TV022HD This does not have an HDMI port but does have:- 1) S-Video I/P, 2) Video I/P, 3) Audio Input (Left & Right) 4) Audio In jack (for VGA and DVI source) 5) DVI input 6) VGA input

  • ITunes for Windows 7.0.1.8 bug report

    Do Apple employees actually read these forums? Is there some other (e.g. better) way for me to submit substantive iTunes bug reports to them? I've noticed a bug in iTunes for Windows, spanning both versions 6 and 7. I'm currently using 7.0.1.8 and th

  • How do I save GIFs to my desktop?

    I used to be able to save GIFs just fine by dragging them to my desktop, but one day it stopped working and now I can only save them as videos or snapshots. Both are obviously extremely inconvenient. I'm using a Macbook Air, running Mac OS X Lion 10.

  • Blue Ray Recording

    Hi I have an iMac with mountain lion that has the latest updates, plus FCPX installed and also up to date with all updates. I have a BlueRay recorder attached via USB which worked perfectly well with fcpX, until I recently updated to the latest FCPX.

  • How do I get rid of a folder in my favorites lineup?

    I have a folder that I placed in my favorites by accident. Now I can't figure out how to move it or delete it. How do I get rid of it and put it where I want it? Thanks, dh