In MVC, do i need a View or Page with flow logic for POPUP window

Hi All,
I have the below scenario using the MVC pattern.
I have a main view with 3 trays, each tray has two buttons, for example first tray has Create Order button. When I click on this button, I need a popup window to come with a tableview and a button(Create), where I select some rows and click on the button Create  to create order.
But as per the MVC pattern I canu2019t call the view (popup) from another view(main view).  So should I create a VIEW or PAGE WITH FLOW LOGIC for the popup? .
I need 6 popup to be called from the main view and once the function is done close the popup.
Please suggest me the flow for this scenario.
Cheers,
Srini.

Srini,
1. You can call the view in pop-up because you will be calling the controller using open.window.
Here is the sample code:
method DO_REQUEST .
  data:
        li_vw           type ref to   if_bsp_page,
        lv_form_field   type          string,
        li_md           type ref to   zcl_model01.
  dispatch_input( ).
  li_md ?= get_model( 'm01' ).
  lv_form_field = request->get_form_field( 'invoice_create' ).
  if lv_form_field is initial.
*------ Request to display main page
    li_vw = create_view( view_name = 'main.htm' ).
    li_vw->set_attribute( name = 'model' value = li_md ).
    call_view( li_vw ).
  elseif lv_form_field eq 'true'.
*------ Request to display Invoice page in pop-up
    li_vw = create_view( view_name = 'invoice.htm' ).
    li_vw->set_attribute( name = 'model' value = li_md ).
    call_view( li_vw ).
  endif.
