How to do to appear records in a text item when I  run my  form?

In a form I have a block with BASE TABLE=OPTIUNI_COD.
In this block I have a text item named DENUMIRE.When I run my form the text item is empty and I use F7 , F8 to have some records in the text item.
But I want to appear records in this text item when I run my form without use F7,F8.
How can I do this?
Please help me!Thank you!

In a When-New-Form-Instance trigger you can use this:
Go_Block('your_block');
EXECUTE_QUERY;

Similar Messages

  • How to show value of COUNT_QUERY in a text Item?

    please tell me how to show value of COUNT_QUERY in a text Item?

    If you look a bit further down the thread Rosario posted, you might find the method DanielLiang posted to be easier to implement for you.
    you can use calculation:
    example :
    Database Data Block: block1 ( Query All Records : Yes )
    not Database Data Block : block2 (Single Record : Yes)
    block2 has a text item (number) ,it calculation property :
    calculation mode : summary
    summary function : count
    summarized block : block1
    summarized item : item1(block1's item)

  • How do I shut off receiving phone and text messages when I a out of the country but instill want to send and receive emails emails

    How do I shut off receiving phone and text messages when I am out of the country.  I still want to be able to email and receive email on wifi

    Enable Airplane mode followed by turning on wi-fi access.

  • How do I auto populate the date into text fields when form is first opened?

    Hello,
    I read all about the changing the scripts but its not really working for me. I was hoping someone could help me with directions on how to auto populate the date into designated text fields when my adobe document is first opened?
    I am working in Adobe Acrobat 9.
    Thank you,
    Sheri

    When you add a new document JavaScript (Advanced > Document Processing > Document JavaScripts > Script Name (enter something) > Add), you will be given a function skeleton by default. Just delete it and enter the line of code I showed above. Now, whenever the document is opened, the code will get triggered and the field will be updated with the current date. There is no "Document Open" action (at least that's accessible via Acrobat's UI), but this is effectively the same thing since any document-level JavaScripts are executed when the document is opened.

  • How to set cursor at the end of text item?

    If I use Go_Item, it will go to the item but select the whole content of the item(displayed in blue color). How can I set the cursor at the end of the text item and not to make the content selected?

    You may be seeing <Bug:1186653> which is fixed in 6.0.5.36 however if running on windows awprkaoutnd may be to use d2kwutil.
    Place the following code within a when-new-item-instance trigger on the
    item(s) you wish to disable highlighting:
    DECLARE
    v_handle pls_integer;
    BEGIN
    win_api_shell.sendkeys(V_HANDLE,'{home}',FALSE);
    END;
    The above code will result in no highlighting occurring and the cursor will be
    placed on the first character of the item. If you wish the cursor to appear at
    the end of the item, replace the word home to end. For more information,
    please refer to the d2kwutil documentation.
    Note that this solution will only work on windows in a client server environment.
    For a web solution you will have to create a java bean that will perform the
    necessary functionality.
    Regards
    Grant Ronald

  • How i can assign multiple values to tabuler text item (Help)

    HI
    IM PROGRAMMING ONE FORM AND I PUT THERE TABULER TEXT ITEM
    I WANT ASSIGN 63 VALUES TO THIS TEXT ITEM ONE BY ONE BY CODE I MEAN PUT FIRST VALUE IN THE FIRST TEXT ITEM ROW THEN SECOND TO THE SECOND TEXT ITEM AND LIKE THIS UNTIL I REACH TO THE LAST
    I MAKE LOV PUT I CAN ASSIGN ONE VALUE BY ONE VALUE EACH TIME DOUBLE CLICK ON THE TEXT ITEM ASSIGN ONE VALUE THEN DOUBLE CLICK ON THE SECOND ROW PUT MY BOSS WANT ASSIGN ALL VALUES 63 FROM ONE CLICK ON BUTTON

    Then you will have to create a when-validate-item trigger with a cursor based on your selection of your LOV . Loop through that cursor assigning the next in the next record by using the built-in function next_record. (put you selection for you value in a hidden item for example.
    something like this:
    Declare
    cursor c is
    select returnValueFromLOV
    from <yourtable>
    where yourdisplay value = :hidden_tem;
    begin
    for r in c loop
    next_record;
    item := r. returnValueFromLOV;
    end loop;
    exception
    when no_data_found
    your error handling;
    end;
    Hope it put you on the road to reach what you want
    Erwin

  • How to get bounds of bounding box of text item.

    Hi all,
    I am trying to get the bounds of bounding box of paragraph text item. I found the following link,
    the coordinate of a bounding box is the same as the layer's coordinate?
    But the solution doesn't work for me. It gives me the layer's bound every time i.e. the bounds of actual text.
    Can someone have any idea how to accomplish this?
    Thanks.

    It's a known "not trivial". You have layer.textItem.width/height, but they don't always report correct values. I.e. if the layer or doc has been resized, those values are missing scale multipliers. Worse it's works differently wrong in different versions of CC and Mac/Win. What I use is below (with some utility functions missing), but it's just CC 2012 and 2014 (CS6 is just bounds).
    Alternatively you can get this stuff on Action Manager only, but I'm not familiar enough and let other comment on it.
    Photoshop = {
      getTextExtents: function (layer) {
      if (layer && layer.textItem) {
      var text_item = layer.textItem
      if (Photoshop.isCC2014() || (Photoshop.isMac() && Photoshop.isCC2012())) { // in mac the newer method is correct also in CC2012
      return Photoshop._getTextExtentsCC2014(text_item)
      } else if (Photoshop.isCC2012()) {
      return Photoshop._getTextExtentsCC2012(text_item)
      } else {
      return Photoshop._getTextExtentsCS6(text_item)
      _getTextExtentsCC2014: function (text_item) {
      app.activeDocument.activeLayer = text_item.parent
      var ref = new ActionReference()
      ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") )
      var action = executeActionGet(ref)
      //Photoshop._debugActionKeys(action)
      var textKey = action.getObjectValue(stringIDToTypeID('textKey'))
      var bounds = textKey.getObjectValue(stringIDToTypeID('bounds'))
      var width = bounds.getUnitDoubleValue (stringIDToTypeID('right'))
      var height = bounds.getUnitDoubleValue (stringIDToTypeID('bottom'))
      var x_scale = 1
      var y_scale = 1
      if (textKey.hasKey(stringIDToTypeID('transform'))) { 
      var transform = textKey.getObjectValue(stringIDToTypeID('transform'))
      x_scale = transform.getUnitDoubleValue (stringIDToTypeID('xx'))
      y_scale = transform.getUnitDoubleValue (stringIDToTypeID('yy'))
      x_scale *= width / text_item.width
      y_scale *= height / text_item.height
      return {
      x:Math.round(text_item.position[0]),
      y:Math.round(text_item.position[1]),
      width:Math.round(width*x_scale),
      height:Math.round(height*y_scale) }
      _getTextExtentsCC2012: function(text_item) {
      app.activeDocument.activeLayer = text_item.parent
      var ref = new ActionReference()
      ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") )
      var action = executeActionGet(ref)
      var textKey = action.getObjectValue(stringIDToTypeID('textKey'))
      //Photoshop._debugActionKeys(textKey)
      var bounds = textKey.getObjectValue(stringIDToTypeID('bounds')) 
      var width = bounds.getUnitDoubleValue (stringIDToTypeID('right')) 
      var height = bounds.getUnitDoubleValue (stringIDToTypeID('bottom')) 
      var x_scale = 1
      var y_scale = 1
      if (textKey.hasKey(stringIDToTypeID('transform'))) { 
      var transform = textKey.getObjectValue(stringIDToTypeID('transform'))
      x_scale = transform.getUnitDoubleValue (stringIDToTypeID('xx'))
      y_scale = transform.getUnitDoubleValue (stringIDToTypeID('yy'))
      return {
      x:Math.round(text_item.position[0]),
      y:Math.round(text_item.position[1]),
      width:Math.round(width*x_scale),
      height:Math.round(height*y_scale)
      _getTextExtentsCS6: function (text_item) {
      var layer = text_item.parent
      return {
      x:Photoshop.getLayerLeft(layer),
      y:Photoshop.getLayerBottom(layer),
      width:Photoshop.getLayerWidth(layer),
      height:Photoshop.getLayerHeight(layer)

  • How to control the cursor position on a text item..

    Hello,
    How can we control the cursor position programmatically on a text item.
    i.e. how do we move the cursor to home or end of the text item.
    TIA,
    Hiten

    If you have an access to metalink.oracle.com, take a look at notes:
    Note 61656.1 (V45) HIGHLIGHTING A REGION OF TEXT
    Note 131028.1 Default Highlighting in Forms (Client Server)
    and threads from metalink forum:
    531481.996 "Select_All not working in 6.0.8.25.2", 153092.995 "Text item cursor position"

  • How to enter the data into data block text item which has an LOV associated

    Hi,
    I have a data block, one of the data block text item has an LOV assigned. when I populate this text item using the LOV and do "execute_query", it is taking the value in the text item and adding it to the search criteria, but when I enter a value manually in that text item and do "execute_query" it is showing me an alert(which I created) "Please enter a value".
    My question is, why is not taking the value that I enter manually? Looks like before executing the query, this field is getting empty
    How to avoid this problem and make sure that the value entered in the text item is added in the where clause of the query?
    Any advice?
    Thanks in advance
    R.G

    Problem solved!
    Before doing execute-query, all the text items are being cleared,so I used a global variable to store that value
    Thanks anyway
    R.G

  • How to update and delete records in a text file?

    Hi,
    I had a text file in which contains records line by line with ',' as delimiter as I use stringtokenizer and vector to read the data.
    The format in the text file likes: Name, Sex, Age.
    I want to add 2 functions:
    (1) update the record by name, sex or age;
    (2) delete the whole line of record;
    Do I need to open a temp text file to do it?
    And, what is the algorithm can be suggested?
    For both of them, I want to firstly read the total line numbers. Then, the line number + Name, Sex, Age will be displayed on the console window. User can choose which line of record to update or delete.
    Or, user can search name in order to do that.
    But, what is the backend algorithm to handle it? If I have 10 lines of record, I want to delete 7th line, the 7th line of the text file will be blanked. How can I move 8th, 9th and 10th lines of records up by one line in order to fill the blank line?
    Do I need to copy the first 6 lines to a temp text file and copy the last 3 lines of records to the same temp file first? and then copy all the content of that temp file back to the original text file? If so, how can I copy the same format of the original file (with '\n') to the temp file? I need the same data structure likes Name, Sex, Age.
    However, when I add records, I need to append the text in the original text file, not override it's current content.
    Any advice?
    Thanks
    gogo

    If your file is not designed to be amazingly large, then you don't need to use a temporary file -- you can just read the data into memory and manipulate it there. (Like, into a Document object or something.)
    But if you are dealing with really large files, you might want to consider using a database back end instead of a text file, which is a completely different approach I know but... well, that's why databases were invented.

  • How to add new condition record to sales order items

    Hello All,
    I have requirement to add to new condition record to get more discount on the item during sales order processing based on some conditions. In user exit SAVE_DOCUMENT_PREPARE , I am populating an internal with items for which additional discounts are required. So want to add condition record to those items to get additional discount.
    I know that in VOFM routines we can modify the existing condition record value but not sure what is the best place to append new condtion record to conditions table.
    Thanks,
    Suman

    Hi suman,
                   As which conditions you want or whatever logic you want for to write for applying the conditions you need to make changes at two includes and one FM by using Implicit Enhancement
    1) MV45AFZZ
    2)RV61AFZB
    3) FM name i am not remembering you can debug and find out.
    Regards,
    Shahezad

  • How to change a list/menu to a text field when 'Other' is chosen?

    Hi there. I've been trying to solve this for a week now and I have depleted all my resources, that is why I'm here. I even went to jquery but nothing works and I think I was over-complicating this way too much.
    In short: I have a contact form, which have a list/menu with validation, and one of the options of that list/menu is "other". What I want is that when the user select "other" automatically change to a text field in order to let the user put his custom color. This is what I have:
    <form method="post" action="process.php">
    <span id="spryselect1">
    <label for="colors"></label>
    <select name="colors" id="colors">
    <option selected="option1">Blue.</option>
    <option value="option2">White</option>
    <option value="option3">Red</option>
    <option value="other">other</option>
    </select>
    <span class="selectRequiredMsg">Please select a colour.</span></span>
    <input type="submit" value="Send">
    </form>
    I know now that the approach is to show/hide a separate textbox besides the other... well. I don't know how to implement that, I think I really need your help guys. I'm completely frustrated.
    Thanks in advance.

    Have a look at the following
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="http://labs.adobe.com/technologies/spry/widgets/selectvalidation/SpryValidationSelect.css" rel="stylesheet">
    <link href="http://labs.adobe.com/technologies/spry/widgets/textfieldvalidation/SpryValidationTextField.css" rel="stylesheet">
    <style>
    .hidden {display:none;}
    </style>
    </head>
    <body>
    <form action="" method="post">
      <span id="spryselect1">
      <label for="colors">Colours:</label>
      <select name="colors" id="colors" onchange="MyOnClickHandler(this.value)">
        <option value="">Please select...</option>
        <option value="blue">Blue</option>
        <option value="white">White</option>
        <option value="red">Red</option>
        <option value="other">other</option>
      </select>
      <span class="selectRequiredMsg">Please select a colour.</span></span><span id="sprytextfield1">
      <input name="other" id="other" class="hidden" type="text">
      <span class="textfieldRequiredMsg">A value is required.</span></span>
      <input name="" type="submit">
    </form>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryDOMUtils.js"></script>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationSelect.js"></script>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationTextField.js"></script>
    <script>
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
    var sprytextfield1;
    function MyOnClickHandler(value) {
         if(value =='other') { //show text field and set validation
              if(!sprytextfield1){
              sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
              Spry.$$('input#other').removeClassName('hidden');
         } else { //hide textfield and destroy validation
              if(sprytextfield1 && sprytextfield1.destroy){
                   sprytextfield1.resetClasses();
                   sprytextfield1.destroy();
                   sprytextfield1 = null;
              Spry.$$('input#other').addClassName('hidden');
         return false;
    </script>
    </body>
    </html>
    Gramps

  • How to change the Destination URI value of a item table at run time

    I'd like to change the Destination URI of item of a table region when a column X of my view is not NULL. Where should I set the new Destination URI value for the item table region for specific row? Is in the RowImpl for the view object or in the Controler of the page?
    I'd really appreciate any suggestion.
    Thanks in advance.

    Hi,
    Thanks for the help, but I still dont know where I should to use setAttributeValue(DESTINATION_ATTR,OADataBoundValueViewObject());
    All examples that I saw till now here, suggestes to change something in the page in Controller but based on something entered in the page. In my case is IN to OUT, I will render some item table with a specific value parameter based what is in the database. Being more specific, I have a html table and one column Col1 has a value and it will have a DESTINATION URL if another column Col2 is Null. I believe I would have to check somewhere if the Col2 is null or not and change the DESTINATION URL property.
    Thanks again..

  • How to load a image from database to image item in oracle 10 g form

    I have stored some images in the Database Table with BLOB datatype. Now I need to load that image in the non database image item. Please advise. Thanks.

    You need to have a print server installed to generate the pdf. Either use BI Publisher and it's desktop development tool or use FOP/Cocoon.. Adding an image with them is a little more involved..
    Thank you,
    Tony Miller
    Webster, TX
    While it is true that technology waits for no man; stupidity will always stop to take on new passengers.

  • Query LOV and how to display the LOV back in the Text item.

    Hi All,
    I have got a big time problem in getting back my LOV value after Querying it.
    Am using a Tabular Canvas having 10 rows and two columns, one having "Type"(as LOV) and corresponding "Type identifier".
    My LOV is an non data block item, having the correct return type. When ever i search for a value in the LOV, its should give out all the "Type Identifier" list and the "Type".
    But what i am facing is, am not able to get back the selected LOV after querying it and am getting the entire "Type Identifier' with out any filter.
    In short my requirement is,
    - I need to search an LOV,
    - Display the LOV value in the "TYPE" field.
    - Display the corresponding "Type Identifiers'
    Pls note: Since am new to Oracle Forms, if in your replies, if you specify to use any code in trigger, pls specify which trigger to use.
    Thanks a lot in Advance... its bit urgent
    Arun

    Hi Dave
    The requirement is suppose i have an Lov called OrgName is atatched to a column in which user will select the Ou Name from the list and internally the respective org_id will store into the database where the OU Name is available in the same data block but it is not database item . (Only org_id is database item)
    Now if you query the same block i would expect the Ou Name should display .
    Right now in my case it is not displaying anything into that column.
    Hope u understood this time..Please let me know is there any trick?

Maybe you are looking for

  • Display of IPTC description during mouse-over in filmstrip

    Windows XP SP3, LR3 When you move your mouse over an image in the film strip, you get a temporary popup showing the IPTC title and description fields from the image. Unless I have missed something, this behavior can not be changed. This can be a prob

  • Pages 5.2: how to reflow tables

    I am preparing a document and have pasted a table from Numbers. When I add text before the pasted table, the table itslef does not move down with the text. Does anybody know if there is a way to force a pasted table to reflow with the text? Thanks!

  • Listener.ora syntax error in NV string

    Hi. I'm attempting to establish a connection with an Access db using ODBC. I've edited my listener.ora file to read the following: # listener.ora Network Configuration File: C:\oracle\product\10.1.0\Db_1\network\admin\listener.ora # Generated by Orac

  • Customer statement request fron fbl5n

    In FBL5N we can request for correspondence from Environment -Correspondence.I could request for only one customer at a time.Is it possible that i can request for more than one  customer at a time.

  • Enable for commenting in Reader -- Inconsistent behavior?

    Many similar threads on the forum, but my problem seems different.  I've built a portfolio in Acrobat Pro 9, containing multiple folders -- each with multiple files.  I want to enable all the files (mostly pdf's) for commenting in Reader  (urging cli