Set "current" or "active" record in multi-record Report or Form

Im trying to use HTML DB for the following:
Display a multi-record Report (or Form);
Mark one of the displayed records as "active" or "current", saving its PK/UK or rowid into a variable/field;
After that, select a function/process to be performed on or on the basis of this "active" record.
This is very similar to what is possible in 10g Grid Control, when, for example, you dislay (Administration/Tables) a list of tables (in a schema),
"select" one of the displayed tables, and then request, for example, to view the data in that table.
The question is, how do I define/attach the "Select" field (single-valued radio) to each of the displayed record in my multi-record Report or Form ??

Im trying to use HTML DB for the following:
Display a multi-record Report (or Form);
Mark one of the displayed records as "active" or "current", saving its PK/UK or rowid into a variable/field;
After that, select a function/process to be performed on or on the basis of this "active" record.
This is very similar to what is possible in 10g Grid Control, when, for example, you dislay (Administration/Tables) a list of tables (in a schema),
"select" one of the displayed tables, and then request, for example, to view the data in that table.
The question is, how do I define/attach the "Select" field (single-valued radio) to each of the displayed record in my multi-record Report or Form ??

Similar Messages

  • Saving the record in multi-record block while updating

    Hi gurus
    I have a table name PT . Its is master table where PT_TYPE IS unique
    desc PT
    PT_TYPE VARCHAR2(2) unique,
    PT_CODE VARCHAR2(4),This is the detail table on which the form is being designed is meant for insert/update/delete.Insert and delete are working fine.
    desc PST
    PST_PT_type varchar2(2) unique,
    PST_A_code Varchar2(3) unique,
    PST_A_desc varchar2(10) The form layout is a multi-record form as below and based on PST table with PT_CODE as non-base table item & PST_PT_TYPE
    not displayed but its there in the block.
    FORM_LAYOUT
    PT_CODE PST_A_CODE PST_A_DESC
    ASD          AS          TESTAS
    ASD          AD TESTAD
    ASD DS TESTDS.
    Now the problem is when I am querying record through enter-query mode (say by entering PT_CODE 'ASD') and
    change one of the base table items(PST_A_CODE or PST_A_DESC) values and commit it. its says '1 records applied and save'
    but when I change ONE OF THE PT_CODE(non-base table item) values it says 3 records applied and saved. as the 3 records
    are currently displayed when querying

    Hi Craig,
    Both below program unit is in the WHEN-VALIDATE-ITEM of NBT item PT_CODE
    --this is to check that valid pt_code is entered
    PROCEDURE val_pt_code IS
         cursor val_cur is
         select pt_code
         from pt
         where pt_code =:pst.pt_code;
    v_dummy varchar2(12);
    BEGIN
    open val_cur;
    fetch val_cur into v_dummy;
    if val_cur%notfound then
    close val_cur;     
         warn_alert('Error:The Product Code entered does not exists');
         raise form_trigger_failure;
    end if;
    close val_cur;
    END;
    --this is to check that particular pt_type value is for the pt_code is selected
    PROCEDURE get_pt_type IS
         v_pt_type varchar2(2);
    begin
         select pt_type into v_pt_type
         from      pt
         where pt_code = :pst.pt_code;
         :pst.pt_type := v_pt_type;
    exception
         when no_data_found then
              warn_alert('Error:The Syllabus Type does not exists');
         raise form_trigger_failure;
    end;
    --

  • Use of project view to group project records in multi-project report

    I have a summary level multi-project report to report summary level information for active projects.  We are using project view to organize our projects between departments and divisions (hierarchical structure) - represented by folders in project view.  Projects are occasionally moved between project folders.  If anyone has experience with report development using folder structure?  My intent is to create grouping band based on folder structure and list projects under appropriate folder/band. 
    Any assistance is greatly appreciated.
    I am using CM14.1 with OBIP 10.1.1.7
    Thanks,
    Prath

    If you are creating a standard multi-project report (no retrieval criteria; project_state=0)  and you run this report from within PCM, PCM automatically appends to your syntax the filtering criteria for the "folder" the user has highlighted in the project tree.  In this case you would have one report that would retrieve multiple sets of data actively depending upon the project tree position.  I have seen sometimes this causing issues with certain base syntax, but in general this should work.
    Sounds, though, like you're building your report to call to the raw project_view tables, and Rick pointed out you need to use both of these tables then most likely.

  • Problem in displaying records in multi record block

    Hi all,
    I have a problem in displaying records in a multi record block in a form.
    I have 1 control block and 1 data block(multi-record block).
    Control block has one item CUSTOMER-ID. Data block has many other items related to customer.
    when a value is entered in customer-id text item, all the relavant details should be displayed in the data block.
    but, the records are overlapping in the same line in the data block, actually they have to be displayed one record per one line.
    The code is,
    IF :CUST_BLOCK.CUST_ID IS NOT NULL THEN
    GO_BLOCK('XBSI_CONTRACT_PRICE_FACTORS');
    FOR C1 IN C
    LOOP
    :XBSI_CONTRACT_PRICE_FACTORS.CUST_ID:=c1.site_use_id;
    :XBSI_CONTRACT_PRICE_FACTORS.CAT_ID:=c1.ipc_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.MFG_ID:=c1.mfg_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.INVENTORY_ITEM_ID:=c1.inventory_item_id;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_BASIS:=c1.price_basis;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_FACTOR:=c1.price_factor;
    END LOOP;
    Please help me out..
    Thanks in advance!
    Suman

    Hi Suman
    IF :CUST_BLOCK.CUST_ID IS NOT NULL THEN
    GO_BLOCK('XBSI_CONTRACT_PRICE_FACTORS');
    first_record;
    FOR C1 IN C
    LOOP
    :XBSI_CONTRACT_PRICE_FACTORS.CUST_ID:=c1.site_use_id;
    :XBSI_CONTRACT_PRICE_FACTORS.CAT_ID:=c1.ipc_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.MFG_ID:=c1.mfg_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.INVENTORY_ITEM_ID:=c1.inventory_item_id;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_BASIS:=c1.price_basis;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_FACTOR:=c1.price_factor;
    next_record;
    END LOOP;
    Try this. you are trying to show all the records in same line. so its overlapping.
    Thankyou
    [email protected]

  • Changing colors of individual records in multi-record block

    Can any point me to where I should place the code to programmatically change the color of a record in a multi-record block based on a particular column value?
    For instance, if block.col1='OPEN', I'd like the entire row to display as BLUE. If block.col1='CLOSED', I'd like the entire row to display as RED. I've tried placing my code at the block POST_QUERY level and WHEN_NEW_RECORD instance level without success.
    I'm a relative forms newbie, so any advice would be appreciated.

    I tried putting it in the 'when new record instance' trigger but it did not work completely. I put them same code in the Post_Query trigger of the multiple record block along with the 'When new record instance' trigger and it worked perfectly.
    I'm not forms expert, and there's probably a reason why I needed to put it in two places to make it work for me but that's a question of a forms expert.
    Ron

  • Setting visible to false in a multi-record block

    Is there a way to set the visible property of an item to false in a given row, but not for all instances of the item (based on another column in the row)?
    Yes, I know set_item_property does not work. I've tried set_item_instance_property to no avail, and have read that it does not support the "visible" attribute.

    Your findings are correct. You cannot set the visible property for one instance of an item. However, you can set the visual attribute. If you create a visual attribute with the same background and foreground, it will "hide" the data in the item instance.
    Hope this helps.

  • Updating a value of a text item in a multi record block based on a change

    Hi,
    I need to change the value of a text item in a multi record block based on a change to another item's value in the same block.
    Suppose there's a text item in a multi record block called dt1 which is of type date, which is changed in a particular record. I want to change the values of the another item in the same multi record block, for all other records by running a loop through all the records in multi record block. I dont want to do it on the press of a button, it should do automatically on change. Help me resolve this issue.

    Hi,
    I need to change the value of a text item in a multi record block based on a change to another item's value in the same block.
    Suppose there's a text item in a multi record block called dt1 which is of type date, which is changed in a particular record. I want to change the values of the another item in the same multi record block, for all other records by running a loop through all the records in multi record block. I dont want to do it on the press of a button, it should do automatically on change. Help me resolve this issue.

  • Query about multi record block

    Abdetu
    Please clarify this
    I have a multi record group on the canvas, which displays 5 records at a time. The block is based on a table. All the items, except 3 items are displayed items.Now in the block I have a list item, in which I have two values "PO" and "TSF".. If user selects PO, associated text items will get enabled and user will be entering the values .. Same is the case with TSF .. And at the end user selects Ok button to save the record to the database
    Now while fetching the records (based on query) ..once the records are fetched, control will be on PO/TSF list box, now the user can either change PO to TSF or TSF to PO ..or he/she may opt not to change also.. If user changes PO to TSF, only that particular record's TSF fields should get enabled .. The problem what I am facing is, when the control comes to PO/TSF list box.. since its multi record block, all the record's PO/TSF list box are getting enabled
    In the sense, if control is in the 1st record of multi record block, only those fields should get enabled, once the user navigates to the text item which is the last of that particular record, then 2nd record should get enabled....
    Can I know the solution
    Regards
    Message was edited by:
    Seshu
    Message was edited by:
    Seshu

    Hello Seshu
    ur case explanation should be in points 1,2,etc as possible leaving extra lines and spaces in between .. and the case should be more clear and summarized like:
    1- I have multi-records data block.
    2- I have a static list item with 2 values eg. (a and b).
    3- Depending on selecting from the list some items r enabled.etc.
    Kindly note that, this will facilitate ur problem to be more readable,recognizable and save time and effort of someone who wants to help u.
    Here comes the confusion:
    Now while fetching the records (based on query)
    The problem what I am facing is, when the control comes to PO/TSF list box.. >since its multi record block, all the record's PO/TSF list box are getting enabled i think with the piece of code i have just posted to u this can't be happened since it disable all the record's PO/TSF.
    if this didn't solve ur problem i suggest either u post ur code to help u or u try to put some validations with :
    if statment inside the loop depending on the list item's values which will enable or disable related items to the list.
    Hope this help u,
    If any Questions pls let me know..
    Regards,
    Abdetu..

  • Multi-record report: content LOV depending on value of current row

    I have a multi-record report based on a query.
    For each row in the report it should be possible to choose a value from lov.
    The content of the lov is depending on a field in the current row.
    Later on I will update a record based on the chosen value but that is not the
    issue right now.
    The problem I am facing is that I don't know how to refer in a list to a value
    from the current row.
    For example.
    In the example below it should be possible to choose (from the lov) a best buddy for
    an employee. The buddy should be an other employee working for the same department.
    So in the lov I must refer to the deptno from the current row. How is this possible???
    select empno
    , ename
    , deptno
    , htmldb_item.select_list_from_query
    ( 1
    , empno
    , 'select ename, empno from emp where deptno = #deptno# '
    ) buddy
    from emp

    Hi Scott,
    I've created this application "TestLov" at the site you mentioned.
    Application ID : 800
    Workspace Name : ANUWKSPC
    The first page has an employee report with the solution as suggested by Raju Mattamal in this thread. That query seems to work fine without any errors...(I'm surprised why I'm getting errors on my application with the same query, even though data appears?! Is it to do with some setting?)
    The second page has the report with my actual query. This is throwing errors.
    On the third page I've tried to implement the solution you've suggested in Tips & Tricks section of HTML DB Studio(Simulating a correlated sub-query in report LOVs)
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:2188928890822530056::::P54_ID:1282
    This doesn't seem to work either.
    I'm unable to figure out the problem.
    Pls look into the application and let me know how I shld go abt this.
    Thanks in advance,
    Anu

  • Updating current record using SET_CUSTOM_PROPERTY in a multi-record form

    Hi,
    I have a multi record form and am using the SET_CUSTOM_PROPERTY method in the when validate trigger of an item. The problem is that it updates all records in the form instead of updating just the current record.
    Any inputs to resolve this would be helpful.
    Thanks

    I cannot reproduce the issue here.
    I have modified the sample dialog shipped with th article to have a block that displays 2 records
    <p>See the screenshot here</p>
    Here is the code in the When-Button-Pressed trigger:
      Set_Custom_Property( 'BLZ.BEAN', 1, 'READIMGFILE', 'd:/coyote.jpg' ) ;
      Set_Custom_Property( 'BLZ.BEAN', 2, 'READIMGFILE', 'd:/oracle_community.gif' ) ;So everything is ok for me.
    Francois

  • Set current record after dataset filter or sort

    How do you set the current record as the first record after a
    filter or sort? I have multiple dataset filters and sorts on the
    page and the current record always remains the first record after
    using them. Is there a way to force the current(viewed product,
    picture or whatever) to the first record after the Filter has been
    completed?

    thanks for your help,
    I was wanting the latter, "Or were you asking how to make the
    first row of the filtered data selected?" After the filter runs I
    want the current record set (to be displayed) to the first record
    in the filtered data.
    I am using the non-destructive filter method filter(), so I
    dont have to reload the data to bring the dataset back to original
    data, I can provide a reset button or set back to all records
    button.
    What I am using this for is a Home/Standard Plan Catalog. I
    want to filter our plans by square footage, number of bedrooms or
    baths, garage size, etc. so initalally it loads the complete
    catalog. the user selects the square footage range they want or any
    combination of specs and the filter works to narrow the dataset to
    the appropriate records. The filter works fine it returns the
    correct records from the dataset but after the filter I want the
    current (displayed) record to change after the filter, to the first
    record in the newly filtered data.
    Eventually we are going to have all 200 or so standard plans
    we have in the dataset and giving the user the ability to filter by
    these specs is the ultimate goal to help our customers make
    decisions. The page loads thumbnails of the exterior renderings for
    each standard plan. they click the thumbnail and it opens. With 200
    or so eventully I will have to page the results of the dataset or
    something else eventually, but I will cross that bridge when I get
    too it.
    here is my filter:
    >>>>>>>>
    function StartFilterTimerALL(){
    if (StartFilterTimerALL.timerID)
    clearTimeout(StartFilterTimerALL.timerID);
    StartFilterTimerALL.timerID = setTimeout(function() {
    StartFilterTimerALL.timerID = null; FilterDataALL(); }, 100);
    function FilterDataALL(){
    var SqFtVal = document.getElementById("sqft").value;
    if (!SqFtVal){
    dsStandards.filter(null);
    return;
    // for each value get the matching records sqftage
    if (SqFtVal == 1){
    var filterFunc = function(ds, row, rowNumber){
    var str = row["sqftage"];
    if (str < 1000)
    return row;
    return null;
    dsStandards.filter(filterFunc);
    if (SqFtVal == 2){
    var filterFunc2 = function(ds, row, rowNumber){
    var str = row["sqftage"];
    if ((str > 1000) && (str < 1501))
    return row;
    return null;
    dsStandards.filter(filterFunc2);
    if (SqFtVal == 3){
    var filterFunc3 = function(ds, row, rowNumber){
    var str = row["sqftage"];
    if ((str > 1500) && (str < 2001))
    return row;
    return null;
    dsStandards.filter(filterFunc3);
    if (SqFtVal == 4){
    var filterFunc4 = function(ds, row, rowNumber){
    var str = row["sqftage"];
    if ((str > 2000) && (str < 2501))
    return row;
    return null;
    dsStandards.filter(filterFunc4);
    if (SqFtVal == 5){
    var filterFunc5 = function(ds, row, rowNumber){
    var str = row["sqftage"];
    if ((str > 2500))
    return row;
    return null;
    dsStandards.filter(filterFunc5);
    thanks Jim

  • Setting FORMAT_MASK in a multi-record block using a PJC

    Hello,
    We have a requirement to apply different format masks to different records in a multi-record block. I'm investigating using a PJC to do this, but without any decent documentation of the VTextField class, I'm struggling a little to figure out what method(s) to call.
    setDisplayStringFilter() sounds promising, it seems to take a DisplayStringFilter object as its argument, but beyond that, I'm lost... Has anyone done anything similar?
    Cheers,
    James

    Assuming you can find the right method you still have a problem. The second argument in the set_custom_property procedure relates to the row within the block, not the the row within the resultset. So when someone moves the scrollbar you'll have to have each instance of the pjc change its format mask to whatever is appropriate for the new data. The pjc will have to be able to listen for changes to the data in the columns which determine what the format mask should be.
    Perhaps you could use a text item and set the format in post-query/when-validate.

  • How to set default settings to display record count in multi record block

    Hi All
    Whenever I query my multi record block, I get 1/? as record count at the console in standard Oracle Applications. Is there any setting so that it displays 1/50 (in case total record queried is 50). I don't want to set query all property of block as I don't have any control in standard Apps forms.
    Thanks in advance
    Navdeep

    Check out the next_navigation_item option for the get_item_property procedure. If you use this you can do the process without having to navigate from one item to the next.
    You can do something like this (untested) to move and resize the items (other than the first in the block):
    PROCEDURE move_and_resize(p_item IN ITEM, p_width IN PLS_INTEGER) IS
      prev_item ITEM := Get_Item_Property(p_item, PREVIOUS_NAVIGATION_ITEM);
    BEGIN
      Set_Item_Property(p_item, WIDTH, Get_Item_Property(p_item, WIDTH) + p_width);
      Set_Item_Property(p_item, X_POS, Get_Item_Property(prev_item, WIDTH) +
                                       Get_Item_Property(prev_item, X_POS));
    END move_and_resize;
    move_and_resize(myitem, -30);

  • Setting background color in multi record block

    Hi all!
    I've a table with around 150 records of colors with html-color-names and rgb codes.
    I would like to have a sample item in my form 9.0.4 to display the color as a preview for
    each record in a multi-record block when querying the table.
    I would not like to create a visual attribute for each color. So display_item() is no choice.
    (except: somebody show me how to create va's with the japi)
    Somebody knows a way to accomplish this?
    Thanks in advance and regards
    Stauder

    Here's a solution which should work :
    1. Use a mirror item for the numeric item which has to
    be displayed
    using the format mask based on value in column1
    The data type of the mirror item : Char
    X and Y co-ordinates : Same as the item
    on which it is
    mirrored
    Size and Height : Same as the item
    on which it is
    mirrored
    2. On normal display, Mirror item is displayed
    3. When Mouse-Click or Pre-Text Item trigger on the
    Mirror Item :
    - Use the Go_Item ('Actual Numeric Item');
    This will bring up the Numeric Item and the Mirror
    item goes in hiding
    - A VWI trigger on Numeric Item should Then be :
    If ( :col1 = 'A' ) Then
    :Mirror_Item :=
    To_char(:NumericItem, ',999,999.99');
    Else
    :Mirror_Item :=
    To_char(:NumericItem, '99999999');
    End If;
    4. A key-Next-Item (On Numeric Item) or other trigger ??
    should then
    use Go_Item (:Mirror Item) to bring forward the
    formatted numeric item
    -- Shailender Mehta --

  • Enabling the current record only in a multi record block..how?

    Hi,
    I'am trying to enable a single record in a multi record block.
    If i use SET_ITEM_PROPERTY it enables all records, SET_ITEM_INSTANCE PROPERTY does not have ENABLED Property.., so how to go about this?
    I have a check box beside each record, if i check the check box only that record should get enabled..is there any way?
    Regards
    Mahesh

    I found out the answer :
    technical note 661 on on Siebel Supportweb (metalink3) :
    "how to embed OBI requests in Siebel Business Application views, so that navigating among the records in the parent applet updates the child Analytics applet with context-appropriate content"

Maybe you are looking for

  • Account Posting

    Hi all Could you please tell me which Account and Transaction Key when posting: Example: Goods Receipt for Purchase Order Dr    Inventory Account                (BSX)     Cr    GR/IR clearing Account    (WRX) Could you please fill: Goods Issue for Se

  • Which Browser Is Best On Lion?

    Which browser do you find works best on Lion?  I like the backward/forward affects of Safari.  I've found that Chrome appears to be the fastest and has two-finger swipe.

  • Help! Why does Aperture automatically adjust my white balance?

    Hey, Just wondering if anybody knew why Aperture seems to want to automatically adjust the white balance settings of the RAW .NEF images I've been importing. I mean, on an example image, the in camera white balance was about 5900K with no hue adjustm

  • TS3899 Google will not load & email + gmail is a blank screen

    I bought a secondhand iPhone 3GS & cannot load safari + email & gmail is just a blank screen,l have also tried reset my device & my phone seems to be stuck in loading mode.

  • Cant play videos

    recently when trying to access videos via my playbook the website loads but when trying to play a video I get an error message saying "the media file is of an unsupported type or could not be loaded. It cannot be played". Never had this happen before