How to use GO_BLOCK in the POST_CHANGE triggering?

Hi all

I have a trigger post_change on a text element, I want to change the background color (using the Visual attribute) of certain items in another block according to the value of this mentioned point text.

But when I set a value for the first time some backgrounds are changed and when I change the value the previous actions for the backgrounds are, how to erase the effects of any changes to the value.

I wrote this code the trigger of PST-EXCHANGE on this element:

BEGIN

GO_BLOCK ('BLOCK1');

SET_ITEM_PROPERTY(:SYSTEM.) CURSOR_ITEM, VISUAL_ATTRIBUTE, 'DISPLAY_ITEMS');

LOOP

NEXT_ITEM;

SET_ITEM_PROPERTY(:SYSTEM.) CURSOR_ITEM, VISUAL_ATTRIBUTE, 'DISPLAY_ITEMS');

WHEN THE OUTPUT: SYSTEM. CURSOR_ITEM = ' BLOCK1. DATE_QUERY'; -IT IS THE LAST ELEMENT IN THE BLOCK

END LOOP;

IF: REP_SID = '01' THEN

SET_ITEM_PROPERTY('BLOCK1.) THE SUS, VISUAL_ATTRIBUTE, 'PAR_ITEMS');

ELSIF: REP_SID = ' 02 "THEN

SET_ITEM_PROPERTY('BLOCK1.) FIRST NAME ", VISUAL_ATTRIBUTE,"PAR_ITEMS");"

ELSIF: REP_SID IN ('05', '06', '07', '08',' 09', ' 10') THEN

SET_ITEM_PROPERTY('BLOCK1.) LIVE ', VISUAL_ATTRIBUTE, 'PAR_ITEMS');

SET_ITEM_PROPERTY('BLOCK1.) AT', VISUAL_ATTRIBUTE, 'PAR_ITEMS');

ELSIF: REP_SID = '20' THEN

SET_ITEM_PROPERTY('BLOCK1.) TOO ', VISUAL_ATTRIBUTE, 'PAR_ITEMS');

SET_ITEM_PROPERTY('BLOCK1.) DATE_QUERY', VISUAL_ATTRIBUTE, 'PAR_ITEMS');

END IF;

END;

The previous code gives me this error: illegal GO_BLOCK restricted procedure. How to fix or is there another way to achieve the same goal it please?

Thank you

Note: I use Oracle DB 10 G, Forms 6i

use key-next_item instead of POST_CHANGE.

It will work.

Also SET_ITEM_PROPERTY(:SYSTEM.) CURSOR_ITEM, VISUAL_ATTRIBUTE, 'DISPLAY_ITEMS'); does not work

You must use

Set_Item_Instance_Property (SYSTEM. CURSOR_ITEM, SYSTEM. CURSOR_RECORD,

VISUAL_ATTRIBUTE, 'DISPLAY_ITEMS');

Tags: Oracle Development

Similar Questions

  • How to use paper in the latest version of Windows Live Mail?

    How to use paper in the latest version of Windows Live Mail?

    Version 2011

    Short answer: the stationery support has been removed from Windows Live Mail with the upgrade of v.2009 v.2011 back in 2010.

    Long answer: there are two solutions of workaround that you can try.

    • If you have a stationery .htm file, open it in Internet Explorer, and then select file > Send > Page by email (Alt - F E P). Save the message as a result as a .eml file and use it as a model for messages.
    • You can get in shape, for example a background color, to a HTML signature, then apply this signature to an e-mail message. Here's the one I use when sending pictures:


      Hello!

      Love
      Noel


      Here is the result:

  • JavaFX how to use WebView load the local HTML page?

    JavaFX how to use WebView load the local HTML page?

    If the HTML code of the files in the class path, which is in the package, the load using one of the following ways:

    String url = Main.class.getResource("/html/index.html").toExternalForm();
    engine.load(url);
    

    The above methods can only load files outside the class path!

  • How to use PS to judge the existence of a file in the directory specified and how to use PS to the directory specified for create to create the file? (javascript)

    1, how to use PS to judge of the existence of a file in the specified directory? (using javascript)

    2, how to use PS to the directory specified for create to create the folder? (using javascript)


    Thank you!

    If (Folder(/*_insert_the_path_here_*/).exists == false) {Folder(/*_insert_the_path_here_*/).create()}

  • How to use photoshop with the same account on more than one laptop?

    How to use photoshop with the same account on more than one laptop?

    a single user license entitles you to two facilities simultaneous/activations.  so, what's the problem?

  • How to use setFireActionForSubmit with the settings and capture the parameter

    Hello

    Can someone explain how to use setFireActionForSubmit.

    I extend the ShoppingCartPG controller. In the extended controller processRequest method I am adding a button to the table and implementation of the setFireActionForSubmit, so when the button is pressed it triggers the setFireActionForSubmit event.
    I need to pass the RequisitionLineId as a parameter which is present in the t associated with the ShoppingCartPG.

    I used the following code in the processRequest
    =================================
    ' public void processRequest (OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    {
    super.processRequest (paramOAPageContext, paramOAWebBean);
    OATableBean otbRN = (OATableBean) paramOAWebBean.findIndexedChildRecursive ("ItemTableRN");
    OASB OASubmitButtonBean = (OASubmitButtonBean) paramOAPageContext.getWebBeanFactory () .createWebBean (paramOAPageContext, "BUTTON_SUBMIT");

    oasb.setID ("addnInfo");
    oasb.setUINodeName ("addnInfo");
    oasb.setText ("additional information");

    String pageName = paramOAPageContext.getRootRegionCode ();
    Hashtable params = new Hashtable (1);
    params.put ("param1", pageName);

    Hashtable paramsWithBinds = new Hashtable (1);
    paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL (OASB, "${oa.encrypt.current.RequisitionLineId}"));
    oasb.setFireActionForSubmit ("addnInfoEvent", params, paramsWithBinds, false, false);

    otbRN.addIndexedChild (oasb);
    }
    =================================

    And I capture the event "addnInfoEvent" in processFormRequest method and trying to capture the RequisitionLineId I the past as a parameter.
    This is the code that I used in processFormRequest.
    =================================
    ' Public Sub processFormRequest (OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    {
    super.processFormRequest (paramOAPageContext, paramOAWebBean);
    OAApplicationModule localOAApplicationModule = (paramOAWebBean) paramOAPageContext.getApplicationModule;

    String strEvent = paramOAPageContext.getParameter (EVENT_PARAM);

    If ("addnInfoEvent".equals (strEvent))
    {
    Number format = 0;
    try {}
    Format = new Integer (ClientUtil.getDecryptedParameter (paramOAPageContext, "param2"));
    }
    catch (System.Exception e) {e.printStackTrace () ;}

    String outmsg = "line ID:" + size + ":" + strEvent;
    throw new OAException (outmsg, OAException.INFORMATION);
    }
    }
    =================================

    But I'm not able to capture the RequisitionLineId I sent as a parameter.
    Can someone let me know what I am doing wrong.

    Hello

    Because your table is not a tip so table using a submit button approach will not work because it won't give you rank of reference and you will not be able to enter the id of the corresponding command line, instead you use an icon of the image, which can be created through customization. Let me know if you need help in the code.

    Thank you
    Pratap

  • How to use and control the tabs?

    Sorry for such a general question, but I use Firefox with older versions of Mac OS x for years and have just been struck by this brand new and I have no idea on your tabs, "new tab page" etc. Can you just send me some documents so I can understand what they are and how to use them?

    All I see on my headers Ff are all sorts of legs that have no relevance to me, like 'how to stop Firefox from... '. "(twice), a few other symbols Ff and other"tabs"I don't know everything." All the do is filling up a bar line.

    Thank you-

    You are welcome.

    If you have any other questions feel free to ask them.

  • How to use notes during the writing of my book with pages?

    How are used to write a book with pages of notes?

    You need the Apple EndNote plug-in for Pages v2.0and the EndNote 7.3.4 application (or later version) installed for compatibility El Capitan. With the plug-in installed and EndNote works, then you start Pages v5.6.1 and the Insert menu: reference EndNote is available for use. Launch Pages v5.6.1 prior to 7.3.4 EndNote and endnote reference entry in the Insert menu is not active.

  • How to use PersistentBitmap in the version 5.0 or any other method?

    I am completely unaware of an example of use of PersistentBitmap and am also not sure if it can be used in 5.0 but anyway, I extract the code next, I received, could someone advise me on how to use it?

    I have several images I want to stay put on the BB, even after a hard reboot. Links or advice is welcome! Thank you

    {classPersistableBitmapimplementsPersistable}
    int width;
    int height;
    int [] argbData;

    publicPersistableBitmap (Bitmap image) {}
    width = image.getWidth ();
    height = image.getHeight ();
    argbData newint = [width * height];
    image.getARGB (argbData, width, 0, 0, 0, width, height);
    }

    publicBitmap getBitmapImage() {}
    Bitmap image = newBitmap (width, height);
    image.setARGB (argbData, width, 0, 0, 0, width, height);
    return image;
    }

    The link below points to the documentation on the use of persistent store.  Take a look and let me know if you get stuck.

    https://bdsc.webapps.BlackBerry.com/Java/documentation/ww_java_datastorage/PersistentStore_intro_198...

  • How REGEXP_REPLACE used to replace the part of the string?

    Hello

    How can I replace the portion of string as follows, I want to replace the space as by ' - '.

    SELECT
    REGEXP_REPLACE (superior ("' Laura bought stuff from 2000 USD on 12 September 2012 to KL and kl left on September 20, 2012"),)
    ' [0-9] {1,2} [^ 0-9](JAN|) FEB | MAR | APR | JUN | JUL | AUG | MS | OCT | NOV | DEC) [^ 0-9] [0-9] {4}',
    (','-') "REGEXP_REPLACE.
    FROM DUAL;

    the output will be like this

    Laura bought of the stuff of 2000 USD on 12-Sep-2012 of KL and kl left on 20-Sep-2012

    concerning

    Something like that?

    SELECT
    REGEXP_REPLACE('Daivd bought stuff by 2000 USD on 12 Sep 2012 from KL and left kl on 20 Sep 2012',
    '([0-9]{1,2}) (JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC) ([0-9]{4})',
    '\1-\2-\3',1,0,'i') "REGEXP_REPLACE"
    FROM DUAL;
    

    Explanation:

    You group the parts of the date de-construct with (additional).
    You can use expressions, backreference \1 \2 \3 and add '-' between \1-\2-\3 signs.

    You should not user upper ('...') in the first parameter. If you cannot recover the original state of the letters.
    If you want to case-insensitive matching you should use 'I' in the last parameter of regexp_replace.

    http://docs.Oracle.com/CD/B19306_01/server.102/b14200/functions130.htm

    Published by: hm on 25.09.2012 00:38

  • How to use profiles for the metadata tab in window of Contribution

    Hi Experts,

    Is it possible to use profiles in metadata tab Contribution. ??

    I want each payable region must have its own profile. For, for example, if the user will pay company information, then the metadata tab should show only metadata related company, not other meta data that are not relevant here.



    Help, please

    I thought you said you knew how to use/create profiles in your previous post...

    It's the quick rundown: like the regular profiles, you will first need to make sure your content has the metadata field to trigger profile assigned when it is created. This is done in designer under the definition of "Changing the content of the region" in your area of contribution. Assign the "value of trigger to profile" under "Default metadata" and then as idoc to the activation of your profile content rule condition.

  • How to use HTML in the JavaFX controls?

    JavaFX supports using HTML in the text of the JavaFX controls? For example, in the Swing components:

    button = new JButton("<html><font face=arial size=16><center><b><u>E</u>nable</b></font><br>"
      + "<font face=cambria size=12 color=#ffffdd>middle button</font></html>");
    

    If not, we could find a workaround?

    Incorporating a WebView in a label for the HTML rendering


    A WebView is a node that displays HTML.

    Most of the controls implement labelled, or have elements that are labeled.

    One labeled has a method setGraphic (node) that allows you to establish the chart attached to the label of a node given (including a WebView).

    For example:

    WebView webview = new WebView();
    webview.getEngine().loadContent("
    Enable
    middle button"); webview.setPrefSize(150, 50); Button buttonWithHTML = new Button("", webview);

    need to create a button with html in there (I didn't actually try running the example above).

    Aside time to start relatively slow on first use and overhead costs (which I can't quantify) to use WebView in this way, there are a couple of jira exceptional applications that are a bit annoying.

    RT-25004 allow transparent backgrounds in WebView

    RT-25005 favorite auto sizing for WebView

    You can vote for applications above jira or comment if such a feature is important to you.

    FXML/TextFlow/CSS Alternative

    Rather than using html in the labelled, TextFlow control support was introduced in Java 8, so that could be used instead.

    TextFlow also works well with FXML and css if you prefer to have the stuff in the TextFlow handled via a markup and a declarative style language.

    Open feature request

    There is a feature open request RT-2160 HTML support for text , which is currently scheduled for implementation in the initial release of Java 8.  I think the likelihood of it actually included it is zero percent, if it can be considered for a future version.  You can vote for the issue or add comments to it or provide an implementation if you are so inclined.

    Implementation considerations

    A possible implementation would be something that analyzes the HTML and then built a TextFlow HTML parsed according to the rules that are set out laborious mind-numbing detail in the specification HTML5 treatment.

    You can use an HTML parser relaxed such as the analysis of validator.nur (even though there may be others who would be a better fit).

    A simple implementation would be just to use the Analyzer in the jdk that is used for the swing controls, but that is hopelessly outdated.

    Perhaps, even simpler would be to accept only html strict entry and just use SAX to parse out, although things like validator.nu are too difficult to work with.

    Then, to the limited number of analyzed tags that you want to support (and you don't want to really not compatible with HTML5 all for something like this - otherwise use just WebView), create your TextFlow of the DOM who created your Analyzer.

    I wouldn't even both trying to handle most of the things in your html string in your application, stuff to do with style, fonts, colors, etc. These things were never in any case any good html and css is better for their handling, so just support things commonly used in modern day regular html (take a look at the HTML source "bootstrap" for example to see what it might be - if bootstrap uses her, I don't think not that you support it).  Things will support you are things around structure of document as lists, headings, etc. div blocks and cover the nodes - so only to implement this kind of important things and delegate all the rest to css where it belongs.

    Also, make sure that your implementation is part of the FXML so that you can easily integrate your html subset in a doc FXML.

  • How to use variables in the report?

    Hello all,.
    I'm new to PlSql. Please bare with me.

    I have a report that runs on SSRS.
    Here is what I need it to do:

    When the report is run:
    1st of the month: it pulls the data from the previous months.
    16th of the month: from the 1st of the current month to 15.

    I am trying to use a case statement to find the right date and then use this value to ReportDate.
    ReportDate is a column in the database.

    -Find the 1st of the month
    SELECT
    CASE
    WHEN SYSDATE > last_day (add_months (SYSDATE-1))
    AND SYSDATE < last_day (add_months (SYSDATE,-1)) + 2
    THEN
    ReportDate = last_day (add_months (SYSDATE-2))

    ON THE OTHER
    SYSDATE
    END ReportStartDate,

    With the help of 10G.
    Again, I'm pretty new to this, so go easy. Let me know if I can provide any other details.

    Hello

    Welcome to the forum!

    1009545 wrote:
    Hello all,.
    I'm new to PlSql. Please bare with me.

    Certainly not! Isn't this kind of a site!
    Did you mean "Please * bear * with me?"

    I have a report that runs on SSRS.
    Here is what I need it to do:

    When the report is run:
    1st of the month: it pulls the data from the previous months.
    16th of the month: from the 1st of the current month to 15.

    What happens if it is running on another day of the month?
    The query below uses leans on the previous month when it circulates at any time from 1, in the 15th day of the month, inclusively and leans on the 1st to the 15th of the current month when run 16 or later.

    I am trying to use a case statement to find the right date & then use this value to ReportDate.
    ReportDate is a column in the database.

    -Find the 1st of the month
    SELECT
    CASE
    WHEN SYSDATE > last_day (add_months (SYSDATE-1))

    ADD_MONTHS (SYSDATE-1) will always be some time this month, then
    LAST_DAY (ADD_MONTHS (SYSDATE-1) will also be the previous month, but)
    SYSDATE is always in the current month,
    SYSDATE > ADD_MONTHS (SYSDATE-1) will always have the value TRUE.

    AND SYSDATE< last_day(add_months(sysdate,="">
    THEN
    ReportDate = last_day (add_months (SYSDATE-2))

    It's 2 months in the past. Are you ever interested in this old stuff? Areen can't you always interested in 1 months ago, or the current month?

    ON THE OTHER
    SYSDATE
    END ReportStartDate,

    With the help of 10G.
    Again, I'm pretty new to this, so go easy. Let me know if I can provide any other details.

    Whenever you have a problem, post CREATE TABLE and INSERT statements for some examples of data and outcomes from these data.
    See the FAQ forum {message identifier: = 9360002} it only takes a few minutes to read and can really help you get the most out of this forum.

    I think you want something like this:

    WITH     period_of_interest     AS
    (
         SELECT     CASE
                  WHEN  TO_CHAR (SYSDATE, 'DD') < '16'
                                           -- should be '16' above.  See note
                  THEN  TRUNC ( ADD_MONTHS (SYSATE, -1), 'MONTH')
                  ELSE  TRUNC (             SYSDATE    , 'MONTH')
              END     AS period_start
         ,     CASE
                  WHEN  TO_CHAR (SYSDATE, 'DD') < '16'
                  THEN  TRUNC (SYSDATE, 'MONTH')
                  ELSE  TRUNC (SYSDATE, 'MONTH') + 16
              END     AS period_end
         FROM    dual
    )
    SELECT     ...
    FROM     table_x              x
    JOIN     period_of_interest  p  ON  x.transaction_date >= p.period_start
                          AND x.transaction_date <  p.period_end
    ;
    

    Period_end is a somewhat misleading name for the column; It's actually the first DATE after the end of the period; That's why I used < (and not < =) when compared to the x.transaction_date.

    I'm not sure what ReportDate is in your description. This is an example of timid, you must validate CREATE TABLE and INSERT statements for some examples of data. It could be that ReportDate is just what I called transaction_date above.

    Published by: Frank Kulash on June 3, 2013 16:55
    This site is falling out my code. It seens to think the in the first

    WHEN TO_CHAR (SYSDATE, 'DD') < '16'
    

    indicates a kind of markup and will not display the '16', even if I put it on a separate on its own line.

    Published by: Frank Kulash on June 3, 2013 17:09
    Used & lt; to correct the estrangement, after sentries below.

  • during the partition: how to use to return the max of two columns

    Each unique id, I want to select the col2 value in the folder with the most recent date.
    When the lines with the same IDS have the same dates, I select the max value of col2.
    I want a line for each ID, but I get two rows for ID 3333333.

    with the data as
    (
    Select 1111111 as id, 'a' as col2, to_date('01-JAN-09','dd-mon-yyyy') like double union all the_date
    Select 2222222 as id, 'b' as col2, to_date('02-JAN-09','dd-mon-yyyy') like double union all the_date
    Select 2222222 as id, 'c' as col2, to_date('03-JAN-09','dd-mon-yyyy') like double union all the_date
    Select 2222222 as id, would be "like col2, to_date('04-JAN-09','dd-mon-yyyy') as the_date of all the double union"
    Select 3333333 as id, 'e' as col2, to_date('05-JAN-09','dd-mon-yyyy') like double union all the_date
    Select 3333333 as id, 'f' as col2, to_date('05-JAN-09','dd-mon-yyyy') like double the_date
    )
    SELECT id, col2, the_date
    Of
    (
    SELECT id, the_date, max (the_date) or col2 in (score by id) as max_the_date, max (col2) over (partition of col2) as max_col2
    from the data
    )
    where the_date = max_the_date and col2 = order by id max_col2


    Expecting this:
    COL2 ID THE_DATE
    1111111 a 01/01/09
    2222222 d 04/01/09
    3333333 f 05/01/09

    but I get 2 rows for ID 3333333

    Any suggestions?

    Use row_number(), not the max() to compare.

    with data as
    (
    select 1111111 as id, 'a' as col2, to_date('01-JAN-09','dd-mon-yyyy') as the_date from dual union all
    select 2222222 as id, 'b' as col2, to_date('02-JAN-09','dd-mon-yyyy') as the_date from dual union all
    select 2222222 as id, 'c' as col2, to_date('03-JAN-09','dd-mon-yyyy') as the_date from dual union all
    select 2222222 as id, 'd' as col2, to_date('04-JAN-09','dd-mon-yyyy') as the_date from dual union all
    select 3333333 as id, 'e' as col2, to_date('05-JAN-09','dd-mon-yyyy') as the_date from dual union all
    select 3333333 as id, 'f' as col2, to_date('05-JAN-09','dd-mon-yyyy') as the_date from dual
    )
    select id, col2, the_date
    from (select id,
                 the_date,
                 col2,
                 row_number() over (partition by id order by the_date desc, col2 desc) r
          from data)
    where r = 1;
    
    ID                     COL2 THE_DATE
    ---------------------- ---- -------------------------
    1111111                a    01-JAN-09
    2222222                d    04-JAN-09
    3333333                f    05-JAN-09                 
    
    3 rows selected
    

    Published by: tk-7381344 on March 5, 2009 11:46

  • Is there a book printed on how to use Thunderbird, as the "Dummies" Books series - which would be useful for us seniors?

    I am an older person who was very comfortable by using Outlook. MS took away XP, then I had to get a new computer with Windows 8.1. My service suggested Mozilla and responsible people. You (or someone) to publish a book with all the info I need to navigate through your program in the same place? (I read info printed on a page much better than on a screen of computer.) A format such as "Dummies" or "Fool" series would be great. Currently, I am looking for the instructions on your web page and I have to then write them. Your instructions are available in PDF format or something where I could just print them? A 'small Tour' print detailing what to expect from each of the headings / menu item would be useful. And knowing how Thunderbird compares - point to point in the jargon of both systems - with Outlook features would be the Holy Grail. My "Dummies" book on Win 8.1 bibliography Outlook but not Thunderbird.
    Parkinson's disease has slowed a bit my brain so I apologize for my lack of technical skills and knowledge or computer terms.
    Also, are there keyboard shortcuts for the use of bold, underline and italic in the body of my emails?
    Thank you for your patience.

    I'll try to print it as soon as I get a new printer. But at least I now have the web address. I'm trying to accumulate as much information that I can. It's a slow, flat learning curve. Through your post, I learned what FLOSS. Thanks again. I feel smarter already.

Maybe you are looking for

  • Equium A210 - 17I HDD is not too hot and mobile stops

    I seem to have a hard drive because of overheating - the laptop turns off intermittently and actually feels very hot (especially at the top left of the keyboard) I installed a HDD Temperature monitor and it tells me that the disc is currently at 54 d

  • How to recover / change "Installer? password

    I forgot my password for the installer

  • Adding computers to wbs on existing network 2011

    We have an existing Windows (old version) server. I installed sbs 2011. I assigned the name allianceserver. It has an internal address in the 192.168.1.3 the instructions show navigate to http://connect. It does not work. on another post, it shows th

  • Photosmart HP 7520: scan a document to my computer

    I can print from my computer, but I can't scan a document on my product on my computer. When I try to scan a document into the computer it says no computer found Situation of direct wireless is enabled Wireless status is enabled

  • OS2 debugging token: peer not authenticated

    After you have installed the OS2.0 beta I tried to install a token of debugging in the usual way, by using a batch file that I created to 1.07. The backberry - deploy the command returns: Error: peer not authenticated The command I use is: BlackBerry