Dynamic pages - what to look up

Hi,
I am trying to work out how to create a WPF page, which the content changes depending on a button click, one example if the log in button. Once logged in I would like to present different content but without opening a new window.
I am unsure what the term for this is, so i cant google tutorials, "dynamic WPF pages" didnt bring up much so can someone point me in the direction i need to go to learn?
Thanks

Most of my applications are single window applications.
I put the stuff for each view into a usercontrol.
These are hosted in a contentcontrol or frame.
You can see this in use in:
https://gallery.technet.microsoft.com/WPF-Entity-Framework-MVVM-78cdc204
In the MainWindow for that the content is set on the ContentControl called Holder:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<TabControl HorizontalAlignment="Left" x:Name="CommandTab">
<TabItem Header="Navigate" FontSize="10">
<ListView ItemsSource="{Binding Views}" BorderBrush="Transparent" FontSize="12" FontWeight="Bold"
ScrollViewer.CanContentScroll="False"
>
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"></StackPanel>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
<ListView.ItemTemplate>
<DataTemplate>
<Button Command="{Binding Navigate}"
BorderThickness="0" Height="32" Width="100"
Background="{StaticResource LightBrightGradientBrush}"
Foreground="{StaticResource DarkDullBrush}"
>
<TextBlock Text="{Binding ViewDisplay}"
TextAlignment="Center"
/>
</Button>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</TabItem>
<TabItem Header="Edit" x:Name="EditTabItem" FontSize="10">
<ListView ItemsSource="{Binding Commands}" BorderBrush="Transparent" FontSize="12" FontWeight="Bold"
ScrollViewer.CanContentScroll="False"
>
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
<ListView.ItemTemplate>
<DataTemplate>
<Button Command="{Binding Send}"
BorderThickness="0"
Margin="0" Padding="0"
>
<Path Data="{Binding IconGeometry}" Stretch="Uniform"
Style="{StaticResource PathOpacityStyle}"
Fill="{StaticResource MidDullBrush}" Width="32" Height="32"/>
<Button.ToolTip>
<TextBlock Text="{Binding CommandDisplay}"/>
</Button.ToolTip>
</Button>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</TabItem>
</TabControl>
<TextBlock x:Name="UIMessage" Text="" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,8,0" Foreground="{StaticResource DarkBrightBrush}"/>
<ContentControl x:Name="Holder" Grid.Row="1" />
</Grid>
So the tabcontrol which presents a series of buttons remains static.
and with a frame:
http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML

Similar Messages

  • Dynamic page with multiple select in where clause

    Hi,
    I have a dynamic page and in the where-clause, i have a bind variable. In a report i use for instance
    and rtrim((to_char(date_time5,'DAY'))) IN :v_day
    That works ok in a report. But it does not work in a dynamic page.
    what code is needed to work with a multiple select box on the customize screen for a dynamic page?
    Thanks.

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

  • Dynamic Page Edits

    anyone know how to edit the info that is returned from a dynamic search. such as font, color, style. the results that are returned when a user runs a dynamic page do not look to user friendly, and the color is goldish-brown.
    any help
    thanks,
    Darren

    Darren,
    Please post this question to the Portal Applications forum.
    Regards,
    Jerry

  • I'm using iweb 3.4 and trying to load audio files to my web page.  everything looks good in iweb but after publishing instead of having a control bar i have a "?".  does anyone know what to do?

    I'm using iweb 3.4 and trying to load audio files to my web page.  Everything looks good in iweb but after publishing instead of having a control bar i have a "?".  Does anyone know what to do?

    Where are you hosting the site, how are you uploading the files and what's the URL of your site so we can examine it first hand?
    Adding audio files by dragging onto the web page forces the viewer to have Quicktime installed on their computer in order to be able to listen to them.  Look at the audio player options on this page of Roddy's iWeb for Musicians site: Audio Players for your Music Website. 
    OT

  • How do I branch to a dynamic page on the App Server

    I have a dynamic page that is a menu that is dynamically generated based on what choice was selected from a higher level menu that is a portlet on the front page of our site (Application Server based). This menu calls up application code, currently app server portal forms. I want to convert over to HTML DB. I can not get a branch to work to branch back to my application menu. When I use function returning URL, it is appending anything that I return after the /htmldb and not replacing the URL. The hard coded URL works, but I have something that I need to look up from a database record to append to the URL. When I try using portal's portal.wwa_app_module.set_target procedure to do it, nothing happens and I get the error stating that I have no default branch to process. Thanks for the help

    Dwayne,
    I would suggest that you focus on only the HTML DB pieces here, given that the Portal components are just part of the "outside world". If you are having trouble with a branch to a function returning URL, show us the exact code and what it returns vs. what you are expecting it to return. The Apache request log might show useful inormation as well if the redirect seems to be broken.
    Scott

  • Passing value from dynamic page to form.....

    I have a portal page that has a dynamic page where I've created an html form. Also on this same page in different regions are three other forms which were created by the form wizard. From the dynamic page form I want to pass a session value to the other forms on the same page. Is this possible? I know it's possible from form to form using session apis. I've search the forum and have not found what I'm looking for. Can anyone be of any help on this topic?

    Melissa,
    It seems we have the same type issue.
    Session variable how to's are what I need also.
    There is a site with more information on it...a continuation of the Portal Handbook by Vandivier and Cox at home.covad.net/~idbexperts called an "Unpublished Case Study" - I don't know if it'll hit your needs on the head, but it may help to see it.
    I believe I am trying to hold session variables over til users complete a 4 part form across several pages (may be a space problem we have). Do you know how I start this?
    I don't know how to put p_session variables together, when or where the parameters are necessary and whether a procedure is necessary or not!!!
    If you would like to correspond offline, I am at [email protected] and would appreciate your insights.
    Mary

  • Problem with a Link calling a dynamic page

    Hi!
    I wanted to create a link calling to a dynamic page. This dynamic page displays a PDF depending on the parameter, the thing here is that I don't know how to set the bind variables or more likely how to say that the value of those variables is going to come from the link in which the dynamic page it's been called.
    I have my PL/SQL code where I have this bind variables
    id_dep
    id_tipo
    and I went to the Customization Form Display Options button and there i made them public.
    now on a page i created a link with the following structure, in order to call the dynamic page and send the parameters.
    http://your.portal.com/portal/pls/portal/SCHEMA.DYN_YOUR_DYN_PAGE_NAME.show?p_arg_names=YOUR_PARAMETER_NAME&p_arg_values=YOUR_PARAMETER_VALUEso my links looks like this one:
    http://desarrollo06:7778/pls/portal/TRANSPARENCIA.NOSEQUE.show?p_arg_names=idDep&p_arg_values=11&p_arg_names=idTipo&p_arg_values=25so I was told that I had to check that the parameters bindings are present or set, but I don't know how to do that... 'cause I thought I already did...
    can youi help me?
    thanks In Advance
    aTTe
    Blume

    Hi AMN,
    well what I meant was that, see in the manage page for the Dyn Page there are some options bellow, in the one that sais Customize you can test the page, and I put there the values for id_dep and id_tipo as *11* and *25* then run the page and it opens the PDF but when I click on the link you suggested
    http://desarrollo06:7778/portal/pls/portal/TRANSPARENCIA.NOSEQUE.show?p_arg_names=idDep&p_arg_values=*11*&p_arg_names=idTipo&p_arg_values=*25*
    u_u but it doesn't open the PDF.
    ...The code I put in my last post is the code for my dyn page, and there's an if where if it doesn't find a file to deploy it show a message that sais "No hay Datos o No Aplica", so when I clic on the link it takes me to the dyn page but shows the message for no data found...
    so I don't know what's going on.... if supposedly the dyn page is receiving the same values in different way, why it doesn't work with the link? -_-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Calling a form in a dynamic page

    Hi all,
    We are using dynamic pages for the creation of custom portlets. We can call a report in html tag by calling report.show procedure. What will I write for calling a form?
    Thanx,
    Gulsah

    Gulsah,
    In the component management screen you can find a URL-style "Run Link" which looks like this:
    PORTAL30.wwa_app_module.new_instance?p_moduleid=1060253649
    Also can put this PLSQL code:
    PORTAL30.wwa_app_module.link (
    p_arg_names => '_moduleid', p_arg_values => '[module id]',
    p_arg_names => '_show_header',p_arg_values => 'YES');
    where [module id] is your form id
    for more information please see the Portal FAQ:
    http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm#BuildingApplications
    Thanks,
    Dmitry

  • How to create a dynamic page from a parameter table at runtime?

    I have a table which has the information of item names,types,default values of an input form. Is it possible to create a dynamic page at runtime from these parameters? I saw htmldb_item but what i need is something like attaching athis input form to a dynamic sql with htmldb_item.
    Thank you

    Oracle supports feedback form metalink was; "What you exactly want to approach is not possible in Htmldb"
    I can guess that it is not
    exactly possible since I looked at the forums and documantation etc. but
    couldnt find anything similar than this link; "http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.h
    t". But this is a very common need and I thought that there must be at least a workaround?
    How can I talk or write to Html Db development team about this since any ideas, this is very important item in a critial project?
    I will be able to satisfy the need in a functional way if I could make the
    select lists in the tabular form dynamic with the noz_id;
    SELECT vozellik "Özellik",
    htmldb_item.select_list_from_query(2, t2.nozellik_deger, 'select vdeger
    a,vdeger b from tozellik_deger where noz_id = 10') "Select List",
    htmldb_item.text(3, NULL, t2.vcihaz_oz_deger) "Free Text"
    FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
    WHERE t1.noz_id = t2.noz_id
    AND t2.ncihaz_id = 191
    AND t1.ngrup_id = 5
    But what I exactly need i something like this dynamic query;
    SELECT
    vozellik "Özellik",
    CASE
    WHEN (t2.nozellik_deger IS NULL AND t2.vcihaz_oz_deger IS NOT NULL) THEN
    'HTMLDB_ITEM.freetext(' || rownum || ', NULL) ' || vozellik
    WHEN (t2.nozellik_deger IS NOT NULL AND t2.vcihaz_oz_deger IS NULL) THEN
    'HTMLDB_ITEM.select_list_from_query(' || rownum ||
    ', NULL, ''select vdeger a,vdeger b from tozellik_deger where noz_id = ' ||
    t1.noz_id || ''' ) ' || vozellik
    END AS "Değer"
    FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
    WHERE t1.noz_id = t2.noz_id
    AND t2.ncihaz_id = 191
    AND t1.ngrup_id = 5
    Thank you very much,
    Best regards.
    H.Tonguc

  • Not displaying column names in dynamic pages?

    I'd like to use a dynamic page as a detail page. In doing this I need a bit more freedom of design than what I now know is possible. Most important - I only need to print out the values returned by the SQL, not the column names as well. And I need to define the colors and fonts of the html table tags surrounding the returned values. How?
    It seems a bit strange that I am allowed to change the look and feel of the surrounding page elements through defining my own templates, and then have Oracle define how the elements placed in the templates are to appear.

    Hi,
    It is not possible to change the format the output coming from the <oracle> tags.
    Thanks,
    Sharmila

  • Dynamic Page that uses javascript to run an executable on the client's pc

    I have an .exe file on a shared network that has to be called and executed from portal. The below code works as standalone but not from a dynamic page or an HTML portlet. Any ideas?
    <html>
    <script language="javascript" type="text/javascript">
    function runApp()
    var shell = new ActiveXObject("WScript.shell");
    shell.run('"c:/CstatsWeeklyreport.exe"',1,true);
    </script>
    <body>
    <input type="button" name="button1" value="Run Notepad" onClick="runApp()" >
    </INPUT>
    </body>
    </html>

    Thanks D, but that's not what I'm looking for. That changes which application a file opens with when you download it. That's not what I need for this situation. Here's a little more detail.
    The clients will have an application on their hard drive; it can be any application, even a custom application that they developed themselves. Then, they open a web page with a listbox full of items. Depending on which item they select, a query will return a file path to the .exe file itself. The .exe file resides on the client's hard drive, not on the server. So they're not downloading anything. Depending on the filepath returned by the query, the browser needs to start the process and open the .exe file for them.
    So let's say I have developed a simple text editor called Tedit. I have a file on my hard drive - "C:\TextEditor\bin\debug\TEdit.exe". When they click the open button, that file path is returned from the database. Then the javascript is called to start the process and open that program.
    Again, nothing is getting downloaded, the application resides on the user's hard drive and there is no file to associate it with.
    This can be done in IE using an ActiveX control. And it used to be possible in Firefox using the nsIFile or nsIProcess objects. But since FF15 that's not available anymore, so the javascript throws an error telling them that their permission is denied.
    What I need, is a javascript that will launch the .exe file from the user's hard drive without downloading anything.

  • How to achieve dynamic page break in Smart form

    Hi
              1.How to achieve dynamic page breaks in Smart forms.
               2.What are the various table types in Smart forms.
    Regards

    <i>Dynamic page break : </i>
    create a node of type COMMAND and in its attributes check "Go to new page".
    <i>There are Tables and Templates in smart forms :</i>
    Use node type <i>Template</i> to display a table whose layout and size (number of lines and columns) is determined before the runtime of the print program else use <i>Table</i>.
    Take a look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf">SAP Smart Forms (BC-SRV-SCR)</a>
    Regards

  • Dynamic pages submitting data to stored procedure

    Hi,
    I am developing an Oracle Portal application and I am facing a problem, if anyone could help me I'd be very grateful.
    I have the latest version of Portal 3.0.9, installed on a linux server. I'm using I.E. 6.0 to interface with Portal.
    I have a dynamic page that have a &lt;form&gt; tag, like this:
    &lt;form name="MyFormName" action="MySchema.MyStoredProcedure" method="post"&gt;
    I changed the form name and the stored procedure name, because I'm in Brazil and these names are in portuguese, it won't make much sense in english...
    Well, problem is, when I click on submit button, instead of calling the stored procedure, the browser tries to load a page called "http://MyServer/pls/MyDAD/MySchema.MyStoredProcedure" instead of calling the actual stored procedure. The procedure have all the parameters defined on &lt;input&gt; tags within the html code of the dynamic page.
    I don't know what else I can do, any help or hint would be greatly appreciated. Sorry for my bad english.
    Thanks In Advance,
    Tiago Rocha

    Have you specified any value (greater than 0) in the Portlet expires in ... minutes field ?
    If you have, then I guess your dynamic page is getting cached.
    Before submitting the form, do a right click on the browser page and view the page source.
    What does the <form> tag look like ?
    Does it still show the old procedure name ?

  • Error when run a dynamic page

    I am using portal 10g. I have a simple test dynamic page to output the page_url:
    <oracle>
    Declare
    myPortlet_rec portal.wwpro_api_provider.portlet_runtime_record;
    myUrl varchar2(32767);
    Begin
    portal.wwpro_api_provider.show_portlet(myPortlet_rec);
    myUrl :=myPortlet_rec.page_url;
    htp.p(myUrl);
    End;
    </oracle>
    It compiles successfuly in portal, but when I click 'run as portlet' link, I got this error:
    Error: Internal error (WWC-00006)
    User-Defined Exception (WWV-11230)
    The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1631499120 (WWC-51000)
    The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1631499120 (WWC-51000)
    The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1631499120 (WWC-51000)
    If I click 'Run', I got 'HTTP 404 not found' page.
    Can anyone tell me what is wrong here? Thanks!

    Thanks for the reply, I will try to clarify things a bit. If I attempt to create a LOV (Shared Component), I get the first error. If I type in the LOV query directly into my field definition's LOV (as opposed to using a Named LOV), I get the report error when I run the page. The 'F_FORMAT_NAME' is a database function NOT in the ASMGR schema, but it has a public synonym...looking at the grants to it, that might be a problem (ASMGR doesn't have execute on it, nor does public), however, when I first started attempting this LOV creation, the call to the function wasn't there.... I will have to re-try it. In the meantime, I got around the problem rather inelegantly by creating a view in the ASMGR schema that pointed to the fields I needed for the LOV.

  • WebDB - Dynamic Pages SVG/HTML Encoding Help

    I have been playing around with WebDB 2.2
    to generate an SVG document from a table with X/Y locations
    in columns.
    I can generate the SVG content fine but when WebDB sends it to
    my browser (IE 5.5) it is displayed as XML rather than as an SVG document.
    Now I think that the problem is that the document does not have an SVG extension
    and WebDB is typing the document as HTML. When I check the properties of the
    document (right mouse click and select properties), Windows tells me the type of the
    document is HTML. If I File>Save the document with an SVG extension and then open it
    in IE I get my map.
    I can't see how to force WebDB to change the document type.
    Can anyone help me?
    I hope I am making sense :-)
    Simon

    Have you specified any value (greater than 0) in the Portlet expires in ... minutes field ?
    If you have, then I guess your dynamic page is getting cached.
    Before submitting the form, do a right click on the browser page and view the page source.
    What does the <form> tag look like ?
    Does it still show the old procedure name ?

Maybe you are looking for

  • Bracket not working with french keyboard

    Hello I use an English version of After effect ( I prefer) and I have a french keyboard. I can say it works great all the time but I still can't use the [ ] bracket. In the french Keyboard it is Alt+shift+(      ( Left parenthesese is on the 5 key ).

  • Background Master Not Showing In PDF

    I have a 90 page ebook I've design in InDesign. I'm self taught and new(ish) to InDesign, so please bear with me. My client needs the book for print and as an Interactive PDF. So, I've designed the file for print and am converting it to RGB when expo

  • Mail filling in groups from Contacts

    There is a problem with Mail filling in groups from Contacts in a way which didn't happen to me before Mavericks. When I now type in the first letter(s), Mail tries to auto complete, but when I have the right group in the "to" bar and press the enter

  • Illustrator CS2 - Scripting Opportunities

    Created a process in Visual Studio 2003 (VB.NET, Framework (v1.1.4322),Windows XP SP2) a few years ago to call a few Actions within Illustrator 10 to prep files for our internal customers. This process runs great and performs as expected. When I try

  • I rename a song title, click it & doesnt save the title PLEASE HELP!!!

    So I rename a song title since it is not labeled correctly, and then it changed the title, and moves to the alphabetically correct spot, but then if i double click it after it is changed, it automatically changes the song title back to the original o