To display region on a click of a button

hi,
I want to display a region on a click of a button which is in another region.I want when i click that button region containing button should get disappear and another region should get appear.when next time i open that page
region containing button should appear first.
second, i want to insert a check constraint on a field called mailid,that at time of inserting data in it ,it should contain '@'sign,if not a message should get displayed.
pls can u help in out.

Mak,
To show and hide your regions, you need to use conditions, please review the following section in the HTML DB documentation for information on how to do work with conditions:
http://download-west.oracle.com/docs/cd/B12037_01/appdev.101/b10992/mvl_a_con.htm#sthref1724
To validate your mail ID you could work with database constraints. However in order to customize your error message, I'd recommend using HTML DB validations, see the HTML DB documentation, chapter 7 for more information on how to work with validations:
http://download-west.oracle.com/docs/cd/B12037_01/appdev.101/b10992/mvl_buildr.htm#sthref938
Regards,
Marc

Similar Messages

  • Display the fullname without clicking on the button in this tutorial

    Hello,
    I am referring to this tutorial : Zeeshan Baig's Blog: Calling PL/SQL Procedure and Function in Oracle ADF application
    1) I would like the fullname to be displayed automatically after the employee id is input ,without having to click the getEmpFullName button.
    2) I would like to copy the fullname value to an entity attribute and save in db .
    Is that possible please ? Thanks.

    Thanks  931325 , I want to use the tutorial link that you sent me .
    Step1 : Define the application module method in respective page definition as shown in below screen shot 
    Step2: Write the below code in backing bean to invoke application module method
    Note : I have done step 1 , my method is already in page definition. How do you implement step 2 . 
    public void ot2_attributeChangeListener(AttributeChangeEvent attributeChangeEvent) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, "#{bindings}", Object.class);
    BindingContainer binding= (BindingContainer)valueExp.getValue(elContext);
    OperationBinding operationBinding=binding.getOperationBinding("createCurrentCustomerRow");
    // Set the Input parameters to the operation bindings as below
    operationBinding.getParamsMap().put("pCustomerID", "100"); 
    // Invoke the Application module method
    operationBinding.execute();
    // Get the result from operation bindings
    Object obj =operationBinding.getResult()
    Thanks

  • Need to display processing icon on click of submit button

    Hi all,
    I need to display a processing message like "Please wait....Request being processed" whenever the user clicks on submit button.There is a PL/SQL process which inserts data into the database on click of submit button.As this insertion would take time, I need to display a processing message as mentioned earlier.
    My approach was to create a javascript function and call it from the URL redirect section . when this option is selected,the processing message is displayed..but the PL/SQL process is not executed as the URL is redirected...
    Any help would be greatly appreciated....
    Thanks
    nashy

    To some degree, it will depend on just how long you think the process will take to run. If you think it's going to take several minutes (thus risking your page timing out), an approach I have taken is to run a process on submit which kicks off an oracle job (do a search for DBMS_SCHEDULER if this doesn't mean anything to you) thereafter, periodically repoll the page - you could go for a javascript method if you don't want to keep re-submitting the page - which checks to see if the job has completed.
    Once the job completes, you just show the data (or do whatever you need to do to indicate completion to the user).
    It does require a fair bit of conditional display and process control to pull off, but it is achievable.

  • Loading and displaying other  form on click of a button using swing

    hi,
    i've just started with my first ever swing program. i want to load another UI form on click of a button . how can i do that.

    Sorry for posting last message
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class MainCl extends JFrame
    public MainCl()
    this.setBounds(100,100,400,300);
    btn = new JButton("Click me to show another fframe");
    btn.setBounds(10, 20, 250, 30);
    this.getContentPane().setLauout(null)
    this.getContentPane().add(btn);
    btn..addActionListener(new ActionListener()
    JFrame frm2 = new SecondFrame();
    frm2.setVisible(true);
    public static void main(String [] args)
    JFrame frm1 = new MainCl();
    frm1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frm1.setVisible(true);
    JButton btn;
    class SecondFrame extends JFrame
    public SecondFrame()
    this.setBounds(200,200,200,100)
    this.getContentPane().add(new JLabel("This is NEW FORM"));
    }

  • How do you make a movieclip display and play when click on a button

    I'm looking to have a movie clip pop up, play itself after a user clicks on a flash navigation button.
    (something like this???)
    message_btn.addEventListener(MouseEvent.CLICK, goMessage1);
    function goMessage1(evt:MouseEvent):void
        ???(play message movie clip here)???;

    How you code that depends a bit on how you design the movieclip.  You could make the movieclip have an empty first frame that it is stop()-ed at, and tell it to play() in the event handler function.  Or you could have the movie's visible property  initially set to false and stop()-ed at frame 1 and have the event handler set the visible property to true and tell the movieclip to play();
    The key is to have a plan where the movieclip is waiting to play and has an instance name assigned to it that you can use to command it to play when you want it to.

  • SALV class : Footer display on click of a button

    Hi,
         I am using SALV classes to display ALV report. Is it possible  to display the footer on click of a button in ALV report (on user command) ?
    i am doing the following, but it does not work. there is no footer displayed
    METHOD on_user_command.
    CASE e_salv_function.
    WHEN '&ACT' .
    PERFORM  set_end_of_page   CHANGING o_table.
    WHEN  (...)
    endcase .
    FORM set_end_of_page CHANGING p_o_table type ref to cl_salv_table.
       DATA: lo_footer  TYPE REF TO cl_salv_form_layout_grid,   
              lo_f_label TYPE REF TO cl_salv_form_label,      
          lo_f_flow  TYPE REF TO cl_salv_form_layout_flow.
    **   footer object   
    CREATE OBJECT lo_footer.
    **   information in bold  
    lo_f_label = lo_footer->create_label( row = 1 column = 1 ).  
    lo_f_label->set_text( 'Footer .. here it goes' ).
    **   tabular information   
    lo_f_flow = lo_footer->create_flow( row = 2  column = 1 ).   
    lo_f_flow->create_text( text = 'This is text of flow in footer' ).
    lo_f_flow = lo_footer->create_flow( row = 3  column = 1 ).   
    lo_f_flow->create_text( text = 'Footer number' ).
      lo_f_flow = lo_footer->create_flow( row = 3  column = 2 ). 
      lo_f_flow->create_text( text = 1 ).
    ** Online footer   
    p_o_table->set_end_of_list( lo_footer ).
    **   Footer in print 
      p_o_table->set_end_of_list_print( lo_footer ).
    ENDFORM.

    H Geetha,
                  Add ScrollContainer to your view. In that take textView. Bind the context element to textView. Or Take TextEdit and bind the context. I don't think there is any problem.
    regards,
    Siva

  • Display region when process fails

    Here's my situation... I click on the button to parse and insert the data into a table. When there is a problem and the process fails, I would like to display another region with some different options for the end user. Any thoughts.

    I do not get but....
    If one process on page start...then page is not rerenderd until it is finished. If process if finished page is submited and then on refresh page process is not running.
    So I do not understand how can two process be started on the same process together?
    If this si so maye this could be the solution....
    could you create autonomous transaction (it commits their data regarding transaction that it participate in!) to make some parameter in table to 1.
    When other process starts it checks this value and if this param is 1 then it should not continue.
    P.S.
    Do not forget to put another autonomous transaction procedure which will set param to "0" after process finish.
    Do this main proc with strong exception handling to ensure that param is allways set to 0.

  • Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Did you check the Zoom setting?
    Have you tried a reset (reboot)? Hold HOME and SLEEP until an Apple logo appears.
    If it isn't Zoom and a reboot doesn't help try Settings/General/Reset - Reset all settings

  • I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.

    I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.
    ===Answer===
    Comment on usual method and solution, by a forum Moderator.
    As long as there are no confounding factors, such as certain extensions, or a user.jsfile the procedure is as follows
    # Open a new tab and type "about:config" in the address bar.
    # In the Search bar type: "newtab"
    # Locate and double click "browser.newtab.url"
    # In the "Enter String Value" box change "'''about:newtab'''" to "'''about:blank'''" and click OK.
    # Verify that the value has changed and now all new tabs will be blank.
    See post under by ''pirate048'' [/questions/976589?page=2#answer-509482] ~J99

    Have to say that I rather agree with Mark..all we want is a simple, unadorned clean page that doe not track and show usage!! WHY NOT!! Is it too simple for developers..we aren't all (nor do we want to be!) software experts! Come on Mozilla..tidy up and clean up..it might be a quicker programme too!!

  • How to display a seperate right click menu for each item of a tree control?

    Hi I want to display a specific right click menu when a particular tree item is selected. I know how to create a menu and how to display it. I am using the function GetLabelFromIndex() to get the active tree item and then compare the label and based on the result display a manu for that item. Now my problem is that when I use the above function in the EVENT_RIGHT_CLICK it gives me the error "the Index passed is out of range" while using the same function with the same arguments in EVENT_SELECTION_CHANGE it gives no error...below is the part of my code
    case EVENT_RIGHT_CLICK:
    GetLabelFromIndex(panelHandle, PANEL_TREE, eventData2, label1);
    //The function gives the stated error here
    if(eventData1)//after it I compare the result and display the menu
    case EVENT_SELECTION_CHANGE:
    GetLabelFromIndex (panelHandle, PANEL_TREE, eventData2, label1);
    //The function works fine here
    if (eventData1)
     If any one have any idea whats going on or alternate way of doing this Please share knowledge...Thanks
    If you are young work to Learn, not to earn.

    Hi,
    one possible approach of solving this problem is looking closer at the error message: The error "the Index passed is out of range" tells you that something is wrong with the index, either it is too small or too large So why don't you set a breakpoint and check the index value, it might be useful information...
    The other hint is to check the meaning of eventdata2 (using the help): It is different for different events! For the event_right_click it gives the horizontal mouse position, not the index as event_selection_change does...

  • Help with XML, display data on swipe/click

    Hello.
    I am trying to create a moibile app that displays XML data. It's basically a phone book. I want the data to change when swiped. I can get the data in just fine. I can get it to display fine. I am not seeing the correct image first, however. I think it's a problem with my imagenum variable.
    Then, I want to change what is displayed when the user clicks/swipes on the screen. How do I do that?
    stop();
    var nameArray:Array = new Array();
    var countryArray:Array = new Array();
    var portraitArray:Array = new Array();
    var flagArray:Array = new Array();
    var jobtitleArray:Array = new Array();
    var imageNum:Number=0;
    var totalImages:Number;
    //Load XML
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load(new URLRequest("recbook.xml"));
    XMLURLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(event:Event):void {
    var theXMLData:XML = new XML(XMLURLLoader.data);
    totalImages=theXMLData.name.length();
    for (var i:Number =0; i < totalImages; i++){
      //push xml data into the arrays
      nameArray.push(theXMLData.name[i]);
      countryArray.push(theXMLData.country[i]);
      portraitArray.push(theXMLData.portrait[i]);
      flagArray.push(theXMLData.flag[i]);
      jobtitleArray.push(theXMLData.jobtitle[i]);
    //data is processed
    loadData();
    function loadData():void {
    var thisPortrait:String = portraitArray[imageNum];
    var thisCountry:String = countryArray[imageNum];
    var thisName:String = nameArray[imageNum];
    var thisJobtitle:String = jobtitleArray[imageNum];
    var thisFlag:String = flagArray[imageNum];
    var dataLoader:Loader = new Loader();
    dataLoader.load(new URLRequest(portraitArray[imageNum]));
    dataLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dataLoaded);
    function dataLoaded(event:Event):void {
      //I want to start with image 0 (img1.jpg) and cycle through with a mouse click (finger swipe on iOS)
      stage.addEventListener(MouseEvent.CLICK, loadMainImage1);
      function loadMainImage1(event:MouseEvent):void {
       portraitUILoader.source=thisPortrait;
       flagUILoader.source=thisFlag;
       selectedName.text=thisName;
       selectedCountry.text=thisCountry;
       selectedJobtitle.text=thisJobtitle;
    //add to imageNum (1);
    imageNum++;
    if (imageNum < totalImages) {//stopping at img2
      trace("imageNum " + imageNum);
      trace("image name (thisPortrait) " + thisPortrait);//losing image 4 somewhere
      loadData();
      trace("Total Images " + totalImages);
    //click to move past the home screenI'd like to ditch this. don't know how.
    homeScreen_mc.addEventListener(MouseEvent.CLICK, goNext);
    function goNext(event:MouseEvent):void
    nextFrame();
    */here's the output:
    imageNum 1
    image name (thisPortrait) images/img1.jpg
    imageNum 2
    image name (thisPortrait) images/img2.jpg
    imageNum 3
    image name (thisPortrait) images/img3.jpg
    Total Images 4
    Total Images 4
    Total Images 4
    Total Images 4
    It starts the display on image 1 (the second in the series img2.jpg)*/

    Thank you.
    That helped. I get the correct images in the output, but not in the display. I also get the following error. Any chance you could help with that?
    new output after moving the increment:
    imageNum 0
    image name (thisPortrait) images/img1.jpg
    imageNum 1
    image name (thisPortrait) images/img2.jpg
    imageNum 2
    image name (thisPortrait) images/img3.jpg
    imageNum 3
    image name (thisPortrait) images/img4.jpg
    TypeError: Error #2007: Parameter url must be non-null.
    at flash.display::Loader/_load()
    at flash.display::Loader/load()
    at iOS_fla::MainTimeline/loadData()
    at iOS_fla::MainTimeline/loadData()
    at iOS_fla::MainTimeline/loadData()
    at iOS_fla::MainTimeline/loadData()
    at iOS_fla::MainTimeline/loadData()
    at iOS_fla::MainTimeline/processXML()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

  • Click the Open button in the Analyzer, display the Germen characteristic

    Hi expert,
    I intalled the BI, when log on the Analyzer, click the "Open" button, display the Germen characteristic, and can't open the Analyzer. Hope everyone supply a solution. thanks in advance
    Gavin

    Hi Gavin,
    you need to install a patch for office, the patch name:office2003-KB907417-FullFile-CHS.exe.
    if the patch can't resolve, you can install the BI current patch.
    Gaobo

  • On Button click change the button display text from LOCK to UNLOCK

    Hi Freinds,
    I am rendering a TreeByNestingTableColumn with two columns  like:  Name , Status as below shown. In The status column I inserted a Table Cell editor Button type and  the button element property text mapped to the context attribute called statusButton and set the button name in the code to display as LOCK. When the tree renders all the vales are displaying in status column as LOCK. Now whrn the user click on LOCK i should fire the event and change the button text from LOCK to UNLOCK. The same way when they click on UNLOCK and i have change to LOCK. please help how to do this.
       Name                          Status
    |> Employee1------------------LOCK (when i click on lock  button here, his and under neath of him button status should                 
            |>Employee2-----------LOCK    change from LOCK status to UNLOCK)                                                     
                   |>Employee3----LOCK
    Thanks in advance.
    Thanks
    Srini

    Armin,
    Yes I removed the method and created the calicualted value as you suggested and I able to get the out put what i have asked.
    My complete scenario is some thing like this, i able to complete upto certain level but not able to make it work for complete scenario, I appreicate your comments or advice for getting me the below output
    I have a TreeByNestingTableColum UI rendering with three columns as NAME(node |>), STATUS(Toggle Button) and PLANNING (Text view)  (developed based on sample tutorial Integration of a Tree Structure in a Web Dynpro Table.pdf)
    I am trying to get this output:
    From the sap backed i am getting flag value, based on that i have to render Tree UI columns NAME,  STATUS(Toggle Button) and PLANNING (Text view). if the flag is null i have to show as LOCK and In Planning else Unlock and Submitted  (please see the below picture for clear idea)*
    if (statusflag = ""){
    i have to show values in two columns like Lock ...Planning
    } else
    show values in two columns like Un Un Lock ...Submitted
    One more thing is , If i lock a record at secound node level , then all the records should locked underneath of that node (it could be 2 nodes or 10 nodes) and then the status column values should change from lock to Unlock and Planning column values should change from In Planning to Submitted. where as when i Click on Unlock , only that perticular record (not node level) should changed from unlocked to Lock and planning is  from Submitted to In Planning.
    This is the functionality actually I am looking for.
    Here the tree sample:
    Name                        Status              Planning
    |>M1                         Lock                 In Planning
       |>M2                      Lock                 In Planning
         *M2a                    Lock                 In Planning
       |>M3                    Un Lock                Submittd
    Thank you.
    Srini

  • How to Display a Calender upon clicking the dropdown list inside a table co

    Hi,
    I have a Listbox inside my table control and I need to Display a Calender upon clicking the dropdown list.
    Can any body help.
    Srinivas

    Hi,
    Try this:
    On your customizing screen,
    PROCESS ON VALUE-REQUEST.          
        Field T_ZT-SDATE
          module create_dateselect.
    In your main program:
    module create_dateselect.
    data:p_date like sy-datum.
    CALL FUNCTION 'F4_DATE'
       EXPORTING
         holiday_calendar_id = 'CN'                   
         display = ' '
       IMPORTING
         select_date = p_date
       EXCEPTIONS
         OTHERS = 4.
    t_zt-sdate = p_date.
    endmodule.
    Regards,
    Pole

  • How to display region from one page on the other page?

    Hi,
    I'd like to ask if someone know how to display region created on page X on page Y.
    I've tried to create a "URL" region on Y but this doesn't work and I generally think this is blind way.
    Next I've found an internal function "flows_020100.wwv_flow_disp_page_plugs()" that works pretty well (PL/SQL type region with calling the function) except that is displaying only regions on the same page. I know it's dirty hack but ...
    Any ideas or hints how to solve this? Thanks ...

    have a look here ...
    http://www.oracle.com/technology/products/database/application_express/pdf/apex_best_practices.pdf

Maybe you are looking for

  • Need some advice on a new build for CS5 Web Premium

    I am looking for a powerful PC that I can use mostly for work and some  light video work.  I have been looking at several systems, but I can't  decide if I should get the Core i7 875K, 950 or AMD 1090T for my needs.   I typically have many Adobe CS5

  • Unable to install Windows Server AppFabric

    Hello I am installing SharePoint foundation 2013 SP1 on Windows Server 2012 R2. I have run the prerequisite but it is unable to install Windows App Fabric and these are the logs for the same. 2014-06-14 13:57:33 - Reading the following DWORD value/na

  • Change position of download completed notification

    How I change position and set time to display of download completed notification box by PHP - JAVASCRIPT? or another firefox api to resolved this broblem. Thanks!

  • Invalid Mark-up Warning - Overlapping or Unclosed Tag

    QUESTION:  When the following code is placed into a PHP document created by Dreamweaver an invalid mark-up warning is received and several of the HTML tags are highlighted with yellow.  According to the warning an overlapping or unclosed tag is prese

  • Does anyone has had problems with cracks and damage to the trackpad?

    is my first time with apple. I expected more quality, but my computer has presented cracks in several parts so inexplicable and never dropped, besides the Trackpad does not work well. I am disappointed