How to convert a message Inline in the Page of the Apex of javascript alert message

Hi all. IM new at the Apex.

Current - approach
I have a region report dynamics developed using the API like APEX_ITEM etc. I use scripts in java to validate these dynamic elements and Alerts popup as shown below.

function ValidateNotObservedCB (p_row_num)
{
var v_row_num = p_row_num;
var v_not_observed_cb_status = document.getElementById('f_notobserved_'+v_row_num).checked;
var v_not_in_district_cb_status = document.getElementById('f_notindistrict_'+v_row_num).checked;
var v_program_code = document.getElementById("f_program_code_"+v_row_num).value;
If ((v_program_code.length > 0) & & (document.getElementById('f_notobserved_'+v_row_num).checked == true))
{
"BOLD" alert ("you have already entered a program code.") "BOLD"
document.getElementById('f_notobserved_'+v_row_num).checked = false;
document.getElementById('f_notobserved_'+v_row_num).value = 'n';
} else if ((v_program_code.length==0) & & (document.getElementById('f_notobserved_'+v_row_num).checked == true)) {}
document.getElementById('f_notobserved_'+v_row_num).value = 'Y ';
document.getElementById('f_notobserved_'+v_row_num).checked = true;
} else
{
document.getElementById('f_notobserved_'+v_row_num).checked = false;
document.getElementById('f_notindistrict_'+v_row_num).checked = false;
document.getElementById('f_notindistrict_'+v_row_num).value = 'n';
document.getElementById('f_notobserved_'+v_row_num).value = 'n';
}
}

Question/problem - how can I convert these to Inline messages alert messages to indicate on the page, similar to what appears when we take stock of the Validations at the APEX.

Waiting for answers because this is urgent.
Thanks in advance,
Madhu

You created an empty paragraph with an Id that you might find in your javascript code with

document.getElementById ('message')

After this in your javascript code say you in this paragraph "now your text is:" with the function

innerHTML = 'your message ';

And the generated HTML code is

+ Your message +.

And everything works fine!

Do not forget to say that my answer was 'Correct '! Thank you...

Bye and good luck on APEX.

Tags: Database

