Using a control item in the control block

I want to do; using a control item in the control block, I can control the item in the detail block and I can navigate anywhere in the detail block on the condition.
For example, I have a master block ,a detail block,a control block.
before move the focus from the mater block to the detail block, the focus goes to the item in the control block and run a trigger and set properties for the items in the detail block, then navigate to the item in the detail block using go_item(?).
Is it possible? if possible would you give me some example or idea?
thanks a lot.

well u can.May be you want to perform add / delete/ update through your buttons in forms

Similar Messages

  • How to go back to a particular item of the preivous block

    Hi,
    In the pre-block trigger, how to navigate back to a particular item of the preivous block? I've tried go_item('block1.item2'), but it only goes to :system.cursor_item. What if the system cursor item is not item2, how can go back to item2?
    Vanessa

    Have you try this,
    go_block('block1');
    go_item ('block1.item2');

  • If i use System.exit(0) in the catch block will finally block executed

    If i use System.exit(0) in the try block or catch block will finally block will be executed?
    try
      System.exit(0);
    catch(Exception e){
      System.exit(0);     
    finally
      System.out.println("finally!");
    }

    gavas_java_nov26_exception wrote:
    If i use System.exit(0) in the try block or catch block will finally block will be executed?
    try
    System.exit(0);
    catch(Exception e){
    System.exit(0);     
    finally
    System.out.println("finally!");
    To tell you the truth, What does it matter? You shouldn't be doing that anyway, at least not in a well written program.
    But, if you really want to find out, do as duffymo said, and try it. It'll only take a minute and save you the time (and embarressment) of asking here.

  • No navigable item in the destination block

    Hi
    using Dev6i.. i have to face the problem.(frm-40106).plzz help me how to solve this problem.
    thankx in advance

    Quoting the Online Help:
    FRM-40106: No navigable items in destination block.
    Cause: Runtime error. A GO_BLOCK statement references a block with no enterable items.
    Action: Remove the statement or make at least one item in the block enterable.
    either you are navigating to a block that has no item visible on the canvas, or all the items visible on the canvas are disabled.
    Tony

  • How to use when-validate-item in the form personalization?

    Dear all,
    I want to use when-validate-item trigger in the form personalization on a specific item. while in the same time the when-validate-item is not included in the trigger event list.
    Please advice & Thanks in advance
    Ashraf Ashour

    Use condition. If you are validating a record, just out the desired check in the condition field for that specific item.
    Thanks
    Nagamohan

  • Go_item doesnot work in a control block having all display items

    Hi
    go_item bulitin doesnot work for a block which doesnot have any enabled items(or say display items only) throwing error " No items on the navigation block".
    The requirement is to have all items in that block should be display items only.
    Is there any workaround?
    Thanks in advance.

    Create a navigable item in the block where cursor focus can be placed. I usually make it a visible text item with very narrow width -- just enough so the user can see the cursor blinking.
    Or else make one of your display items a text item, but with update allowed set to No.
    ...but why are you using Go_Item if the item is not an updateable field?

  • Previous record dont show in control block

    Hi
    I have 2 blocks, one is control and other is database so this is working well but when i press F8 then it show records and i move to next record then it show data in both blocks but when i try to back (previous record) then it show data in my database data block not in my control block................
    Any help
    thanks in advance
    REgards,

    Andreas Weiden Reply:
    As i understand you want to populate some items in a non-database-block with additional information to the current record in the database-block.
    The "right" way:
    Do not create a non-database-block for the additional items at all, simply place the additional items in the database-block with property "Database Item"= No. If you want to show only 1 line of data and your database-blcok is tabular, set "No. of records displayed" to "1" for the non-database-items.
    Now put the code to populate the items into the POST-QUERY-trigger of your database-block.
    The "other" way:
    Keep the additional items in the non-database-block where they are, and put your code to populate the items in the WHEN-NEW-RECORD-INSTANCE-trigger of your database-block.

  • Adv between base table &control block

    wat is the adv of control block give some tips to proceed with CB

    Hello,
    It is really dependent on your requirement as to why you need a control block or a database block.
    Things which are ready made in database block needs to be coded in a control block if you are going to do data manupulation using a control block,but again as I said before it really dependent on your requirement
    Regards
    Mohan

  • Can we create a list item as a data block item?

    Hi,
    I have changed a text item to list item on the data block.
    This list item used to get populated when it was control block item, but after i changed it to data block item, it's not getting populated.
    My question is, can we create a list item(poplist) as a data block item?
    Any idea?
    Thanks in advance
    R.G

    Hi
    When you use ctl blocks data dose not fetch from Database. But in data blocks it get fetches when you execute query. So you have to make sure table column values are matching with the List Box values you have given.
    So please check table values.
    Nilaksha.

  • Remove the assignment blocks dynamically at runtime

    hello friends,
    i want to remove the assignmnet blocks dynamically at runtime but based on the condition data avilable or not . example for opportunity window, whether the item list assignment block is empty then only i want to delete it . for this case i have to put a validation . im using  DETACH_STATIC_OVW_VIEW method for deleting the assignmnet blocks . but in my case based on validation only i want to delete . how to do the validation. please help me out .
    thanks in advance.
    regards
    sashi

    Hello there,
    I believe the Method DETACH_STATIC_OVW_VIEWS as you mentioned is the correct one to achieve this functionality.
    Here what exactly has to be done in your scenario is not clear from your question.
    However if we consider your example; you can refer to the code excerpt below
    UI COmponent : BT111H_OPPT  ( Header Component of Opportunity)
    Class: CL_BT111H_O_OPPORTUNITYO0_IMPL
    Method : DETACH_STATIC_OVW_VIEWS
    It already has in place
    * get Details CuCo
      lr_cuco ?= me->get_custom_controller( controller_id = 'BT111H_OPPT/OpptDetailsCuCo' ).
    then it checkes the Product Items.
    You can put ou validation logic in place and do like following:
    * Competitor products on Item level
      IF lr_cuco->is_competitor_available( iv_mode = lc_item ) = abap_false.
        ls_viewid-viewid = 'BT111H_OPPT/CompProdItemOV'.
        INSERT ls_viewid INTO TABLE rt_viewid.
         ENDIF.
    Please reply if this helps.
    Best Regards,
    Vinamra.

  • Loop through all items in all data blocks?

    Is there a way to loop through every item in every data block and set the property of a format mask?

    I do not know what error it is, only that an on-error trigger fires.
    I found out one thing I was definitely doing wrong, using nextblock, nextitem properties at the wrong level.
    DECLARE
         v_firstblock VARCHAR2(50);
         v_currentblock VARCHAR2(50);
         v_firstitem VARCHAR2(50);
         v_currentitem VARCHAR2(50);
         v_counter NUMBER :=0;
         v_counter2 NUMBER :=0;
    begin
       v_firstblock := get_form_property(:System.Current_Form,first_block);
       v_currentblock:= get_block_property(v_firstblock,nextblock);
       MESSAGE(v_firstblock||v_currentblock);
         LOOP
              v_counter := v_counter +1;
              IF (v_counter >10) THEN
                   exit;
              END IF;
              IF (v_currentblock = v_firstblock) THEN
                             exit;
           ELSE
                   v_firstitem :=  get_block_property(v_firstblock,first_item);
                        IF (lower(GET_ITEM_PROPERTY(v_firstitem,format_mask))=lower('mm-dd-yyyy')) THEN
                                       SET_ITEM_PROPERTY(v_firstitem,format_mask,'DD-MON-YYYY');
                        END IF;
                   v_currentitem :=  get_block_property(v_firstblock,first_item);
                   v_currentblock:= get_block_property(v_currentblock,nextblock);
                   GO_BLOCK(v_currentblock);
                        LOOP
                             v_counter2 := v_counter2 +1;
                             IF (v_counter2>15) THEN
                                  exit;
                             END IF;
                             v_currentitem:= get_item_property(v_currentitem,nextitem);
                             MESSAGE(v_counter||v_firstblock||v_currentblock||v_firstitem||v_currentitem||v_counter2);
                             IF (v_currentitem <> v_firstitem) THEN
                                  IF (lower(GET_ITEM_PROPERTY(v_currentitem,format_mask))=lower('mm-dd-yyyy')) THEN
                                       SET_ITEM_PROPERTY(v_currentitem,format_mask,'DD-MON-YYYY');
                                  END IF;
                             ELSE
                                  exit;
                             END IF;
                        END LOOP;
               END IF;
      END LOOP;
         end;Here is updated new code. I am currently trying to debug it, it has crashed my form on the server when tied to a button press.
    EDIT: So far I have found that it infinitely loops through the first 3 items and a null item in the first block. Still looking into why...
    EDIT: Some code changes to temporarily stop infinite loop and make v_currentblock actually change. Still loops through same 3 items in the first data block even though v_currentblock changes.
    Edited by: 878576 on Oct 21, 2011 12:46 PM

  • How can I lock an item on the form?

    I have a master-detail form, I wanted to lock an item on the detail block of the form which means this item can be seen but can't be changed on the form.
    I configured the Query Only, Query Allowed, Insert Allowed, Update Allowed as NO in the property palette of this item. However, when I run the form, if I try to change the value of this item, it doesn't allow me, but it also won't let me go to next record and it just stop at the record I try to make the change. Any suggestion would be really appreciated.

    Setting the properties "insert allowed" and "update allowed" will allow the item to display queried values. Allow the user to click in the field and copy values. But will not allow the user to change the value.
    You can can do the above for the whole item in your detail block using set_item_property or just at the record level with set_item_instance_property.
    Setting enabled to "No" is a little drastic. I dont use it that much. I think it also makes the text gray and hard to read.
    What is probably stopping you from going to the next record is that you have the "required" property set to "yes".
    I dont ever set the required property to yes anymore in my forms. I write all my field validation in one program unit and call it from pre-insert and pre-update. This allows the user to freely navigate througout the form and field values are typically only checked when they press save. Not always, but mostly.

  • HOWTO: Avoid go to detail block without fullfill the master block?

    Hi:
    I have a master detail form with 2 blocks. When the user open the form the focus is on the first text item (required = yes) of the master block. If the user tries to get out of that item with keyboard (tab or enter), it gets the correct message saying that the item is required and must be filled. But the problem starts when the user click with the mouse on another item of the detail block. Here, I will have 8 or 9 messages saying that is impossible to create records without a master record. This is really annoying. This message has no ID (FRM-XXXXX), and I really must get a way to forbide users to go to the detail block without filling required items in the master.
    Anyone?
    Best Regards
    Joao

    Hello,
    if there is a relation between the two blocks double click on that rel.and mark the check box property:prevent Masterless operation try this option and tell me what's ur feed back..?
    Regards,
    Abdetu..

  • Use of application Item with conditional validation

    Apex 3.2
    On a form, I have two lists :
    - Items TYPE contains A B C and D.
    - Item MANAGEMENT contains NULL, 1, 2 and 3.
    I want to validate that MANAGEMENT is not null only when the value in TYPE are A, B or C.
    I am using the condition "Value of Item in Expression 1 Is Contained within Colon Delimited List in Expression 2"
    I dont want to hard code these values (A B C) so I put them in an Application Item (I also need them somewhere else).
    If I use my application Item in the condition, the validation is not performed (I dont see it listed in debug mode.). If I use the real values (A B C), its working.
    Here's what I put in the Exp2 when using the application item :
    F126_CONST_BUSINESS_CASE:F126_CONST_PROJ_NON_PLANIFIE:F126_CONST_PROJ_PLANIFIE
    I also tried with the form v('F126_CONST_BUSINESS_CASE'): ...
    Any Idea ?
    Thanks in advance.

    Hi Amelie,
    You should consider centralizing your validations inside a package. It will make your code much more readable. In many cases, you won't have to modify your application to modify a validation.
    If your validations are required across different pages, consider having a main package or build package a package for each module (page or page groups).
    The following condition for a validation is easier to understand than "Value of Item in Expression 1 Is Contained within Colon Delimited List in Expression 2".
    Condition Type PL/SQL Expression:
    p1_valdt_pkg.is_item_mangm_mandt(:P1_ITEM_TYPE,:P1_ITEM_MANAGEMENT)
    create or replace function is_item_mangm_mandt (pva_item_type in varchar2,
    pva_item_mangm in varchar2)
    return boolean is
    vbo_valdt boolean default true;
    vva_const_business_case varchar2 (30) default v ('F126_CONST_BUSINESS_CASE');
    vva_const_proj_non_planifie varchar2 (30) default v ('F126_CONST_PROJ_NON_PLANIFIE');
    vva_const_proj_planifie varchar2 (30) default v ('F126_CONST_PROJ_PLANIFIE');
    begin
    if pva_item_mangm is null
    and pva_item_type in (vva_const_business_case, vva_const_proj_non_planifie, vva_const_proj_planifie) then
    vbo_valdt := false;
    end if;
    return vbo_valdt;
    exception
    when others then
    return false;
    end;
    Louis-Guillaume Carrier-Bédard
    My Blog: http://www.lgcarrier.com
    Twitter: http://www.twitter.com/lgcarrier
    APEX Québec: http://www.apexquebec.com
    APEXFramework: http://www.apexframework.com

  • Xi; in the item in the form (itm is a db-field with Varchar2)

    Hello
    I'm looking for a solution for my problem.
    I have a form with one master-block and four detail-block. One item in a detail-block makes at time (shows in the field) [xi;] This field is a db-field varchar2 with the correct length look like the attribute in the table (scheduling by byte default, scheduling by null the same effect). After I maked the query, the field shows the right value in this field.
    I have this effect in an other Form with one master and one detail-block with one item in the master-block.
    Can anyone give me the answer what is the problem and how can I solution this problem.
    Client Windows XP
    App-Server VMS with Apache
    Forms 9.0.2
    DB 9.2
    Thank's for your help
    René

    Yes you just add an edit text box to the form and bind it to the UDF.
    Dim oItem As SAPbouiCOM.Item
    oItem = oForm.Items.Add("TextBox1", BoFormItemTypes.it_EDIT)
    'You will need to adjust these values to position it correctly
    oItem.Left = 5
    oItem.Width = 65
    oItem.Top = 50
    oItem.Height = 19
    Dim oEdit As SAPbouiCOM.EditText
    oEdit = oItem.Specific
    oEdit.DataBind.SetBound(True, "OCRD", "U_Test")

Maybe you are looking for

  • Grouping of Filters

    Hello All, We have a requirement to group of multiple filters should be applied in report. For instance we have a report with one customer and Amount Sales, Net Sales, Target, Sales; Our requirement is if all the measure columns are zero or null then

  • Auto clearing GR/IR

    dear all, i have an issue when i m running f.13 in production run GR/IR clearing did not clear the account as the amount is shown in GL as open item with red sign. are the GR/IR accounts can clear automatically if there is multiple line items of GR a

  • Forms Servlet IP Access

    Hi, I am tied to 9iAS R1 due to ERP app restriction - am using webcache 902 to balance 2 9iAS app servers using Forms 6i Listener Servlet. I am setting up SSL on webcache and intend to connect webcache to app servers on non-ssl port 80. I want users

  • I just updated to the newest software and all my apps were deleted.  I have tried syncing on itunes but it doesn't work.  Help!

    I just updated to the newest software and all my apps were deleted.  I have tried syncing on itunes but it doesn't work.  Help!

  • Youtube serch Engine on Ipad

    Hi it's me Chainnig again I have another question when I go on a youtube video from google on my Ipad the serch engine thats on the top of youtube dosen't apper how do I make it appear I'm sure it's simple I figured someone here would know the answer