Update the #NOTIFICATION_MESSAGE substitution string #.

Hello

I use a process that updates a report based on provided information of editable columns.
The problem is that, if in this process, I encounter an exception, for example 'ORA-01843 a month not valid' and I manipulate it in the EXCEPTION block
WHILE OTHERS then
IF (SQLCODE =-1843) THEN
+: P_ERROR: = ' error: some dates do not months contain valid (DD-MON-YYYY)'; +
END IF;
+...+

the process 'Error Message' Message the process section, appears only in the error page, but I want to show the error in the same page of the report.
So I think to update the #NOTIFICATION_MESSAGE substitution string # with my text from the + & block handle P_ERROR. + I've initialized in the exception.
How can I do?

Thank you very much
Adela

Hello

How about if you check how to use apex_application.g_notification instead of the own element?

Could help you
Notification/success message of the parameter when using owa_util.redirect_url
Re: apex_application.g_notification or g_print_success_message does not work

BR, Jari

Tags: Database

Similar Questions

  • Use a script to update the MaxL substitution variables

    We use the Essbase 11.1.1 version. Can we use MaxL script for updating the substitution variables rather than using the EAS web console? We want to put the MaxL script in a batch file and plan its Windows scheduled task.

    Thanks for your help!

    Hello-

    Yes. Here is an example of script maxl-

    connection "Hypadmin" "#" on myessbaseserver.
    spool to 'mymaxl.log ';

    / * Definition of the substitution variable * /.
    ALTER database appname.databasename set variable "CurMonth" "August";

    variable display;

    spool off;
    Disconnection;
    Exit;

    You can call this maxl from a batch file at the request of windows scheduled task.

    Concerning

  • Adding a substitution string without exporting the entire application

    Hello

    I was wondering if it was possible to add a substitution string to an application on a different environment without having to export the entire application.

    I use export by component a lot, but now I have a small update a page and a substitution string (specified in the Application definition).

    I have to get this update to another copy of our application, without the substitution of the entire application.

    With a full export, I noticed that the wwv_flow_api.create_flow function is called that has a lot of parameters and substitution strings:

    p_substitution_string_18 = > 'TEST ',.

    p_substitution_value_18 = > ' < img src = "" & test.png "title ="test"/ >".

    There is another function that can add them separately? Or I can insert them with a statement on a table?

    Hope someone can shine some light on this case, so I know how to export more different components.

    Thank you


    Robert

    PS: I use apex 4.2 with 11g, but I don't think that what really matters on this case.

    The substitution variables are found in the wwv_flows table and run from 01-20, you have to identify you with the user/schema of APEX_040200...

    Select substitution_string_01, substitution_value_01 from wwv_flows where id = 101;

    Update wwv_flows set substitution_value_01 = 'new value' where id = 104;

    Kind regards

  • Update the Blob column by replacing a string...

    Hello

    I have a table T1 with a (large binary BLOB) column, I need (you) to update the Blob string with replacement of a chain (in the Blob) with another string.

    The update failed: ORA-00933: not correctly completed SQL command

    CREATE table T1

    (

       ID                   NOMBRE (12)           PAS NULL,

    DELIVERY_CONTENT BLOB ,

    )

    Update   T1 The VALUE DELIVERY_CONTENT = LOB_UTL_PCKG . BLOBREPLACE ()DELIVERY_CONTENT 'old_string' 'new_string'( )

    WHERE ID in (...)

    ORA-00933: SQL not correctly completed command

    I use a function LOB_UTL_PCKG . BLOBREPLACE starting from this package

    CREATE OR REPLACE PACKAGE LOB_UTL_PCKG

    IS

    FUNCTION BLOBREPLACE ()p_blob BLOB p_what VARCHAR2 p_with_what VARCHAR2() RETURN BLOB

    FUNCTION BLOB2CLOB (p_blob BLOB) RETURN CLOB ;

    FUNCTION CLOB2BLOB (p_clob CLOB) RETURN BLOB ;

    END;

    /

    CREATE OR REPLACE PACKAGE BODY LOB_UTL_PCKG

    IS

    FUNCTION BLOBREPLACE ()p_blob BLOB p_what VARCHAR2 p_with_what VARCHAR2()RETURN BLOB 

    IS

    START

    RETURN CLOB2BLOB () REPLACE (BLOB2CLOB()p_blob), p_what p_with_what( ) );

    END BLOBREPLACE ;

    ------------------------------ BLOB2CLOB -------------------------

    FUNCTION BLOB2CLOB (p_blob in BLOB) RETURN CLOB

    IS

       v_clob     CLOB ;

    dest_offset INTEGER := 1 ;

    offset INTEGER := 1 ;

    lang_context INTEGER := DBMS_LOB. DEFAULT_LANG_CTX;

    warning INTEGER ;

    START

    DBMS_LOB. CREATETEMPORARY ( ) v_clob TRUE );

    DBMS_LOB. CONVERTTOCLOB( )

    v_clob ,

    p_blob ,

    DBMS_LOB. LOBMAXSIZE,

    dest_offset ,

    offset ,

    DBMS_LOB. DEFAULT_CSID,

    lang_context ,

    warning

    );

    RETURN v_clob ;

    END BLOB2CLOB ;

    ------------------------------ CLOB2BLOB -------------------------

    FUNCTION CLOB2BLOB (p_clob CLOB) RETURN BLOB

    ACE

       l_blob     BLOB ;

    l_dest_offset INTEGER := 1 ;

    l_source_offset INTEGER := 1 ;

    l_warning INTEGER ;

    lang_context INTEGER := DBMS_LOB. DEFAULT_LANG_CTX;

    START

    DBMS_LOB. CREATETEMPORARY()l_blob TRUE);

    DBMS_LOB. CONVERTTOBLOB( )

    l_blob ,

    p_clob ,

    DBMS_LOB. LOBMAXSIZE,

    l_dest_offset ,

    l_source_offset ,

    DBMS_LOB. DEFAULT_CSID,

    lang_context ,

    l_warning

    );

    RETURN l_blob ;

    END CLOB2BLOB ;

    END;

    /

    Concerning

    Djam

    It works well for me.

    Update T1 SET DELIVERY_CONTENT is LOB_UTL_PCKG. BLOBREPLACE (DELIVERY_CONTENT, 'old_string', 'new_string')

    Where IDSQL > 2 = 1;

    0 lines to date.

  • Update the xml string values.

    Hello

    I'm on 11.2.0.2 and got table with column nclob that stores the long xml string.

    {code}

    "<? XML version = "1.0" encoding = "UTF - 8"? >

    <? Fuego version = "6.5.2" build "101272 =? >

    < Game >

    < configuration name = "TEST database" type = subtype "SQL" = "DDORACLE" >

    < name = "jdbc.pool.idle_timeout property" value = "5" / > "

    < name = "jdbc.pool.entry.max property" value = "10" / > "

    < name = "oracle.dateEqualsTimestamp property" value = "false" / > "

    < name = "jdbc.schema property" value = "user1" / > "

    < name = "jdbc.host property" value = "hostname" / > "

    < property name = "user" value = "user1" / >

    < name = "jdbc.port property" value = "1521" / > "

    < name = "jdbc.pool.min property" value = "0" / > "

    < name = "jdbc.pool.maxopencursors property" value = "50" / > "

    < name = "oracle.sid property" value = "dbsid" / > "

    < property name = "password" value = "user101" / >

    < name = "jdbc.xa property" value = "false" / > "

    < name = "jdbc.pool.max property" value = "10" / > "

    < / configuration >

    < configuration name = 'TEST base2' type = subtype "SQL" = "DDORACLE" >

    < name = "jdbc.pool.idle_timeout property" value = "5" / > "

    < name = "jdbc.pool.entry.max property" value = "10" / > "

    < name = "oracle.dateEqualsTimestamp property" value = "false" / > "

    < name = "jdbc.schema property" value = "user2" / > "

    < name = "jdbc.host property" value = "hostname" / > "

    < property name = "user" value = "user2" / >

    < name = "jdbc.port property" value = "1521" / > "

    < name = "jdbc.pool.min property" value = "0" / > "

    < name = "jdbc.pool.maxopencursors property" value = "50" / > "

    < name = "oracle.sid property" value = "dbsid2" / > "

    < property name = "password" value = "user201" / >

    < name = "jdbc.xa property" value = "false" / > "

    < name = "jdbc.pool.max property" value = "10" / > "

    < / configuration >

    < / set >

    "

    {code}

    My goal is to update the value of the password so that it is equal to the value of jdbc.schema value < property name = "jdbc.schema" value = "user2" / > in this case user2 | " '01'

    < property name = "password" value = "user201" / > <-that's my goal.

    Concerning

    Greg

    Hello

    You can find a few methods here: How To: nodes of XML update with values from the same document. Oracle of Odie's blog

    They are not applicable to your options and version though.

    This is the first applied to your case:

    declare

    v_xmldoc xmltype.

    Start

    Select xmlparse (document to_clob (t.xmldoc))

    in v_xmldoc

    of my_nclob_table t

    where t.id = 1;

    for r in)

    Select idx, schema_name

    of my_nclob_table t

    xmltable)

    "/ game/configuration.

    passage v_xmldoc

    columns idx for ordinalite

    , schema_name varchar2 (30) path 'property[@name="jdbc.schema"]/@value '.

    )

    )

    loop

    Select updatexml)

    v_xmldoc

    , "configuration/game / ['|]» [to_char (r.idx) |'] Property[@name="password"]/@value'

    r.schema_name | '01'

    )

    in v_xmldoc

    Double;

    end loop;

    Update my_nclob_table t

    Set t.xmldoc = to_nclob (xmlserialize (dash, document v_xmldoc))

    where t.id = 1;

    end;

    /

    Here's another, using DOM:

    declare

    CLOB doc;

    p dbms_xmlparser. Analyzer;

    domdoc dbms_xmldom. DOMDocument;

    docnode dbms_xmldom. DOMNode;

    conf_list dbms_xmldom. DOMNodeList;

    conf_node dbms_xmldom. DOMNode;

    password_node dbms_xmldom. DOMNode;

    schema_name varchar2 (30);

    password_value varchar2 (256);

    Start

    Select to_clob (xmldoc)

    in the doc

    of my_nclob_table

    where id = 1;

    p: = dbms_xmlparser.newParser;

    dbms_xmlparser.parseClob (p, doc);

    domdoc: = dbms_xmlparser.getDocument (p);

    dbms_xmlparser.freeParser (p);

    docnode: = dbms_xmldom.makeNode (domdoc);

    conf_list: = dbms_xslprocessor.selectNodes (docnode, ' / game/configuration ');

    for i from 0... dbms_xmldom.GetLength (conf_list) - 1 loop

    conf_node: = dbms_xmldom.item(conf_list, i);

    dbms_xslprocessor.valueOf (conf_node, 'property[@name="jdbc.schema"]/@value', schema_name);

    password_node: = dbms_xslprocessor.selectSingleNode (conf_node, 'property[@name="password"]/@value');

    dbms_xmldom.setNodeValue (password_node, schema_name |) '01');

    end loop;

    dbms_xmldom.writeToClob (domdoc, doc);

    dbms_xmldom.freeDocument (domdoc);

    Update my_nclob_table t

    Set t.xmldoc = to_nclob (doc)

    where t.id = 1;

    end;

    /

    Post edited by: odie_63 - added DOM example

  • Classic generic column report - update the list column

    Consider a dynamic pivot statement as follows (as described by the AMIS) which

    select * from table( pivot(  'select deptno,  job, count(*) c from scott.emp group by deptno,job' ) )
    
    
    
    

    I used this as a SQL source for the classic report, by selecting "use generic column names.

    The report looks like

    dp_full.png

    I can set up the data displayed with a selection list and including a clause where clause

    where job =v(''P39_JOB'') or v(''P39_JOB'') is null
    
    
    
    

    List select not PPR on the region,demonstrated here:

    https://Apex.Oracle.com/pls/Apex/f?p=73000:39:

    Note: , and all swivel jobs are still visible in the form of columns, data is limited

    -other jobs are empty

    -departments with no clerks are not shown

    dp_clerk.png

    Let's say you have another list of selection than the work of groups, say the "Présidents" and "close".

    How can you update the region to exclude certain jobs?

    Reload the page with the value of P39_JOB already set will not affect the result, while including a literal string made.

    It seems maybe ODCI function analyzes the query on Lees null, and then fills with actual results.

    Does anyone have any suggestions?

    Update: it seems a workaround is to inject the value as a substitution string, for example:

    and employment as ' & P39_CEO. »

    where P39_CEO is lacking in session state %

    I've only had this concept works in my client application (4.2, 11 2 GR), not my demo (5.0, 12 c), to even try to meet the relevant quotes and when null. I kept getting

    error report: ORA-1403: no data found

    I could not work how to correctly apply sys.dbms_assert.enquote_literal)

    Scott

    Hi Scott

    What approach I described in this post: matrix report?

    It eliminates the need for any dynamic SQL and I think filtering options might be implemented using SQL/XML features.

  • Why substitution strings are now old value in application translated even after seed/publish?

    Hello

    Recently, I noticed a small, but from the perspective of our customer "big" issue. We defined in our application, some chains of substitution to keep more detailed information about the version of the application. Later, they are used in page templates to display information to end users. Recently I had to update the value of one of the chains of substitution. The change is immediately visible in the main application. Unfortunately, it is not the case for the translated application. For some reason the old value is retained. Even after doing the "seed"-> "Apply translation file"-> "publish." It is keeping the old value. I tried to use the "Translatable" checkbox in the model. In the translation file, is to show correctly the substitution in the 'source' and the tags string 'target', but still he is resolved to the old value.

    We use the APEX 4.2.2.00.11 running on 11g.

    Waiting for suggestions that maybe it's me forget somewhere extra time "checkbox. Thank you in advance.

    Greetings,

    kempiak

    It was my mistake. Value of the substitution string is included in the translation file. I changed it it and it works perfectly.

    Greetings,

    kempiak

  • Disabling update the configuration file without stopping the VI

    I would like to perform a function that when the new modules are added in the existing system of the public Service or hot swapping modules autour, the VI can update its configuration file. I don't want the VI to stop we will collect data 24/7.

    I use cFP2220 and two or three modules of different types. I have my work VI and it is fairly straightforward FP read.vi in a time loop. All data are stored in the database using the Labview database tool. My screws are hosted on the local PC, not on the controller. I'm using Labview 8.6.

    I guess I have to get the file configuration (iak), whenever new modules are added, the iak file can be changed (without MAX aperture). In any case, I would have the flexibility to run the VI continuous. I know there is a similar code here: http://zone.ni.com/devzone/cda/epd/p/id/3221and they get the configuration file in the ini file. But I don't know how it's done as I can save only the configuration file as a file iak for FP system.

    Another potential problem associated with that, I guess, is the database format. For now, I use a three column structure, i.e., DateStamp, value and ChannelID. In this case, if I want to add/remove/swap channels, I can just change the ID of the corresponding channel. What happens if I have a horizontal arrangement of the database, namely 10 columns corresponding to 10 sensors, would he be in trouble if I change channels modules?

    Thank you very much.

    There is a way to change the module and programmatically updated the IAK file without stopping the VI.  You will need to change the FP read.vi front right by with the constant e/s FieldPoint.  You will need to use the Open FP, FP create Tag, read FP, and close to the public Service.  The trick to this is that you must pre-create files IAK in MAX first.  The way to do is to set up your cart in a configuration and then find devices to MAX.  Then save the iak.  Then reorganize your bottom of basket to the next setting would have desired, then have MAX find devices and who save in a file different iak.  You will need to do this for each configuration you have.  Then, you need to place the code below when you want to Ministry the configuration file.  I have also included a screenshot of MAX that you can see what the strings are correlated with.

  • Update of list box strings [] programmatically in a table

    Hello

    I have an application that has several sites on the front where the user can select variables shared by using a shared variable control. I would like to replace these controls, which are heavy for the operator to select from variables published, to drop-down list boxes that list only the names of variables in a current published library. I have no problem cela providing you a shared list of variables and update the strings [] property in a drop-down list box. Then I can easily convert data types to use as shared variables elsewhere in my program.

    However, I have a few questions. First, in some cases, the shared variable controls are inside a table, and I do not know how to fill the combo box selections in the table. Perhaps there is an easy way that I'm missing...?

    Second, there are a lot of controls of shared variable that I will need to update the areas drop-down list, and in each case, I have to fill out of th drop-down list boxes programmatically. Is there an easier way to do it with the custom controls or type defs or something, so that I can just bring a control on the front panel that will always fill up with variables shared in my library?

    Thanks in advance for the help.

    Michael Hampson

    XL Automation, Inc.

    I rarely disagree with Ben, but a driving force seems to be overkill for a job you want to do it once when the application starts.  Simply create a first reference your comboboxes (shouldn't be too much work unless you have a large number of them), then loop through the array, as shown:

  • Help update the values to modify files on Excel sheet

    I have an excel sheet containing a list of values that need to be updated daily. Cells that have values are related to certain cells in a separate file. The problem is that the file that gets my excel sheet is constantly updated values of as well as the file name. I want to create a macro that will be able to grab the values from the new file and update the spreadsheet I have. I tried to create a macro when you type the name of the file you want to the linked cells to, and she copy that and replace a formula that is already defined, so I'll be able to get new values. I'll show you an example below.

    Front of Macro

    Enter the name of the file: 12345

    (Part 1): = 'S:\MATERIALS\RAW matiere\ [135.xlsx] PURCHASE! $D $11

    During the Macro

    Enter the name of the file: 12345

    (Part 1): = 'S:\MATERIALS\RAW matiere\ [12345.xlsx] PURCHASE! $D $11

    (replaced the file name 135 with 12345)

    When I did that it worked, but my problem is that whenever I entered a new file name so that it is updated (for example 987), the cell would just update with the file I recorded the macro with (12345).

    If someone has a code VBA or other suggestions, I would really appreciate it! If you need me to explain more about this, feel free to let me know. Thank you

    The command of VBA macro to set the formula in a cell is:
    Range ("a6"). Formula = "= 1 + 1.

    This would create cell A6 of the formula "1 + 1 =", and the cell afficheraient a 2 it.
    Here is a full function VBA, you can use and customize.  Simply paste in your VBA Editor to use.  You can see the string which is the formula is to break with the prompting text in the middle.

    Void macroFunctionName()
    As Variant Dim promptText
    promptText = InputBox ("What number to the file name?", "Type number please")

    Range ("a6"). Formula = "='S:\MATERIALS\RAW matiere\ ["promptText & ".xlsx] PURCHASE '! $$D 11 "
    End Sub

  • Update the fields in a HorizontalFieldManager

    I have this kind of configuration, basically, I have a refreshment menuitem that once selected will extract data from an xml page. I have already developed information retrieval, my problem is the display of the information. I searched the forums and found methods such as invalidate() or updateLayout(), but it does not work for me. (Well it should, but obviousky I do not know where to place/calling these methods)

    the information is supposed to be displayed using the LetterA1a1RichTextField. Each chef has his own custom handler class.

    Here is my code, it's a bit long.

    Inside of the class that extends screen:

    public void setupScreen(){   this.addMenuItem(new MenuItem("Refresh", 100, 1)   {          public void run()         {                    /***            * fetch information            */              fmi = new FetchMarketIndices(mi);            fmi.start();       updateScreen(fmi.getMarketIndices());                    }    });}public synchronized void updateScreen(MarketIndices mi){    letterAHorizontalFieldManager.updateFields(mi, getScreenComponents());    this.invalidate();}
    

    The class inside LetterAHorizontalFieldManager:

    public synchronized void updateFields(MarketIndices mi, ScreenComponents sc){    letterA1VerticalFieldManager.UpdateFields(mi, sc);    this.updateLayout();}
    

    The class inside LetterA1VerticalFieldManager:

    public void UpdateFields(MarketIndices mi, ScreenComponents sc){  int nColor=Color.WHITE;
    
     if(Double.parseDouble(mi.getAll()) > 0)    {     nColor = Color.LIMEGREEN;     letterA1aHorizontalfieldmanager.SetText("+"+mi.getAll(), sc, nColor); }                 else if(Double.parseDouble(mi.getAll()) < 0)   {     nColor = Color.RED;       letterA1aHorizontalfieldManager.SetText(mi.getAll(), sc, nColor); }
    
       this.invalidate();}
    

    LetterA1aHorizontalfieldManager backwards:

    public void SetText(final String text, final ScreenComponents sc, final int nColor){    deleteRange(1, 1);    letterA1a1RichTextField = new RichTextField(text, RichTextField.NON_FOCUSABLE | RichTextField.TEXT_ALIGN_RIGHT)    {        //override the paint method of RichTextField to allow changing of font color        public void paint(Graphics graphics)         {            setFont(sc.getContentFont());            graphics.setColor(nColor);            super.paint(graphics);
    
            }    };    add(fieldSetValue);    this.updateLayout();}
    

    Help please!

    Solved... apparently the RichTextField is updated, but the field was simply not visible. I forgot to update the width of the textfield object to fit inside the Manager... Thanks anyway.

  • Need help with this code to update the user interface example

    I'm triying to understand the differences between the three methods to manage UI interactions.
    I'm really confused with these three terms when triying them figure out in a real case.
    Basically, I know that I should use invokeLater, invokeAndWat, or getEventLock() to avoid
    This exception: java.lang.illegalStateException: engine access UI without holding the lock on the event

    The code below illustrates the function of the invokeAndWait method, but if I replace it with
    invokeLater or getEventLock() the program will work exactly the same way.
    Could you please change the code to show the differences between the three
    methods of updating the user interface?

    / public final class HelloWorldMainScreen extends form {}

    private LabelField labelField;
    public HelloWorldMainScreen() {}
    labelField = new LabelField ("Hello World");
    Add (labelField);
    Thread MainScreenUpdaterThread = new MainScreenUpdaterThread (this);
    thread. Start();
    }

    {} public void appendLabelText (String text)
    labelField.setText(labelField.getText()+"\n"+text);
    }

    }

    SerializableAttribute public class MainScreenUpdaterThread extends Thread {}
    HelloWorldMainScreen screen;

    public MainScreenUpdaterThread (screen HelloWorldMainScreen) {}
    this.mainScreen = screen;
    }

    public void run() {}
    for (int i = 0; i)< 10;="" i++)="">
    try {}
    Thread.Sleep (5000);
    } catch (InterruptedException ex) {};
    UiApplication.getUiApplication () .invokeAndWait (new Runnable() {}
    public void run() {}
    mainScreen.appendLabelText ("Update");
    }
    });

    }
    }
    }

    These three concepts are very confusing for a lot from people so all explanatory source code
    describing their functions will be highly useful for everyone, I think.

    Thanks in advance!

    With respect to the effect, there is no difference between methods.  The difference is the way in which the result is achieved.  So we can't change the code to show you the difference.

    As we are unable to demonstrate the difference, you have to do with an explanation.  To understand the explanation, you'll need to understand the thread of events, so if you have not already, please consider this:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

    If the three options are differentiated by the processing order:

    (a) invokeLater executes the update on the thread of events.  The transformation takes place at a later stage and the code which is in order after the invokeLater will actually run before the code within the invokeLater.

    (b) invokeAndWait also manages the update on the thread of events, which means that all other events that await on the thread of events will be run before this code.  But any code after the invokeAndWait will not be executed.

    (c) the synchronized option, like invokeAndWait, runs the update of the UI before moving on to the following code.  The difference is that the code to run on the event Thread is not executed before code in the synchronized block.

    If this is meaningless, so that probably does not matter too much.  in general, you should use invokeLater, except if you need to update the user interface occur in the order with your background processing.  If so, use invokeAndWait. It has synced are very few occasions where you must use the block, and it should be very small updates to the user interface and you should understand the implications this could have on the wire events.

  • Better implementation of a callback method to update the various fields?

    Hey everybody,

    I'm developing an application that uses the Google Translate API.  I set it up so that a user can specify a language before you do, and then once they connect, I have wrappers around each piece of text displayed on the screen which will result by the text based on the language selected.

    My problem is that several things must be brought on a given screen.  Therefore, I need to access Google Translate API several times per screen.  To do this, I opened a HTTPConnection on a new thread.  So I turn my screen Interface to the translator class, and then the translator class call my callback methods for the screen (requestSucceeded() or requestFailed()).

    Now, let's say that I have translated the title of the screen and the screen text.  These are two separate HTTPConnections.  So, when the title is translated, I want my requestSucceeded() setText method on my LabelField title.  When the body of the text is translated, I want my requestSucceeded() setText method on my body LabelField.

    What is the best way to have my requestSucceeded() method to differentiate the various fields to be updated?  Currently, I'm passing to the translator two things (via a string [] array): the text to be translated and a 'cookie', which describes the element being translated.  I then use if statements in my callback requestSucceeded() Update method the appropriate field based on the 'cookie' (which the translator will send in return and the text translated).

    I feel like there must be a better way to do this. Does anyone have any suggestions?

    Thank you!

    I don't know I understand your question, but it seems that this is to decouple the the task of translation of background of the user interface element that is being translated. You're already halfway to decouple the background translator of the mechanism that updates the user interface. What you seem to be missing is a nice way to specify the target of the translation without writing a lot of switch / if statements.

    Instead of having a translation callback object that serves several UI elements, you could create a reminder for each UI element. The reminders will always implement the same interface, so the task of the translator background will be not supported. For example, the interface could be something in the sense of:

    interface TranslationCallback {
      void translationCompleted(String translation);
      void translationFailed(Throwable cause);
    }
    

    Your user interface would then create a callback object that encapsulates a user interface element (for example, a text field) and implements the TranslationCallback above. Inside of the translationCompleted and the translationFailed logic will not need to understand which element to update, because the reminder is associated with a particular item in a particular category, for example, TextField.

  • is it possible to acquire the URL as string in APEX?

    it is possible to acquire the URL (for example http://xxxx.com:12345 / DSB? test = xxx) which is issued when the APEX as string access by APEX?

    Hello

    You can use chains of substitution, for example APP_ID and APP_PAGE_ID to build URLS.

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39147/concept_sub.htm#sthref197

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39147/concept_sub.htm#BEIEIDAB

    In the HTML area, you get a full link to the example page

    my link
    

    Kind regards

    Jari

  • need to update the value of the column automatically (exists and the new value)

    Hello

    (1) I Segment1, Segment2, Segment3, Segment4, item_status (new column modified in the Temp table)

    Must update the form OFA and the DB Temp table item_status value in the column when I click APPLY to SAVE the Inserted records in the DB table and form and must register the mtl_system_items_b Segment1, Segment2, Segment3, Segment4 in which the condition

    Note: need to update automatically item_status for existing and new inserted records in the Table and the form

     Serializable[] param = {Segment1, Segment2, Segment3, Segment4
                       };
                       am.invokeMethod("InsertRecord", param);
                       row.setAttribute("SelectFlag", "N");
    

    Thank you

    Renon,

    When you write code, try to understand what makes each line. (If you don't understand all the lines, feel free to ask)

    row.setAttribute ("ItemStatus", row.getAttribute ("ItemStatus"));

    What do you think that the above line done? You try to get the value of the attribute and trying to put the same value. How is it, that will have an impact?

    You need to do 2 things.

    1. change the insertRecord method and the State of return of this method.

    Change the definition of the function:

    public String InsertRecord (String itemstyle, String itemcust, String itemsize, String itemcolor, String ordrno,

    String desc)

    Add a return statement at the end after validation.

    TR.Commit ();

    return the situation;

    }

    2 accept that status in CO and set the value to the attribute details VO.

    String status = (String)am.invokeMethod ("InsertRecord", param);

    row.setAttribute ("ItemStatus",status);

    I hope this helps.

    See you soon

    AJ

Maybe you are looking for

  • HP ProBook 470 G1: Drivers for HP ProBook 470 G1

    I tried to download the drivers for a newly purchased HP ProBook 470 G1. This page http://h22207.www2.hp.com/us-en/drivers/selfservice/identify?q=probok+470+g1&tool=s-002#Z7_3054ICK0K... gives me three hyperlinks. When I click on one of them that no

  • WRT160N... password does not work to get back in line to restore settings after update firmware.

    The reason for the update of the firmware has been that the router would constantly disconnect, even if the ISP has been connected.  I was hoping that would solve the problem. Failed to connect to router just after the firmware has been updated succe

  • Computer not stay awake for the scheduled task

    System wakes up to the task at the right time, but falls asleep almost immediately after starting the task.  Power management is set to put the computer to sleep after 20 minutes, but eventlog shows the alarm system at 01:59 for the scheduled task an

  • My copy of Windows 7 has decided that is no longer valid! Any ideas?

    Diagnostic report (1.9.0027.0):-----------------------------------------Validation of Windows data--> Validation code: 50Code of Validation caching online: 0xc004c4a2Windows product key: *-* - YG468 - PFGV4-4T24KThe Windows Product Key hash: w9ov6Vax

  • Event 37, core - for 8-processor CPU power

    Hello! Thanks for reading! First of all, I should mention that my computer works well. However, in the Event Viewer I see several warnings for: Event 37, kernel-processor-Power The messages that I receive is: The speed of the processor (0-7) in group