Post query and lov problem

I wonder if anyone can help me with this problem. I have a non database text item which holds a school name dependent on the school id. I have a post-query trigger to populate the school_name field so that the school_name is shown immediately. I also have a LOV on this field in case the school has to be updated.
The problem I have is that when I query the data block the list of values pops up automatically and won't let me out of the screen until I have selected a school. I only want this LOV to appear when the user requests it.
Can anyone advise me on how to get around this problem, maybe I'm using the wrong type of trigger?
thanks,
Ian

In the LOV properties, set Automatic Display to false

Similar Messages

  • POST-QUERY and LOV

    Hi,
    I created a POST-QUERY trigger on a LOV field; I have checked off “Validate from list”, so the user is forced to use the LOV. However every time a user retrieves a record, and then tries to re-query, they get the message, “Do you want to save the changes you have made?” I assume this is because of the POST-QUERY trigger; when I uncheck the “Validate from list” the forms runs correctly. Is there anyway to use the validate from list function, but without the save message?
    Thanks in advance.
    ===POST-QUERY===
    declare
         --Country of Birth
         cursor lookup_cob is select codetext
         from country
         where code = :app.country_birth;
    begin
         --Country of Birth
         open lookup_cob;
         fetch lookup_cob into :app.txtcob;
         close lookup_cob;
         exception
         when no_data_found then
              null;
         when others then
              message(sqlerrm);
    end;

    If I have more than one procedure in my POST-QUERY trigger then I have to insert this code multiple times?
    SET_ITEM_PROPERTY('block_name.item_id1',ITEM_IS_VALID,PROPERTY_TRUE);
    SET_ITEM_PROPERTY('block_name.item_id2',ITEM_IS_VALID,PROPERTY_TRUE);

  • I/O Assistant Query and Parse problem.

    Hi,
    I am trying to use the I/O assistant with Instrument via the serial port (com1). When I use the query and parse option it only grabs the first line and parses it. For example, my command is "gc", my instrument by nature will echo that back to serial port and when the parse occurs it only receives the "gc" rather then the entire result. Using hyperterminal I get this below. What is important to me is the second line but I only read back gc for some reason with I/O assistant. Any way to parse entire result?
    tp gc
    version: gc.library 1.3.0.0 (2003.11.03)

    In your Query and Parse step you should see a termination character window. As explained in the help window when you move the mouse over the termination character window, this character terminates the read session. The default is \n or a line feed. When your instrument sends two lines, the first line ends with a line feed and the read stops before the second line is read. Set the term character to none to read the entire line. Your instrument probably requires a termination character at the end of the string you're sending so put the termination character in the command line (i.e. gc\n).

  • Voltage query, and another problem

    Just bought a Neo this weekend, and for the most part, I've been having fun with it, and it's been a good board.  However, I have one problem, and one question.  Question first:
    In the bios, it seems that my VCore voltages go from like 1.35 to 1.55.  Now, with my A64 3400+, the default voltage is 1.50, which doesn't leave me much headroom to up the VCore.  I've seen in several other locations, however, that the voltage should be able to go up to around 1.7V, and I don't see how that's possible.  I'm wondering what I'm missing, and where I can up the voltage properly (because the CPU will run at 2.4GHz and is almost stable at 1.55V, but I'd like to push it a bit farther).
    Now, the problem:
    My Firewire port seems to be Code 10 (Device cannot start), and I can't seem to find any way to get it to work 100% of the time.  Sometimes uninstalling it and rebooting fixes it (I have a 20GB Firewire drive that I use, else I wouldn't care).  Is this a known issue, and if so (or even if not), how do you fix it?  I'd rather not go get a PCI solution if I can help it, but I need some sort of Firewire connection for the HD (it's just a storage drive, nothing critical to the OS).
    Overalll, as I said, I love the board (bought it do to a recommend from someone at AMD), but these two small issues pretty much have me stumped.
    I did search through the forums and didn't seem to find anything that would help me out, but if I missed something somewhere, please refer me to the proper post and I'll be happy to read through it.    Thanks!

    Hi
    There are 2 threads that might interest you.
    Questions about MSI K8T NEO FIS2R    on page 2   Denis B
    and
    Firewire XP problem - pls help  by Zoomee  on page 4 just now.
    The Bios seems to affect firewire, have you updated to 1.2.
    you can follow the threads and see if thats any help.
    Good luck
    jocko

  • Static record group and lov problem

    hi all,
    1)I created a form module
    2)created a basic datablock based on empno and ename from emp table.
    3) created a static record group ,where i specified the column name as col1,provided the values as 1 ,2,3,4,5 etc
    4) created an LOV and assigned the above record group to the LOV
    5) then assigned the lov to the emp.empno item in the datablock emp....
    when i run the form .....i get the list of values message on the console (bottom end of the window) ....
    but I am not able to see the LOV when i press the cntrl L or see it from the edit menu command ?
    what must be the problem ?
    ta
    s

    Dear,
    May be you don't set LOV's "Column Mapping Properties". After setting the properties correctly you will be able to display LOV.
    Thanks.

  • Post query giving error

    Declare
    cursor fin_ACNTs IS
    SELECT aCODE,dr,cr,seq
    FROM acnts
    where CCODE = :xH_ccode
    and Tcode = :XH_tCODE
    aND tNO = :xh_Tno
    order by seq;
    total_rows NUMBER;
    the above query will return 2 or 3 rows. for example,
    aCODE DR CR SEq
    P30737 1907.600 .000 B1
    P30737 .000 1907.600 B2
    I have 3 rows wise control fields on my form canvas
    r1c1 r1c2 r1c3 r1c4
    r2c1 r2c2 r2c3 r2c4
    r3c1 r3c2 r3c3 r3c4
    & I want to Store the above query result in Such way that
    the 1st row returned should be saved in r1c1 r1c2 r1c3 r1c4
    and the 2nd row returned in r2c1 r2c2 r2c3 r2c4
    if the query returns 2 rows
    i tried to incorporate it in thiS way, but needs SOme help;
    declare
    cursor fin_ACNTs IS
    SELECT aCODE,dr,cr,seq
    FROM acnts
    where CCODE = :xH_ccode
    and Tcode = :XH_tCODE
    aND tNO = :xh_Tno
    order by seq;
    total_rows NUMBER;
    begin
    FOR i IN fin_ACNTs LOOP
    :ctrl.Rc1 := i.aCODE;
    :ctrl.R[i]C2 := i.dr;
    :ctrl.R[i]C3 := i.cr;
    :ctrl.R[i]C4 := i.seq;
    num_total_rows := fin_ACNTs%ROWCOUNT;
    END LOOP;
    end;
    while compling the trigger am getting the errors;
    Error 49 line 15 column 5
    Bad bind var :ctrl.R
    Error 103 line 15 column 5
    Encountered th symbol "[" when expecting one of the following
    := . ( @ % ; indicator

    TYVM, Mr. Kuba,
    those 4 rows r1c1....did get filled properly. I have now 1 more problem. about this form so,
    I have a columnar tables
    inventotry_header (Inv_head) and
    inventory_detail (Inv_detail)
    in post-database-commit i am saving some details in to a 3rd table, ACNTS
    Inv_head is linked to inv_detail thru primary-foreign key, table ACNTS is independant.
    i have joined inv_head==>ACNTs in forms.
    i wrote this post-query Suggested by you. i want to display ONLY the control fields r1c1.....
    derived from the acnts table in post query and keep acnts table fields hidden.
    the acnts table should just be saved in the background(in post-database-commit) and
    its values will be displayed on form thru the control fields.
    but when i make the visible property of the acnts table fields to "NO", the post query result does not display
    the control fields r1c1.... and on querying, at first record it gives error,
    FRM-40106 No navigable items in destinations block
    and why i dont want to use the acnts tables for display, because i want to assign & display the control fields
    as i enter the details in inv_head and inv_detail, in the sequence of r1c1 r1c2 r1c3 r1c4....
    which i dont think will be possible with acnts tables (which is a linked actual db table).
    hope i have made it clear.

  • Key-down and post-query

    hi,
    i am debugging other people's work. on this form there are database item and non db items. and in post query trigger it populates non db items. the problem is when user key down, it goes to next record and fires post query trigger. but on key up trigger, it doesnt. does key down or key up automatically fires post-query trigger?

    A list box is a very different object from a normal non-database item in the record. Oracle Forms does not expect you to need to change the contents of the poplist when you change records -- the values normally remain the same no matter which record is current.
    So... if you really want a dynamic poplist, then you need to do this:
    1. Use the post-query trigger to look up the name you need, and place it in a hidden Text Item.
    2. In the when-new-form-instance trigger, create a record group at runtime: use create_group_from_query, and just do a select from dual, to establish a two-column record group with the list label colum large enough to hold the name to be displayed.
    3. In a when-new-record-instance trigger in your block, clear the contents of the record group, and then add one row, and then set the value of the label column to the value of the hidden name field.
    4. Then use Populate_List to put the contents of the record group into your poplist.

  • Post Query(Image Problem)

    Thanx to all of you and specially to
    ??Sajanka and Sudha all time good freind.
    Problem: I want to load an image
    with post query trigger on the block.
    I am trying it by
    filename:=get_file_name(PathVariable,FileFilter=>'*.*');
    read_image_file(filename,'any','block.image_item');
    But when the trigger is fired window's dialog box for the file is opened and I have to pick the file from the relative directory.
    Please help me for this.
    Again thanx!
    Imran Amjad

    Well me and Sanjana are the same ! Anyway the best way if it is possible is to keep all your image files in a separate directory and add that directory to the forms60path string in the registry, then all you need is the file name not the entire path.
    Read_Image_File(file_name,'bmp',image_item);
    If that is not possible then try changing the filter to the file name. See if that helps you. The first way is the best way to do.

  • Different LOVs in af:query and af:form for the same VO attribute

    Hi,
    We need to display different LOVs in af:query and af:form for the same attribute in VO.
    Is it possible to use LOV Switcher for this ?
    What condition can we use in LOV Switcher attribute to check if it is View Critearia row or VO row ?

    We have a VO attribute "User" which needs to be displayed as LOV in a Search Panel ( af:query component created using View Critearia ) and in a af:form.
    When this VO attribute is displayed in search panel, in LOV, we need to show all users.
    When this VO attribute "User" is displayed in a form for editing, in LOV, we need to show only active users.
    For this, we created two LOVs "ActiveUsersLOV" ( which shows only active users ) and "AllUsersLOV" ( which shows all users ) on VO attribute "User".
    LOVSwitcher attribute should return "ActiveUsersLOV" if the LOV is displayed in form and "AllUsersLOV" if the LOV is displayed in search panel.

  • Goods Receipt and Goods Issue - Posting Date and Document Date Problem

    Hi All,
    I was using SDK to build own add on to insert Posting Date and Document Date under Inventory> Inventory Transactions> Goods Receipt and  Inventory> Inventory Transactions> Goods Issue, but the UI Screen Posting Date and Document Date shown current date.
    My SAP Business One version was 2007A SP00 PL42 and alreadly upgrade to SP05.
    End up result still the same.
    Is there someone can help me?
    Thanks you.
    Best Regards,
    danny

    Hi there,
    I already solve it by myself.
    Actually is i call the initialization twice:
    Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    Thats what make this problem happened.
    Sorry.
    Best Regards,
    danny

  • I am a graduate student and have problems posting to my schools discussion board "blackboard". Any suggestions?

    I am a graduate student and have problems posting to my schools discussion board "blackboard". Any suggestions?

    Download the Blackboard for mobile app for the iPad.
    -> http://itunes.apple.com/us/app/blackboard-mobile-learn/id364252826?mt=8

  • Problem with query based LOV

    Hi,
    Maybe someone could help me with the following. I think it is a shortcoming of HTMLDB, but I'm not sure.
    I've got a Select List item, P10_PERSON, which resides in a tabular form. The Select List is based on a query, say:
    select name   display_value
    ,      id     return_value
    from   personAs is should be, P10_PERSON shows only the names.
    When my action is an insert or modification, the results will be writen in the table PERSON_MEETING.
    Now I want to make sure that the same person coulden't be selected a second time for the same meeting. So I alter the query based LOV with the following:
    select name   display_value
    ,      id     return_value
    from   person
    where  id not in (select person_id
                      from   person_meeting
                      where  meeting_id = :P10_MEETING_ID)This sounds correct and works in Designer, but not in HTMLDB. The NAME isen't shown anymore, instead the ID is shown in the page.
    Is this because the person doesen't actually exists anymore in the LOV after it has been saved (stored in PERSON_MEETING)? If so, does anyone knows a work-around?
    Thx!
    Message was edited by:
    F. Klein
    (removed typing error)

    I've got 3 tables. PERSON, MEETING and PERSON_MEETING.
    They have the following structure:
    # PERSON            #
    # ID   NUMBER       #
    # NAME VARCHAR2(50) #
    # MEETING                   #
    # ID          NUMBER        #
    # DESCRIPTION VARCHAR2(100) #
    # PERSON_MEETING    #
    # ID         NUMBER #
    # PERSON_ID  NUMBER #
    # MEETING_ID NUMBER #
    #####################In PERSON there are 3 records, in MEETING there is only 1.
    PERSON:
    ID     NAME
    1      KEVIN
    2      BILL
    3      JOHN
    MEETING
    ID     DESCRIPTION
    1      DEVELOPERS MEETINGNow I want to link the persons to a meeting in the PERSON_MEETING table.
    The column MEETING_ID will be filled automatically through a variable or parameter (I don't know the exact term).
    I defined the PERSON_ID column as an query based select list with the query:
    select name   display_value
    ,      id     return_value
    from   personThis works perfectely, the select list (or lov) shows KEVIN, BILL and JOHN. When I select BILL and save my adjustment, the following record will be shown in PERSON_MEETING
    PERSON_MEETING
    ID     PERSON_ID     MEETING_ID
    1      2             1Now that I inserted BILL as a participant for the Developers meeting he should be removed from the select list. Only KEVIN and JOHN should be in the list. Therefore I change the query of the select list into:
    select name   display_value
    ,      id     return_value
    from   person
    where  id not in (select person_id
                      from   person_meeting
                      where  meeting_id = :MEETING_ID):MEETING_ID is the item in the page containing the ID of the meeting.
    When I make this adjustment, the select list only contains KEVIN and JOHN (as it should), but the first record shown on the page (record with BILL) doesen't show BILL anymore, instead his ID will be shown (2)...

  • Query Manager SQL DateDiff and Parameter Problem

    I’m having trouble with a date calculation in the Query Manager.   I’m wondering if anyone has run into something similar.
    I am trying to write a query that returns records that are X days old, where X is a parameter input by the user.
    Here’s an example – you can paste this into your system and duplicate the issue:
    <b>SELECT T0.DocNum, T0.DocDueDate FROM ORDR T0 where datediff(dd, T0.DocDueDate, getdate()) <= [%0]</b>
    Returns a date error code if you try to input an integer (e.g. the "Define Survey Variables" dialog is looking only for date values)
    However
    <b>SELECT T0.DocNum, T0.DocDueDate FROM ORDR T0 where datediff(dd, T0.DocDueDate, getdate()) <= 30</b>
    Works just fine.
    Any ideas?

    > I tried your query and it's working perfection for
    > me.  I'm using  SBO B1 2005 A.
    >
    > The [%0] in your case is looking for the type of the
    > critary and because it sees T0.DocDueDate it thinks
    > you should give the query with a date and not a
    > numeric.  Maybe you cshould try to add a casting
    > function to return a numeric ?
    Merci Daniel,
    I too am using SBO B1 2005 A (PL 22)
    I should have expanded on my original problem.  I have tried using CAST and CONVERT in the following ways:
    <b>SELECT T0.DocNum, T0.DocDueDate FROM ORDR T0 where datediff(dd, T0.DocDueDate, getdate()) <= CAST([%0] as Integer)
    SELECT T0.DocNum, T0.DocDueDate FROM ORDR T0 where cast(datediff(dd, T0.DocDueDate, getdate())as Integer) <= [%0]
    </b>
    also
    <b>SELECT T0.DocNum, T0.DocDueDate, cast(datediff(dd, T0.DocDueDate, getdate())as Integer) as Date FROM ORDR T0 where Date <= [%1]</b>
    Nothing seems to work (although I could be getting the syntax wrong)

  • Problem with post query trigger

    Hi,
    I have a multi record block and there is a post-query trigger on it. Based on values of this block I populate other values over the other control block.
    I wrote code in post-query trigger and when I execute the query and go to last but one record. The values in the control block are from last record instead of last but one record. Pls help me to fix
    Thanks,

    if you want to see the data in the control block synchronized with the database block then use the WHEN-NEW-RECORD-INSTANCE and not the POST-QUERY.
    with the POQ you add additional data (in non-basetable-items) to the records in the database block

  • Simple SQL Query and Parameters and LOV

    Newbie and trying to work thru building a simple sql query with a single table query and use a parameter and lov.
    Can anyone point me to an example.
    simple query:
    select cust_id, name_desc, name_add1, name_add2, name_city
    from customer_table
    where cust_id = :cust_parm
    This works in straight sql and in the query builder by prompting for the customer ID. When building a parameter using LOV or search, it doesn't seem to detect the variable.
    Thanks..
    DD

    If you are using version 11g, then as soon as you save the query in the data model, it should notice the parameter and ask if you want to add the parameter to the data model. What version of BIP are you using?
    What happens if you exclude the parameter from the query and simply hard-code the criteria? Can you generate XML data?
    From your wording, it sounds like you're trying to create a parameter from the LOV dialog. LOVs and parameters are totally distinct. After each are created separately, then you configure the parameter to use the LOV.

Maybe you are looking for

  • How do i get the toolbar to just show the icons, not the whole name of the site

    on the toolbar, I just want the icons of my favorites to show, not the whole name so I can add more to the toolbar..

  • Maintenance Plan Numbers created by system is out of sequence

    Hi, I have set the internal no. range of maintenance Plan as 100000000 - 199999999, I found system is generating plan no. as 100000001, 100000002, 100000010, 100000011. I have also checked the selection criteria on IP15 and IP24, Please tell me why m

  • Bizarre IRR Button Colors in IE (Only!)

    When we go to any "Action" dialog from an Interactive Report Region, the button colors, e.g. Apply, Cancel etc. are dark blue with brown writing in IE only We've tested with IE 8 and 9. This does not occur in FF, Chrome or Safari. Has anyone else enc

  • Process chainTransport requests

    hi all, can you plz. clarify these doubts: 1. If i activate a process chain, a request will be created. In this req. will all the objects(i.e. process) collected ? when we move it will all the objects move? 2. whenever i make changes( modify or add n

  • JNDI Tutorial DirContext.bind error

    Running OpenLDAP on Windows XP Trying to run the JNDI Tutorial with the Drink class example implementing the DirContext interface. ctx.bind("cn=favDrink" + "," + containerName, dr); throws a [LDAP: error code 17 - drinkType: attribute type undefined]