endmethod.
Layout:
      function do_Invoice()
      { var s=0; r=1; w=300; h=300; x=screen.width/2;
        x=x-w/2;
        var y=screen.height/4;
        y=y-h/2;
        popUp=window.open('main.do?invoice_create=true','win','width='+ w
        +',height='+ h +', left=' + x +',top='+ y +');
Option2:
Ofcourse you can't bind the model in page becos those are 2 different things. But all you need to do is access the model to get some value. To know how to access the model from Page w/flow logic look at [this link|Passing model reference to a page in a Popup].
Raja
Edited by: Raja Thangamani on Apr 14, 2009 11:22 AM

Similar Messages

  • Page With Flow Logic x Views

    Hi Guys,
    What is the main difference between working with Page with flow logic and Views? I mean, I may build up my site using only Page with flow logic or just using Views, so Why should I use views or Page w/FL or Both?
    Thank you in advance,
    Alexandre

    Hi ACR,
    You can build your application using only flow logic but not ONLY with views..
    Take a look at below threads for difference in MVC and Flow logic methods...
    [Difference in MVC and Flow logic 1.|Re: diffrence between MVC and Classical Bsp application]
    [Difference in MVC and Flow logic2.|Difference between MVC and PAGES WITH FLOW LOGIC]
    [Difference in MVC and Flow logic3.|MVC model / page with flow logic]
    Kindly search the forum for more details.
    Regards,
    Anubhav.

  • Differences between controller/view & pages with flow logic

    Hi experts!!
    I am trying to create a BSP using the SBOOKSHOP tutorial.
    What i have not understood so far is the differnce between creating a bsp with pages with flow logic,
    and using the controller/ view method.
    When should we use the first and when the other approach??
    Any link to documentation would be appreciated!
    Thank you!!

    Hi Grigoria Koutsogianni,
    I hope the older thread on the same topic could help you understand the difference!
    1. Re: Understanding easy BSP development (MVC vs. Flow Logic and more...)
    2. Re: diffrence between MVC and Classical Bsp application
    -Maheswaran

  • Hpw tp call a 'Page with Flow Logic' from within a View

    Within the same BSP, I have the requirment to call a page in the ;Page with Flow Logic' section from a page in the 'View' section.   
    Is this possible and if it is, how do I do it?  I have tried some calls but they all have failed.
    Thanks
    Glenn

    in the view you want to navigate then try
    <bsp: call > or <bsp: goto>  htmlb tags. or else you can use window.open method and open in a new window.

  • MVC model / page with flow logic

    Hi all,
    I have started using MVC model in BSP application. Can anyone tell me the name of the controller methods corresponding to the following event handler methods(in case of page with flow logic):
    onCreate
    onRequest
    onInitialization
    onManipulation
    onInputProcessing
    onDestroy
    Thanks and Regards
    Shilpa

    Hi Shilpa,
    onRequest          -
    > DO_REQUEST
    onInitialization      -
    >  DO_INIT
    onInputProcessing  -
    > DO_HANDLE_EVENT
    onDestroy             ---> DO_DESTROY
    Thanks.

  • If I am viewing a page with the words date or match, the words are hyperlinks to a dating website. This is not so if I view the same pages in IE and has not been picked up by Norton, Spybot or malware bytes etc. Is this a Firefox bug?

    If I am viewing a page with the words date or match, the words are hyperlinks to a dating website. This is not so if I view the same pages in IE and has not been picked up by Norton, Spybot or malware bytes etc. Is this a Firefox bug?

    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • No scrolling when viewing man pages with Gnome terminal?

    Hi all,
    I have just installed Oracle Solaris 11 on x86. For a long time I've used Solaris 9 on SPARC. I like the new OS, but I'm having a problem viewing man pages with Gnome terminal. When I view a long man page, e.g., "man newfs", I don't get a functional scroll bar on the right hand side of the window. And although the space bar works to advance the page, when I reach the end, it doesn't return to the command prompt. It just beeps, prints "END", and I can only exit by closing the window. Can anyone tell me how to fix this? Suggestions would be much appreciated.
    Many thanks,
    Chris Tidy

    It does sound like you're using "less" instead of more. When you see the "(END)" prompt you can simply type "q" and it will exit back to the command line prompt making it unnecessary to close the window. See the "less" manual page for more detail on the less command. Under Solaris 9 the paging was done with the "more" command. If you set the PAGER environment variiable to "more" the man page will use more and revert to the behavior you'd be used to with Solaris 9. Less erases the text you've already read when you type that final "q" which is a behavior I don't like. I didn't bother to determine if there is a way to fix that with less, I just went back to more. The choice between "more" and "less" is a personal preference.

  • Firing a view based on a selection from a popup window

    Hi,
    I have a main window in which there is "Display Details" button and a view container to hold a view. On clicking this display button I'm showing a pop-up window which will show the user the options to select a particular view. After the selection and clicking on OK in the pop up window the corresponding view should be shown the view container.
    I tried this by firing an outboung plug to the corresponding view based on the selection in the popup window. The problem is I cannot create a navigation link in the window as the popup view is not part of the main window.
    Could you please provide me your insights on how to handle this scenario?
    Regards,
    Vivek

    Hi Vivek,
    Please refer this article: [Creating Navigations and Embedding Views at Runtime - Web Dynpro ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50f3660d-ad29-2b10-2482-8120e56942dd?QuickLink=index&overridelayout=true]. Also refer [Thomas' reply in this thread|Embed a view dynamically in a ViewContainerUIElement;.
    Regards

  • Need to view web pages off line in a place where there is no wi-fi

    Hello.
    I need to show some clients our website on the iPhone where there is no wi-fi connection. I have an older iPhone and the pages don't load up (keep timing out) when I don't view them over the wi-fi connection.
    I would like to download the website onto my iPhone (32mb, 100+ pages) Is there a way to do this? I have downloaded "Files (light)" app but the navigation does not work correctly when I view it through this app.
    I would like to view the off-line files through Safari because I know everything works.
    Any suggestions?

    No, unfortunatly we don't have an Edge connection and there are 100 plus pages with up to 6 images per page to scroll through, so taking screen shots is not really an option.

  • Viewing iWeb pages with browsers

    I know iWeb is WYSIWYG but I miss the facility I had in PageMill to quickly switch to view the page I'm working on in browsers. Is there any way to do this with iWeb? I currently upload my site before viewing it in Explorer or Firefox and I'm sure there must be an easier way. I just can't see what it is…!
    Thanks in advance for your help

    Doesn't that seem like a really ,really bad idea as a
    basis for designing an application used to create web
    pages?
    Personally I find it novel and ingenious. If you want the usual kind of program there are lots to choose from, and there's hardly a need for another one like them.
    Would if it were at least possible after a site has
    been published into a local folder that visting the
    site took you the the page you were viewing to start
    with.
    iWeb doesn't visit published sites itself. How is your browser supposed to know what page you were viewing inside iWeb? Maybe there's way to do that.
    How about if you publish a site it doesn't have to
    load every single page on the site every time you do
    it, but rather just updated the changes? Nobody's
    going to be able to make a site with any complexity
    like this.
    Sounds like a likely future improvement. If you use .Mac, only changed pages (in red) are uploaded, unless you add pages and thus change the navigation header so all pages need revision. If you don't use .Mac, there are ways to use ftp programs to upload only changed items.
    I'm not a web designer or anything like that, but
    building a site of more than a dozen pages and
    linking them is going to be painful to do with this
    thing.
    I don't think it is intended to fill every need. People who need more complex stuff should use something else.

  • Need to download oracle 11.1.0.7 for Microsoft Windows (32-bit)

    Hi all,
    I am using Repository Creation Utility (RCU) to create schema and load repository in Oracle database for Fusion Middleware components. In order to create schema and load repository to an Oracle database,Oracle strongly recommends using AL32UTF8 as the database character set.
    Hence I need to install database version 10.2.0.4.0 in 10g or version equal to higher than 11.1.0.7.0 with the database character set AL32UTF8. But the Oracle Database Software Download url available through OTN do not list
    oracle 10.2.0.4.0 or oracle 11.1.0.7 for Microsoft Windows (32-bit).
    Appreciate if anyone can provide me any other alternate location, from where I can download oracle 10.2.0.4.0 or oracle 11.1.0.7 for Microsoft Windows (32-bit).
    Thanks
    Sanil.M

    10.2.0.4 and 11.1.0.7 are patchsets, available on MOS/metalink only (you need a valid support contract). There's only the exception for Windows 2008,here you can get this versions on OTN.
    But who did you tell characterset AL32UTF8 is not available in the basis versions?
    Werner

  • Need script to insert pages with specified master

    Several years ago, someone here (I think Dave, maybe Ole) helped me out by giving me a short script that when run added a blank page (with a specified master page different from the previous page) after each page of a document.
    I've had an emergency reformat of my system and have lost that script which I need constantly for work projects. I tried searching here, but it was before the current forum setup (I think around 2 years ago) and I can't find a way to get to the archives.
    If anyone can either provide me with the java script code for this or point me to the old messages about it, I'd be very appreciative.
    And, BTW, I am now using CS4 (though I'm sure the script I've been using was from an older version).
    Thank you.

    Aaahhh ... PageMaker scripting. Now there was a challenge -- I don't think I ever could write the thing I intended with that.
    This quick javascript works on CS, but I don't think the syntax has changed (much) for CS4. Yell if it doesn't work.
    Be sure to fill in the right 'blank page' name in the first line! That includes the prefix and the hyphen -- the script will alert you if you got it wrong
    //DESCRIPTION: Add Blank Master Page after each page
    masterPageName = "A-AddMe";
    masterPage = app.activeDocument.masterSpreads.item(masterPageName);
    if (masterPage == null)
    alert ('"'+masterPageName+'" is not a valid master...');
    exit(0);
    // Start at the end:
    currentPage = app.activeDocument.pages.length-1;
    while (currentPage >= 0)
    theNewPage = app.activeDocument.pages.add (LocationOptions.AFTER, app.activeDocument.pages[currentPage]);
    theNewPage.appliedMaster = masterPage;
    currentPage--;
    Copy, paste into a plain text editor (InDesign's ESTK is good) and save as "insertBlanksAfterAll.jsx" in your Scripts folder. When saved in the right folder, it will automatically become available in the Scripts Panel.

  • What plugins do I need to view this page?

    This page has an old pc game running in a browser window:-
    http://www.cinemaware.com/browser/dotc/final.asp#
    I don't seem to be able to view it in firefox 3.6 running on 64bit arch with flashplugin-10.0.45.2-1. It just says I need additional plugins, when I click Install Missing Plugins it says no suitable ones are available.
    About:Plugins shows firefox to have:-
    Silverlight Plug-In
    The IcedTea NPR Web Browser Plugin (executes Java applets)
    OpenOffice.org Plug-in
    The gecko-mediaplayer plugins
    and Shockwave Flash
        File: /usr/lib/mozilla/plugins/libflashplayer.so
    Do I need something else too? (other flashbased media seems to work OK, things like youtube and adobe flashplayers own pages etc)
    Last edited by Nixie (2010-03-01 20:12:33)

    shockwave flash is different from shockwave player, according to this page:
    http://forums.mozillazine.org/viewtopic … &t=1776655
    and as fabertawe indicated, no linux shockwave player is available

  • Need to view all records with two variables in recordset

    Hi - My recordset has two variables used to sort products by popularity and type.  But I want a "View all" link that shows all records, in ascending order, regardless of popularity or type.  At the moment the .php page is set up to receive either the popularity (varPopular) variable or the product type variable (varGrouping).  If neither variable is provided, no products appear on screen.  How do I set up the recordset to allow for all records to be displayed?  Thanks for your help!
    [CODE]
    $varPopular_Recordset1 = "n";
    if (isset($_GET[popular])) {
      $varPopular_Recordset1 = $_GET[popular];
    $varGrouping_Recordset1 = "1";
    if (isset($_GET[grouping])) {
      $varGrouping_Recordset1 = $_GET[grouping];
    mysql_select_db($database_connGiavan, $connGiavan);
    $query_Recordset1 = sprintf("SELECT crystal_colors.cystalid, crystal_colors.displayname, crystal_colors.imagename, crystal_colors.popular, crystal_colors.`grouping` FROM crystal_colors WHERE crystal_colors.popular=%s OR crystal_colors.grouping=%s", GetSQLValueString($varPopular_Recordset1, "text"),GetSQLValueString($varGrouping_Recordset1, "int"));
    $Recordset1 = mysql_query($query_Recordset1, $connGiavan) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $varGrouping_Recordset1 = "$_GET[grouping]";
    if (isset($_GET[grouping])) {
      $varGrouping_Recordset1 = $_GET[grouping];
    $varPopular_Recordset1 = "$_GET[popular]";
    if (isset($_GET[popular])) {
      $varPopular_Recordset1 = $_GET[popular];
    mysql_select_db($database_connGiavan, $connGiavan);
    $query_Recordset1 = sprintf("SELECT crystal_colors.cystalid, crystal_colors.displayname, crystal_colors.imagename, crystal_colors.popular, crystal_colors.`grouping` FROM crystal_colors WHERE crystal_colors.popular=%s OR crystal_colors.grouping=%s", GetSQLValueString($varPopular_Recordset1, "text"),GetSQLValueString($varGrouping_Recordset1, "int"));
    $Recordset1 = mysql_query($query_Recordset1, $connGiavan) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    [Moved to Dreamweaver Application Development forum by moderator]

    To start with, you should be aware of the fact that you have the same recordset code twice in your page.
    You'll find an article that explains how to build a SQL query to do what you want here: http://cookbooks.adobe.com/post_Create_search_query_with_optional_fields-16245.html.

  • Need to create a PDF with submit button for Wordpress Website.

    I need to create a restaurant's employment application in PDF form with fields that user can fill out and a submit button to send the form to a specified email. I then need to put this PDF online on client's website. Is this possible with ID?

    Yes, but you may have to tweak it in Acrobat Pro.
    That said, you may be better off just creating the form right in the
    site. My guess is that there are a ton of WordPress plugins to do this.

Maybe you are looking for

  • What's happening to wifi, recently? So many problems here...

    Some days ago wifi refused working at home, AFTER MONTHS without a single problem. Since then I'm restoring, resetting, forgetting networks, rejoining networks, tinkering with my AirPort Station - nope. It works when it wants to work, without a recog

  • How to free up iCloud space from pictures

    iCloud tells me Ive run out of space for backups. I am backing up my iPad which has very few photos and my iPhone which has a lot. Storage & Backup reads: iPhone 3.7GB iPad 364MB Docs&Data 8.6MB Mail 312.2MB Available 643MB Drilling down into my iPho

  • Abobe gives up on Flash for the Iphone

    Looks like it will not be coming http://www.theregister.co.uk/2010/04/21/adobe_iphone/

  • Error in EJB code

    Hi All, I am using CAS. I downloaded the code from DTR. After creating projects when I opened my code, there is a error which is showing " This mapped class is not contained in any persistance unit". There is a line " @Entity" ,there it is showing. I

  • I Can't Open Tabs In Safari On My iMac?

    In Safari, if you press command (apple key) T a new tab will open up. I use this feature a lot on my MacBook but this feature will not work on my iMac. I have to press "command N" and that opens up a whole new page. I would like to just have all of m