Similar Questions

  • How to convert Blu Ray Disc of the movie in general video and HD video formats

    How to convert Blu Ray Disc of the movie in general video and HD video formats

    Hello

    I doubt that this is possible because Bluray discs are mostly protected against copying.
    But if you have the Bluray m2ts file on your HARD drive, then you could try the tool called convertXtodvd. But I don't see that the reasons for this
    I mean that you will lose the quality of film converting the blueray to dvd.

  • How to convert table 1 d of the only single

    Hye, I am brand new in Labview. Can someone help me how to convert arrray 1 d of the only sin

    GLE.

    Use Index

  • How to convert a layer back to the text "T? He is currently uneditable (how did that happen?).

    How to convert a layer back to the text "T? He is currently uneditable and I want to change the font (also, how what happened?).

    According to your layers panel. The top layer is a text layer years the second layer is a raster layer. A raster layer once the case has been closed, cannot be cancelled. It will have to be re-created. If for some reason, you left the file open, then it is perhaps possible to cancel it, because it would show in the history stack. But by default that stack is set to 20 States, to more than 20 he would push the battery.

    I think that you have to bite the bullet and redo this layer.

  • With adobe export how to convert PPT to pdf with notes pages it only makes the slides

    With adobe export how to convert PPT to pdf with notes pages it only makes the slides

    Hi Robert,.

    We understand your problem, but with the subscription online, we can only convert the slides in PDF format. Speaker's notes would not get converted to PDF.

    If you want to convert the speaker notes with slides, then you need to buy the complete PDF solution: Adobe Acrobat

    Hope that answers your question. I would like to know if you have any other questions.

    Kind regards

    ~ Dominique

  • How to create a session variable in the Apex?

    Hello dear colleagues,

    Is there a person know how to create a session variable in the Apex?

    How to get them?

    Thank you

    Best regards

    Hello

    No problem, PS don't forget to mark messages as 'useful' or 'correct', if you did infact find them useful or correct ;)

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd

  • How can I trigger "Add tags to the document" via JavaScript?

    How can I trigger "Add tags to the document" via JavaScript? I am trying to add this fuction ITextSharp if when the user opens the pdf it could mark the document once it is opened automatically

    Is not possible.

  • The appearance of Javascript alerts is editable in Firefox 4.0?

    Firefox 4.0 allows users to do a lot of customization, which is great. This extends to the appearance of Javascript alerts?

    Unlike Firefox 3.6, in version 4.0 when an alert appears, the underlying web page is blackened, half opaque and half transparent. This attracts the attention of the user on the alert box. Is it possible for me to change this parameter in order to be opaque, 20% 80% transparent? This would make it easier for me to see what the alert is trying to talk to me about the underlying web page.

    You can use the code in Stylish or add code to userChrome.css below @namespace to change the background color and transparency.

    A few examples (first is the current default value; Use only one):

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    tabmodalprompt { background-color: rgba(25, 25, 25, 0.5) !important; }
    tabmodalprompt { background-color: rgba(224, 224, 224, 0.1) !important; }
    tabmodalprompt { background-color: transparent !important; }
    
  • How to convert string to datetime in the transformation of the Ombudsman

    Hello

    I am getting error below when inserting the data in the database using the database.

    Exception occurred when the link was invoked. Exception occurred during invocation of the JCA binding: "JCA binding run reference"insert"operations have to: DBWriteInteractionSpec Execute Failed Exception." insertion failed. The descriptor name: [InsertPayload.XxohInsertStgTable]. Created by Exception [EclipseLink-3001] (Eclipse - 2.3.1.v20111018 persistence Services - r10243): org.eclipse.persistence.exceptions.ConversionException Description of the Exception: object [2015-09-14 15:19:51], class [class java.lang.String], couldn't be converted [class java.sql.Timestamp]. Inner exception: LINK. JCA-11636 couldn't convert Timestamp Exception. Cannot convert a string value in the xml file to a java.sql.Timestamp. Although the databases accept strings representing the timestamps in a variety of formats, the adapter only accepts strings that represent xml ISO dateTime format. The input value must be in the format XS: DateTime to iso 8601, i.e. YYYY-MM - DDTHH:MM:SS.sss - 07:00. Please see the logs

    In the transformation of the mediator, the Source element is a string

    < xs: element name = "CREATED_DATE" type = "xs: String" > < / xs: element >

    Target is of type dateTime

    < xs: element name = "Creation_Date" type = "xs: DateTime" minOccurs = "0" nillable = "true" / >

    To avoid the above error, I used < xsl: value-of select ='xp20:format - dateTime (/CREATED_DATE, "[Y0001]-[M01]-[D01] [H01]: [m01]: [s01]")'/ > in the transformation, but its does not work. The value is blank display after processing.

    Please suggest me how to solve this problem.

    Thank you

    Sunita

    Unfortunately, the format required by the dateTime format is YYYY-MM - DDTHH:MM:SS.sss

    You can use the substring, and on the entry's concat function to create YYYY-MM - DDTHH:MM:SS.sss

    See formatting string to date in BPEL

  • How to convert a powerpoint presentation to the swf file?

    How to convert a PowerPoint to a SWF or flash?

    Google search using terms such as "convert Powerpoint to swf" and you should find useful information.

  • How to run queries of BSE within the APEX

    Hi gurus

    I want to run inside the APEX of a complex query extracted a simultaneous R11 EBS, but this application has many features such as USERENV('LANG') and USERENV('CLIENT_INFO').
    How can I set this info in order to run this application?
    I know that the values of these parameters, but my problem is to put

    Any help will be rewarded
    Oscar

    You must initialize a context apps before do anything associated EBS. The most common place for it is in the section of DTV application (renamed the PLSQL pre-rendered or something like that since 4 APEX).
    Use a call to fnd_global.apps_initialize. You must pass the appropriate values for the user, the responsibility, application etc.

  • How do I link a button from the APEX to the HTML file stored on the server app?

    I hope that it will be simple for a person

    We have some word documents very technical I really didn't want to replicate in the oracle reports

    So I saved them as html documents, and when I opened then they look very well in IE

    I placed in the folder where our reports are stored, but I can't figure out how to create the URL to be placed behind a button in the APEX?

    Of course the oracle reports url will not work as long as the pdf and servlet uses

    Thanks in advance

    Chris

    Assuming you are using Apache?

    You can place your Word documents in the same folder as your current Apex images directory (or a subdirectory it) and then reference them with a URL of the form http://yourserver/i/sample_word_file.doc. Alternatively, you can add a new Alias entry to your dads.conf file (located in your Apache/modplsql/conf directory) to expose the folder on your Web server that contains your Word via a URL like http://yourserver/word_docs/ files

    For example

    /Word_docs/ alias "c:\my_docs\technical_word_docs/".

    Andy

  • How long database links stay open at the APEX?

    When a report region runs a query on a remote database via a database link, how long the link remains open in the APEX? Usually the database links get closed the dedicated session ends, but I don't know when this happens at the APEX.
    Thank you.

    Request Express does not any explicit action to close links to the database at the end of a request.

    Scott

  • Anyway do a MODAL popup window in the APEX, using JavaScript

    Y at - it anyway to make a MODAL popup window in APEX, using JavaScript.

    What I do is, at various stages in an application, I'm coding, the system will display a pop-up window, prompting users to enter their credentials. These credentials are then verified via LDAP.

    Basically I don't want the user to be able to close the window without entering their password or by clicking on the Cancel button.


    Here is the code I use:

    onClick = "javascript:esign();" "(Adding the HTML Form element attributes)


    function esign() {}
    popUp2 ('f? p = & APP_ID.:8: & SESSION.: & DEBUG.:', 450, 200);
    }



    I did a quick search on google and I met some JavaScript libraries that could do what I'm after is to say prototype.js, jquery.js
    but I was wondering if there is a default library that comes standard with APEX.

    Any help gratefully received

    Thanks, Keith

    create a button calling url and url target as the value
    JavaScript:modalWin();

    Place this script in the header

    You can create a button in a modal window to close
    and use this code for the text label of the button

    Closet

  • How to convert sql server procedures in the format of oracle

    Hello

    I need help, I got some procedures that is written in the format MS Sql, I need to convert those to the format of the oracle, and I don't know how to do. Could someone help me?

    IN SQL server code format is:

    / * Object: StoredProcedure [dbo]. [sp_rpt_get_job_log_on_demand]    Script Date: 20/12/2013-09:07:26 * /.

    SET ANSI_NULLS

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    CREATE PROCEDURE [dbo]. [sp_rpt_get_job_log_on_demand]

    (

    @JOB_ID INT

    @REPORT_DATE AS DATETIME

    , @PERIOD VARCHAR (100)

    )

    AS

    BEGIN

    SET @REPORT_DATE = CONVERT (DATETIME, CONVERT (DATE, @REPORT_DATE))

    DECLARE @MONTH INT = (YEAR (@REPORT_DATE) * 100) + MONTH (@REPORT_DATE)

    , @TODAY = INT ((((@REPORT_DATE) YEAR * 100) + MONTH (@REPORT_DATE)) * 100) + DAY (@REPORT_DATE)

    @YEAR INT = YEAR (@REPORT_DATE)

    SELECT J.JOB_ID

    J.JOB_NAME

    CASE

    WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE

    OF OTHER F.FREQUENCY_TYPE + '-' + F.FREQUENCY_SUBTYPE

    END AS FREQUENCY_TYPE

    L.TRANSACTION_DATE

    L.PROCESS_DATE

    START_TIME

    END_TIME

    DATEDIFF(MINUTE,START_TIME,END_TIME) AS TIME_TAKEN

    L.RECORD_COUNT

    ISNULL(L.EXECUTION_STATUS, 'NOT STARTED') AS EXECUTION_STATUS

    L.ERROR AS ERROR_DESC

    P.PRIORITY_NUMBER

    P.COLOR_CODE

    OF dbo.JOBS J AS

    INNER JOIN dbo. ACE OF FREQUENCY F

    ON J.FREQUENCY_ID = F.FREQUENCY_ID

    INNER JOIN dbo. JOB_PRIORITY AS P

    ON J.PRIORITY_ID = P.PRIORITY_ID

    LEFT JOIN dbo. TBK_POS_FACT_LOADING_SUMMARY ACE L

    ON J.JOB_ID = L.JOB_ID

    AND)

    (@PERIOD = 'TODAY' AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) = @REPORT_DATE) OR

    (@PERIOD = 'MONTHS' AND ((START_TIME) YEAR * 100) + MONTH (START_TIME) = @MONTH) OR

    (@PERIOD = 'YEAR' AND YEAR (START_TIME) = @YEAR)

    )

    AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) < = @REPORT_DATE

    WHERE F.FREQUENCY_TYPE <>'NONE'

    AND J.JOB_ID = @JOB_ID

    UNION ALL

    SELECT J.JOB_ID

    J.JOB_NAME

    CASE

    WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE

    OF OTHER F.FREQUENCY_TYPE + '-' + F.FREQUENCY_SUBTYPE

    END AS FREQUENCY_TYPE

    L.TRANSACTION_DATE

    L.PROCESS_DATE

    START_TIME

    END_TIME

    DATEDIFF(MINUTE,START_TIME,END_TIME) AS TIME_TAKEN

    L.RECORD_COUNT

    L.EXECUTION_STATUS

    L.ERROR AS ERROR_DESC

    P.PRIORITY_NUMBER

    P.COLOR_CODE

    OF dbo.JOBS J AS

    INNER JOIN dbo. ACE OF FREQUENCY F

    ON J.FREQUENCY_ID = F.FREQUENCY_ID

    INNER JOIN dbo. JOB_PRIORITY AS P

    ON J.PRIORITY_ID = P.PRIORITY_ID

    INNER JOIN dbo. TBK_POS_FACT_LOADING_SUMMARY ACE L

    ON J.JOB_ID = L.JOB_ID

    WHERE F.FREQUENCY_TYPE = 'NONE '.

    AND)

    (@PERIOD = 'TODAY' AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) = @REPORT_DATE) OR

    (@PERIOD = 'MONTHS' AND ((START_TIME) YEAR * 100) + MONTH (START_TIME) = @MONTH) OR

    (@PERIOD = 'YEAR' AND YEAR (START_TIME) = @YEAR)

    )

    AND J.JOB_ID = @JOB_ID

    AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) < = @REPORT_DATE

    END

    GO

    I tried to convert it to a format of oracle... But I get the error message.

    --------------------------------------------------------------------------------------------------

    CREATE OR REPLACE PROCEDURE POS.sp_rpt_get_job_log_on_demand_V)

    JOB_ID NUMBER,

    DATE OF REPORT_DATE,

    PERIOD VARCHAR2 (100))

    AS

    BEGIN

    l_MONTH: = TO_CHAR (REPORT_DATE, "YYYYMM");

    TODAY: = TRUNC (REPORT_DATE);

    l_YEAR: = TO_CHAR (REPORT_DATE, 'YYYY');

    SELECT J.JOB_ID,

    J.JOB_NAME,

    CASE

    WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE

    OF OTHER F.FREQUENCY_TYPE | '-' || F.FREQUENCY_SUBTYPE

    END

    AS FREQUENCY_TYPE.

    L.TRANSACTION_DATE,

    L.PROCESS_DATE,

    START_TIME,

    END_TIME,

    (END_TIME - START_TIME) AS TIME_TAKEN,

    L.RECORD_COUNT,

    NVL (L.EXECUTION_STATUS, "NOT STARTED") AS EXECUTION_STATUS,

    L.ERROR AS ERROR_DESC,

    P.PRIORITY_NUMBER,

    P.COLOR_CODE

    OF POS.JOBS J.

    POINT OF SALE. FREQUENCY F,

    POINT OF SALE. JOB_PRIORITY P,.

    POINT OF SALE. TBK_POS_FACT_LOADING_SUMMARY L

    WHERE J.FREQUENCY_ID = F.FREQUENCY_ID

    AND J.PRIORITY_ID = P.PRIORITY_ID

    AND J.JOB_ID = L.JOB_ID

    (PERIOD = 'TODAY'

    AND TO_CHAR (L.START_TIME, 'YYYYMMDD') =

    TO_CHAR (REPORT_DATE, 'YYYYMMDD'))

    OR (PERIOD = 'MONTHS' AND TO_CHAR (START_TIME, "YYYYMM") = MONTH)

    OR (PERIOD = 'YEAR' AND TO_CHAR (START_TIME, 'YYYY') = YEAR)

    AND F.FREQUENCY_TYPE <>'NONE'

    AND TRUNC (L.START_TIME) < = TRUNC (REPORT_DATE)

    AND JOB_ID = J.JOB_ID

    UNION ALL

    SELECT J.JOB_ID,

    J.JOB_NAME,

    CASE

    WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE

    OF OTHER F.FREQUENCY_TYPE | '-' || F.FREQUENCY_SUBTYPE

    END

    AS FREQUENCY_TYPE.

    L.TRANSACTION_DATE,

    L.PROCESS_DATE,

    START_TIME,

    END_TIME,

    (END_TIME - START_TIME) AS TIME_TAKEN,

    L.RECORD_COUNT,

    L.EXECUTION_STATUS,

    L.ERROR AS ERROR_DESC,

    P.PRIORITY_NUMBER,

    P.COLOR_CODE

    OF POS.JOBS J.

    POINT OF SALE. FREQUENCY F,

    POINT OF SALE. JOB_PRIORITY P,.

    POINT OF SALE. TBK_POS_FACT_LOADING_SUMMARY L

    WHERE F.FREQUENCY_TYPE = 'NONE '.

    AND J.FREQUENCY_ID = F.FREQUENCY_ID

    AND J.PRIORITY_ID = P.PRIORITY_ID

    AND J.JOB_ID = L.JOB_ID

    (PERIOD = 'TODAY'

    AND TO_CHAR (L.START_TIME, 'YYYYMMDD') =

    TO_CHAR (REPORT_DATE, 'YYYYMMDD'))

    OR (PERIOD = 'MONTHS' AND TO_CHAR (START_TIME, "YYYYMM") = MONTH)

    OR (PERIOD = 'YEAR' AND TO_CHAR (START_TIME, 'YYYY') = YEAR)

    AND JOB_ID = J.JOB_ID

    AND TRUNC (L.START_TIME) < = TRUNC (REPORT_DATE)

    END;

    /

    POS PROCEDURAL errors. SP_RPT_GET_JOB_LOG_ON_DEMAND_V:

    LINE/COL ERROR

    -------- -----------------------------------------------------------------

    4/28 PLS-00103: encountered the symbol "(" quand attend un de la) "

    Next:

    := . ), @ % of default characters

    The symbol ': = ' has been replaced by "("pour continuer.) "

    76/1 PLS-00103: encountered the symbol "END" when awaits an of the

    Next:

    . (* % & -+; / TA for rem rest mod < an exhibitor > (*))

    and or group having intersect less order start union where

    connect | multiset

    The symbol ';' was replaced by 'END' continue.

    Thank you and best regards,

    John of Vikash

    Keep in mind, DBMS_OUTPUT is reserved for debugging purposes. If you want the output to a front-end, you can use SYS_REFCURSOR as OUTPUT parameter and get the data of the SELECT query.

Maybe you are looking for