Display data in the report to pl/sql

I need to display data in a report using pl/sql.

The structure of the table would be fixed, but the data it would come from a pl/sql.

Is this possible in Apex 3.2.1 for that? If so, how can we do this?

Hi Hozy,

As much as I know APEX report cannot manipulate the slider.

If the options are:
1)
Try the PIPE...
http://www.databasejournal.com/features/Oracle/article.php/2222781/returning-rows-through-a-table-function-in-Oracle.htm

(2) as has said Roel, complete apex collection using your ps/sql and use it in the report.

Kind regards
Shijesh

Tags: Database

Similar Questions

  • Display buttons in a region report only if there is data in the report

    Hi friends,

    I have a region of report in which there is a report, 2 buttons and a text field. I want to show these buttons and

    text field only if there is data in the report. How can I do this? Help, please


    Thank you

    TJ

    Hello

    Define buttons conditionally as Exists (SQL query returns at least one row). The same use and the WHERE clause as your report, but change the SELECT part

    SELECT 1 
    

    BR, Jari

  • Apex 4.2, display image in the report.

    Hi all

    I'm a noob here Apex. I came across some problems with image display in a report. When I tried to have a report on a form of simple image download, it works perfectly with dbms_lob.getlength("IMAGEFILE") 'IMAGEFILE', workaround. Interactive report based on my table structure, already established the appropriate sections in report page for make my life easy.

    Problem when I tried to create the report of a SQL query combining three tables (Image3, CustomerDB, PATMAN2). The report now generates a page where I can not have any selection of BLOB. The textual part, appears perfectly.  I think my sql code is fine, but my generation of form Apex is faulty, but I need help to solve the problems.

    -----------------

    Here's the SQL code of the image gallery that works very well.

    ------------------

    Select "PUBLICATION_NO."

    "FILENNAME,"

    DBMS_LOB. GetLength ("IMAGEFILE") "IMAGEFILE",.

    "MIME TYPE"

    'PDFNAME '.

    DBMS_LOB. GetLength ("pdflink") "PDFLINK."

    "LASTUPDATED"

    "ID".

    of ' #OWNER # '. " IMAGE3.

    ---------------------

    And here is the one which does not show correctly the BLOB type.

    ---------------------

    Select PATMAN2.ID as ID,

    PATMAN2.PA as PA,

    PATMAN2. SUCH as TITLE,

    PATMAN2. OTHERS like the OTHERS,

    PATMAN2. TYPE as the TYPE,

    PATMAN2. PATENT_FAMILY as PATENT_FAMILY,

    CUSTOMERDB.COMPANY_ID as COMPANY_ID,

    PATMAN2. PUBLICATION_NO as PUBLICATION_NO,

    IMAGE3. FILENNAME as FILENNAME,

    DBMS_LOB. GetLength (IMAGEFILE) do IMAGEFILE,

    IMAGE3. PDFNAME as PDFNAME,

    DBMS_LOB. GetLength (pdflink) as PDFLINK,

    IMAGE3. MIMETYPE as MIMETYPE,

    PATMAN2. CUSTOMER_ID as CUSTOMER_ID

    of IMAGE3 IMAGE3.

    CUSTOMERDB CUSTOMERDB,

    PATMAN2 PATMAN2

    where PATMAN2. CUSTOMER_ID = CUSTOMERDB. CUSTOMER_ID

    and PATMAN2. PUBLICATION_NO = IMAGE3. PUBLICATION_NO (+)

    ------------------------------


    avman wrote:

    Interactive report based on my table structure, already established the appropriate sections in report page for make my life easy.

    Sorry, no idea what you mean by that.

    Problem when I tried to create the report of a SQL query combining three tables (Image3, CustomerDB, PATMAN2). The report now generates a page where I can not have any selection of BLOB.

    Still, it is far from clear what you mean by "that the report now generates a page where I can't have no matter what selection for BLOB".

    The textual part, appears perfectly.  I think my sql code is fine, but my generation of form Apex is faulty, but I need help to solve the problems.

    -----------------

    Here's the SQL code of the image gallery that works very well.

    ------------------

    Select "PUBLICATION_NO."

    "FILENNAME,"

    DBMS_LOB. GetLength ("IMAGEFILE") "IMAGEFILE",.

    "MIME TYPE"

    'PDFNAME '.

    DBMS_LOB. GetLength ("pdflink") "PDFLINK."

    "LASTUPDATED"

    "ID".

    of ' #OWNER # '. " IMAGE3.

    ---------------------

    And here is the one which does not show correctly the BLOB type.

    ---------------------

    Select PATMAN2.ID as ID,

    PATMAN2.PA as PA,

    PATMAN2. SUCH as TITLE,

    PATMAN2. OTHERS like the OTHERS,

    PATMAN2. TYPE as the TYPE,

    PATMAN2. PATENT_FAMILY as PATENT_FAMILY,

    CUSTOMERDB.COMPANY_ID as COMPANY_ID,

    PATMAN2. PUBLICATION_NO as PUBLICATION_NO,

    IMAGE3. FILENNAME as FILENNAME,

    DBMS_LOB. GetLength (IMAGEFILE) do IMAGEFILE,

    IMAGE3. PDFNAME as PDFNAME,

    DBMS_LOB. GetLength (pdflink) as PDFLINK,

    IMAGE3. MIMETYPE as MIMETYPE,

    PATMAN2. CUSTOMER_ID as CUSTOMER_ID

    of IMAGE3 IMAGE3.

    CUSTOMERDB CUSTOMERDB,

    PATMAN2 PATMAN2

    where PATMAN2. CUSTOMER_ID = CUSTOMERDB. CUSTOMER_ID

    and PATMAN2. PUBLICATION_NO = IMAGE3. PUBLICATION_NO (+)

    Did you specify IMAGE DOWNLOAD and BLOB format masks for the IMAGEFILE and PDFLINK columns? Select "BLOB" in the column of the number/Date Format attribute, then fill the section attributes of Blob column as requires it.

    We cannot solve what we cannot see. We do not have your tables or data so we can not replicate this for ourselves. Please reproduce the problem with an example on apex.oracle.com and developer comments login information for the workspace here.

  • We can enter data into the reporting currency?

    Hi Experts,

    Hyperion Planning version 11.1.2.2, classic Multi money demand.

    We have an obligation to enter data into the reporting currency. Is it possible in the schedule?

    For example... If we GBPand USD as currency statement, I have an obligation to enter data in GBP and USD for some entities.


    Kindly help me. !

    Thank you

    No you're not. In an application of multi currency GBP is a reporting currency. 'Local' is the local currency.

    All entities, regardless of their local currency, can enter data only in the "Local".

    Concerning

    Celvin

  • Unable to display data for the date where there is no entry in the table

    Hello

    I need a urgent, described below:

    I have a table named as 'dirty', consisting of three columns: empno, sale_amt and sale_date.
    (Please ref. The table with data script as shown below)

    Now, if I run the query:
    "select trunc (sale_date) sale_date, sum (sale_amt) total_sale of the sales group by order trunc (sale_date) by 1.
    It then displays the data for the dates there is an entry in this table. But it displays no data for the
    date in which there is no entry in this table.

    If you run the Table script with data in your schema, then u will see that there is no entry for the 28th. November 2009 in
    sales table. Now the above query displays data for the rest as his dates are in the table of the sale with the exception of 28. November 2009.
    But I need his presence in the result of the query with the value "sale_date' as '28. November 2009 "and that of"total_sale"as
    « 0 ».

    Y at - there no way to get the result I need?

    Please help as soon as POSSIBLE.

    Thanks in advance.

    Create the table script that contains data:
    ------------------------------------------

    CREATE TABLE SALE
    (
    NUMBER EMPNO,
    NUMBER OF SALE_AMT
    DATE OF SALE_DATE
    );
    TOGETHER TO DEFINE
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE (DECEMBER 1, 2009 10:20:10 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE (NOVEMBER 30, 2009 10:21:04 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE (NOVEMBER 29, 2009 10:21:05 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE (NOVEMBER 26, 2009 10:21:06 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE (NOVEMBER 25, 2009 10:21:07 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 5000, TO_DATE (NOVEMBER 27, 2009 10:23:06 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 4000, TO_DATE (NOVEMBER 29, 2009 10:23:08 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 3000, TO_DATE (NOVEMBER 24, 2009 10:23:09 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 2000, TO_DATE (NOVEMBER 30, 2009 10:23:10 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 7000, TO_DATE (NOVEMBER 24, 2009 10:24:19 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 5000, TO_DATE (NOVEMBER 25, 2009 10:24:20 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 3000, TO_DATE (NOVEMBER 27, 2009 10:24:21 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 2000, TO_DATE (NOVEMBER 29, 2009 10:24:22 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into SALES
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 1000, TO_DATE (NOVEMBER 30, 2009 10:24:22 ',' DD/MM/YYYY HH24:MI:SS'));))
    COMMIT;

    Any help will be necessary for me


    Kind regards
    WITH tab AS
      (SELECT TRUNC(sale_date) sale_date,
        SUM(sale_amt) total_sale
         FROM sale
       GROUP BY TRUNC(sale_date)
       ORDER BY 1
      )
     SELECT sale_date,
      NVL(total_sale,0) total_sale
       FROM tab
       model
       REFERENCE refmodel ON (SELECT 1 indx, MAX(sale_date)-MIN(sale_date) AS daysdiff , MIN(sale_date) minsaledate FROM tab)
         dimension BY (indx)
         measures(daysdiff,minsaledate)
       main main_model
       dimension BY (sale_date)
       measures(total_sale)
       RULES upsert SEQUENTIAL ORDER ITERATE(1000) until (iteration_number>refmodel.daysdiff[1]-1)
       ( total_sale[refmodel.minsaledate[1]+iteration_number]=total_sale[cv()] )
    ORDER BY sale_date
    

    using a clause type

    Ravi Kumar

  • How to display data in the interactive report without colon (:)) column

    Dear gurus of the Apex,

    I am a beginner and you just create an application for the Apex of a worksheet. I created a list of named values and used in a box against a field in the page creation form default 3.

    When I selected several values in my box on the form, the data in the interactive report appear as a single line with a colon separating the values selected as follows: dog: Cat: bird

    What I would like is to have the data appear in the interactive report in a list like this multiline column:

    Dog
    CAT
    Bird

    I can work around this problem by modifying the SQL code in the Source region of the definition of the area of the report (interactive 1 Page by default) to replace the semicolon by < br >

    SELECT replace ("PETS_CHOSEN", ":","< br / > ')"PETS_CHOSEN", OF"MYAPP"Note: this is not format correctly in the display. I have replace the colon with a html br

    This works, but there seems to be a hack to me. I guess I missed an option simple setting somewhere, but I can't.

    The other problem with this solution is that when I export the report to Excel, that ship's dog < br > cat < br > Bird, which is seems worse than the colon.

    Thank you

    -Morgan

    Published by: mnrussel on February 16, 2009 04:13

    Hi Morgan,.

    I think you have at least two possibilities:

    1. replace the colon with "," (comma and space) - kind of reasonable on the screen and export

    2 create a second page that has the same report but use it "export: csv" model. Create a manual link to this page to replace the standard export binding. When these pages of the report are requested, they download immediately instead of display. So you can use commas in this one and < br > tags in the report to the screen version

    Andy

    ch - to display the tags in a post, use and lt; for < and & gt; for >

  • How to add data to the table changed in sql developer at Apex and vice versa

    Hello

    I had tables of database with sql developer. But now, I have modified the database (new tables added + changed the data in the tables). However, in the Apex, I the old database. Is it possible to get the new Apex database with the data of the table changed so this database in both places (sql and apex developer) is exactly the same... Also the other way around.

    Thank you

    The database schema that contains the tables, is it associated with the workspace even you are searching through the APEX product t development?  Why I'm asking is, if they are the same schema, the tables that you MODIFIED should be appear in the sql for APEX workshop part.  Now reports and forms will NOT see the changes (unless you have actually added or updated definitions for column).

    Can you explain what exactly you were doing the SQL Developer to the tables in your schema?

    Thank you

    Tony Miller
    Los Alamos, NM

  • Hyperion reports financial-EN has no access to the data in the report

    Is there a way to Hyperion reports to display #no access to data users do not have access to, similar to essbase excel. What report currently displays 0, tried to adjust remove option to 000, and #no access, still shows 0

    Published by: user646265 on 15 Sep, 2010 10:11

    EN is built to be dynamic, so that he not hide any access if set up correctly, however if items are hard coded which are no access, then the report will fail for that user.

    The only options via the deletion/text of grid options are: zero values, no data or errors.

  • The most recent date in the report filter.

    Hello

    I have a report with a date column. I would like to run the report for the most recent date. I want to add a filter to the report that retrieves data for the latest in date. What would be the best method to use in the filter. Please notify. Thank you.

    You must first determine what the column that contains the dates on which you want to filter. Say so you have a Date of treatment column containing dates transactions are processed.

    (1) add this column in your workspace.

    2) click this column filter button, and then click Advanced Options > convert this filter in SQL.

    (3) after the name of the column, enter MAX (date_column). So you will have:

    "Table name". " "Date column ' = MAX ("Table name". ("' Date column")

    Now the chances are that you will have a lot of reports who need the "latest date" filter. Therefore, you should really do is built that filter in the repository and expose it as a filter registered for all to use.

  • CVI control to display data in the command line

    Hello

    do we not have any command CVI to view specific data in cmd (command) invites?

    A simple printf will display the data in the window of standard I/O, more or less what you are looking for, then that scanf accepts and elaborate user entered this window.

    A bit of personalizatio to the standard window of I/O is allowed per SetStdioWindowOptions () command: this command is a sample program (userint\standardio.cws) that shows an interaction with the window.

  • Where to put "DataLayout" (2D data in the report)?

    Hello

    IM using 2010 SP1 Teststand and Labview 2011. My question is about the plot of the data of the 2d tables in HTML Teststand report.

    I try to retrieve a table 2D x - y measurement data and it intrigues within the report file. Unfortuntly data is interpreted as "multiple-O", which means that each XY pair generates a new curve in the plot instead of have a curve following the x - y pairs. I found the following in TS documentation:

    http://zone.NI.com/reference/en-XX/help/370052J-01/tsref/infotopics/measurement_data/

    The problem is: I do not know WHERE to set the attributes of the property. Does anyone have a snippet of code running as an example defining the attributes at the right time and by generating a x-y-field correctly?

    Thanks for the help in advance.

    lv4ever

    lv4ever,

    I have consulted the documentation and I agree that it is not clear where the attributes must be added. I'll write a bug report for this problem.

    The approach recommended for you is to create local variables that have the appropriate attribute and use these local variables in expressions of value for each parameter.

    I have attached a files updated with the proposed solution.

    Concerning

    Anand jegou

    National Instruments

  • How to display data on the screen and save the data in a file at the same time?

    The code can display acceleration on the screen of the playbook.

    But, when fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ") runs, debug displays no source available.

    ??

    Does anyone know how to solve the problem, which writes data to a file?

    The code is below.

    /*
    * Copyright (c) 2011 Research In Motion Limited.
    *
    Licensed under the Apache License, Version 2.0 (the "license");
    * You may not use this file except in compliance with the license.
    * You can get a copy of the license at
    *
    www.Apache.org/licenses/license-2.0
    *
    * Unless required by the applicable law or agreement written, software
    * distributed under the license is distributed on an "AS IS" BASIS.
    * WITHOUT WARRANTIES OR CONDITIONS of ANY KIND, express or implied.
    * See the license for the specific language governing permissions and
    * limitations under the license.
    */

    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include

    /**
    The milliseconds between the accelerometer readings. It's the same thing
    * rate in which the accelerometer data will be updated
    * material. The update of material rate is below to help
    * accelerometer_set_update_frequency (FREQ_40_HZ).
    */
    public static const int ACCELEROMETER_MAX_POLL_INTERVAL = 25;

    public static screen_context_t screen_ctx;
    public static screen_window_t screen_win;
    dialog_instance_t main_dialog = 0;

    paused int = 0;

    The forces of the accelerometer
    float force_x, force_y, force_z;

    file elements
    int _logcounter = 0;
    FullName Char [256];
    FILE * f;

    /**
    * Use the PID to set the id of Group window.
    */
    public static char
    get_window_group_id()
    {
    public static char s_window_group_id [16] = "";
    If (s_window_group_id [0] == '\0') {}
    snprintf (s_window_group_id, sizeof (s_window_group_id), "%d", getpid());
    }
    Return s_window_group_id;
    }

    /**
    * Set up a basic screen, so that the browser will be
    * Send window state events when the State of the window changes.
    *
    * @return @c EXIT_SUCCESS or EXIT_FAILURE @c
    */
    public static int
    setup_screen()
    {
    If (screen_create_context (& screen_ctx, SCREEN_APPLICATION_CONTEXT)! = 0) {}
    Return EXIT_FAILURE;
    }
    If (screen_create_window (& screen_win, screen_ctx)! = 0) {}
    screen_destroy_context (screen_ctx);
    Return EXIT_FAILURE;
    }
    use of int = SCREEN_USAGE_NATIVE;
    If (screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_USAGE, & use)! = 0) goto fail;
    If (screen_create_window_buffers (screen_win, 1)! = 0) goto fail;
    If (screen_create_window_group (screen_win, get_window_group_id())! = 0) goto fail;
    buff screen_buffer_t;
    If (screen_get_window_property_pv (screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void *) & buff)! = 0) goto fail;
    buffer_size int [2];
    If (screen_get_buffer_property_iv (buff, SCREEN_PROPERTY_BUFFER_SIZE, buffer_size)! = 0) goto fail;
    int attributes [1] = {SCREEN_BLIT_END};
    If (screen_fill (screen_ctx, chamois, attributes)! = 0) goto fail;
    int dirty_rects [4] = {0, 0, buffer_size [0], buffer_size [1]};
    If (screen_post_window (screen_win, buff, 1, (const int *) dirty_rects, 0)! = 0) goto fail;
    Return EXIT_SUCCESS;
    in case of failure:
    screen_destroy_window (screen_win);
    screen_destroy_context (screen_ctx);
    Return EXIT_FAILURE;
    }

    /**
    * Rotates the screen at the specified angle.
    *
    @param angle angle to rotate the screen.  Must be 0, 90, 180 or 270.
    *
    * @return @c EXIT_SUCCESS on success, to another @c EXIT_FAILURE
    */
    public static int
    rotate_screen (int angle)
    {
    If ((angle! = 0) & (angle! = 90) & (angle! = 180) & (angle! = 270)) {}
    fprintf (stderr, "Invalid Angle\n");
    Return EXIT_FAILURE;
    }
    int rc;
    int rotation;
    RC = screen_get_window_property_iv (screen_win, SCREEN_PROPERTY_ROTATION, & rotation);
    If (rc! = 0) {}
    fprintf (stderr, "error getting the window of the screen rotation: %d\n", rc);
    Return EXIT_FAILURE;
    }
    int size [2];
    RC = screen_get_window_property_iv (screen_win, SCREEN_PROPERTY_BUFFER_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error getting size memory buffer window screen: %d\n", rc);
    Return EXIT_FAILURE;
    }
    int temp;
    switch (angle - rotation) {}
    case - 270:
    case - 90:
    decision 90:
    case 270:
    Temp = size [0];
    size [0] = size [1];
    size [1] = temp;
    break;
    by default:
    break;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_ROTATION, &angle);)
    If (rc! = 0) {}
    fprintf (stderr, "screen rotation window for parameter error: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window screen size: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_SOURCE_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window screen size: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_BUFFER_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window buffer size of the screen: %d\n", rc);
    Return EXIT_FAILURE;
    }
    Return EXIT_SUCCESS;
    }

    /**
    To manage an event of navigator.
    *
    * @return @c the value true if the application should shut down, another fake.
    */
    public static bool
    handle_navigator_event(bps_event_t *Event)
    {
    bool should_exit = false;
    switch (bps_event_get_code (event)) {}
    case NAVIGATOR_EXIT:
    should_exit = true;
    break;
    case NAVIGATOR_ORIENTATION_CHECK:
    navigator_orientation_check_response (event, true);
    break;
    case NAVIGATOR_ORIENTATION:
    {
    int angle = navigator_event_get_orientation_angle (event);
    If (rotate_screen (angle) == EXIT_FAILURE) {}
    should_exit = true;
    }
    navigator_done_orientation (Event);
    break;
    }
    }
    Return should_exit;
    }
    /**
    * Display an alert dialog box that contains the location data.
    */
    public static void
    show_main_dialog()
    {
    If {(main_dialog)
    return;
    }
    dialog_create_alert(&main_dialog);
    dialog_set_alert_message_text (main_dialog, "Acceleration to first fix");
    dialog_set_size (main_dialog, DIALOG_SIZE_FULL);
    dialog_set_group_id (main_dialog, get_window_group_id());
    dialog_set_cancel_required (main_dialog, true);
    dialog_show (main_dialog);
    }

    /**
    * Displays geolocation data in the main dialog box.
    */
    public static void
    display_acceleration_data (float force_x, float force_y, float force_z) {}
    char buf [1024];
    snprintf (buf, sizeof buf,
    "\tX: m\n % 7.3.f.
    "\tY: m\n % 7.3.f.
    "\tZ: m\n % 7.3.f."
    force_x, force_y, force_z);
    dialog_set_alert_message_text (main_dialog, buf);
    dialog_update (main_dialog);
    }

    void createafile() {}
    sprintf (fullname, "shared/documents/Raw-%d.txt",_logcounter);
    {if(f==null)}
    file does not exist
    f = fopen (fullname, "r");
    {while(f!=null)}
    file exists
    fclose (f);
    ++ _logcounter;
    sprintf (fullname, "shared/documents/Raw-%d.txt",_logcounter);
    f = fopen (fullname, "r");
    }
    }
    }

    write data to the file
    void writedataintofile() {}
    f = fopen (fullname, "w");
    fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ");
    fprintf (f, "" 7% 7% .3f, .3f, %7.3f\n ', force_x, force_y, force_z ");
    fclose (f);
    }

    /**
    * A sample application shows the native APIs of BlackBerry for accelerometer.
    * The example initializes and reads the accelerometer periodically until one
    * NAVIGATOR_EXIT event is received.
    Enforcement also tuned to changes status window in the browser so that
    * It can stop reading the accelerometer when the application is no longer visible.
    */
    int main (int argc, char * argv {})
    bool exit_application = false;
    /*
    * Until we can listen for events from the BlackBerry Tablet OS platform
    * services, we need to initialize the BPS infrastructure
    */
    bps_initialize();
    /*
    * Once the BPS infrastructure has been initialized, we can save to
    * events of different services of BlackBerry Tablet OS platform. The
    * Browser service manages and provides the life cycle of application and
    * events of visibility.
    For the example, we ask browser events so that we can follow when
    * the system ends the application (NAVIGATOR_EXIT event). This allows to
    * us to clean up resources in the application.
    */
    navigator_request_events (0);
    dialog_request_events (0);
    /*
    * Initialize the screen so that the Windows Id is correctly set, to allow
    * dialogs to display.
    */
    If (setup_screen()! = EXIT_SUCCESS) {}
    fprintf (stderr, "Failed to initialize the screen.");
    Exit (-1);
    }
    /*
    * Once the BPS infrastructure has been initialized, we can save to
    * events of different services of BlackBerry Tablet OS platform. The
    * Browser service manages and provides the life cycle of application and
    * events of visibility.
    *
    For the example, we ask browser events so that we can follow when
    * the system ends the application (NAVIGATOR_EXIT event).
    *
    * We ask events of dialogue so that we can be notified when the service of dialogue
    * answers to our queries/requests.
    */
    If (BPS_SUCCESS! = navigator_request_events (0)) {}
    fprintf (stderr, "error asking navigator events: %s", strerror(errno) (errno));
    Exit (-1);
    }
    If (BPS_SUCCESS! = dialog_request_events (0)) {}
    fprintf (stderr, "error asking dialog events: %s", strerror(errno) (errno));
    Exit (-1);
    }
    /*
    * Create and display the dialog box that displays the data from the accelerometer.
    */
    show_main_dialog();
    /*
    Prior to initialize the accelerometer function, we must ensure the unit
    * takes in charge
    */
    If (sensor_is_supported (SENSOR_TYPE_ACCELEROMETER)) {}
    /*
    * If the device does not support the accelerometer so warn the user,.
    * clean in and out
    */
    public static const int SENSOR_RATE = 40;
    sensor_set_rate (SENSOR_TYPE_ACCELEROMETER, SENSOR_RATE);
    sensor_request_events (SENSOR_TYPE_ACCELEROMETER);

    }
    /*
    * Initialize the accelerometer setting the rate at which the
    * accelerometer values will be updated material
    */
    accelerometer_set_update_frequency (FREQ_40_HZ);

    /*
    Treat browser events and take the accelerometer readings periodically
    * until we receive a NAVIGATOR_EXIT event.
    */
    createafile();
    f = fopen (fullname, "w");

    While (! exit_application) {}
    /*
    * By setting the timeout to bps_get_event to ACCELEROMETER_MAX_POLL_INTERVAL,
    * We assign the maximum duration (in millis) who will wait before
    * release so that we can take a reading of the accelerometer.
    */
    bps_event_t * event = NULL;
    bps_get_event (& event, ACCELEROMETER_MAX_POLL_INTERVAL);

    If {(event)
    If (bps_event_get_domain (event) is {sensor_get_domain()})
    /*
    * We woke up. See if we are in the paused state. If not,
    take a reading of the accelerometer
    */
    If (! pause) {}
    sensor_event_get_xyz (event, & force_x, & force_y, & force_z);
    display_acceleration_data (force_x, force_y, force_z);
    fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ");
    fprintf (f, "" 7% 7% .3f, .3f, %7.3f\n ', force_x, force_y, force_z ");
    } //paused
    }
    / * If this is an event of the dialog box, determine the response code and handle
    * the event accordingly.
    */
    {ElseIf (bps_event_get_domain (event) == dialog_get_domain() {)}
    ;
    }
    /*
    * If it's a NAVIGATOR_EXIT event and then set the exit_application
    * indicator so that the application stops processing events, clean and
    * output.
    */
    {ElseIf (bps_event_get_domain (event) == navigator_get_domain() {)}
    exit_application = handle_navigator_event (event);
    }
    } //if event
    } //while
    /*
    * Destroy the dialog box, if it exists.
    */
    If {(main_dialog)
    dialog_destroy (main_dialog);
    }

    fclose (f);

    /*
    * Clean the infrastructure bps and output
    */
    sensor_stop_events (SENSOR_TYPE_ACCELEROMETER);
    bps_shutdown();
    screen_destroy_window (screen_win);
    screen_destroy_context (screen_ctx);
    return 0;
    } //main

    Hello

    As I said on your other thread:

    In order to write in the shared directory/documents, your application should request action "access_shared" and it must be granted by the user. Make sure you have

    access_shared

    in your bar - descriptor.xml.

    Also note that the shared documents folder may not be the best place to write the application log data. There is one connects / in the sandbox to this effect, or the application directory data / directory if the information should be persisted. The documents/shared/folder is designed for documents that the user creates or interacts with.

    HTH,

    Christian

  • Timekeeper group does not display data from the former employee

    When you set up a group of timekeeper, we cannot find any former employees.

    If a employee leaves mi period... and if the timekeeper may not display former employees, how would (s) he enter/edit data?


    Thank you

    Alex

    Hi Alex,

    Yes, the final processing date should be later or null if you are not allowed to change the date of the final trial and you can try to change the date of entry into time guardian Group screen for before January 31, 2016 "and find the employee. "

    Kind regards

  • Error when displaying data in the subregion of the tab

    Hello

    I created a page customized OPS with three tabs

    1. Details of the device
    2. The user privileges
    3. Graph models

    Under "User Privileges", there is a summary page that displays all the details of user records. When the user clicks on "Update" icon control is delegated 'Updated Page'. The title of the page was updated, I have two tabs

    1. Devices of
    2. Organizations

    Initially the data of the selected user loads successfully but when I click on the tab 'Organization' I get all the registration of the user instead of the record of the selected only user.

    I debug the code and found that when I click on the tab 'Organization' the User_ID become zero.

    How to handle this?

    Thank you and best regards,

    Ajay Sharma

    Hi Ajay,

    Whenever page on the browser, PR method is called, as your method live inside the PR (processRequest), you must

    move the ID to define where clause, you can use the variable session to capture value.

    Just google with 'Variable of Session the OPS' you will find a snippet of code, let me know if you need any additional input.

    Kind regards

    Had

  • non-existent display data through the union in obiee answers

    Hi all

    Someone has tried to use the fake fact table to display non-existent data in the MDB at layer where there is hierarchy of dimension tables? If I remove the hierarchy of dimension tables, then I can display all records using the column of the fake facts table which has Cartesian joins with dimensions. Is there a work around for this issue?
    Thank you

    Sushil

    Published by: 872073 on May 13, 2013 10:25

    Try these
    http://bidirect.blogspot.com/2012/02/data-densification-in-OBIEE-1011g.html
    http://gerardnico.com/wiki/dat/OBIEE/densification_repository

    Published by: Srini FATIMA May 13, 2013 13:00

Maybe you are looking for

  • Why have I not wrong with games PCH on Firefox

    When I play games of Publishers Clearing House Firefox guard freezing. I have to go to Chrome and then it works very well, but I don't like Chrome. Why did I go wrong with Firefox for things like that?

  • Tecra A9 - display Excel problem

    I have a user with a Tecra A9 causing of the problems with the display in Excel. When she jumps on a worksheet to another sorta screen flashes as Excel updates.While most of the cells white out with a bit of a click on sometimes they can come back.Th

  • bike of a sequence structure

    Hello community, I posted there is a thermo-cycler program that was very tedious code wise and I restarted my encoding using sequence structures and local variables.  So far, I am satisfied with the results, except that I'm having a hard time a loopi

  • DAQ cards not selectable, that listed in MAX

    I have (re-) installing a PXI-6122 card on my computer. The device is then entered in the measurement and Automation Explorer, but differently from what I'm used to: -It's another symbol than two PXI-6259 cards I have (see image below). -It is not po

  • Smartphones Viber blackBerry

    I have a BB 9000 camera and I am trying to download the app Viber go to app world for blackberry. I get the following message "application is not available on your device or your carrier. Any ideas please?