Create a "today's menu" module?

I have our weekly menu set up on the intranet using Spry data
and an XML file. It displays stuff like:
day (e.g. "Monday")
The dish (e.g. "Lasagna")
Soup of the day
Price
OK, fine. But what I'd like to do is have it only display
TODAY's menu, with a click through to show the whole week. Of
course, the script will need to know that today is a Thursday, and
show the node for Thursday.
Can anyone get me started?

you could just do somthing like
<div spry:region="menu">
<div spry:if="'{Date}' == '{Today}'">
<div id"mystuff" spry:repeat="menu">
{menu}
</div>
</div>
</div>
This assumes you have todays date in your xml or json file,
not sure how you would go about doing it dynamicaly like with
somthing like
new date(); or what ever because I don't think it will
evaluate inside the spry if, I could be wrong on that :)

Similar Messages

  • Is it possible set programm menu module background color?

    HY,
    is it possible set programm menu module background color?
    thanks

    Hy,
    thanks for your answer, but, if i understand well,
    it's for individual menus and submenus (lower-level menus, displayed by default as vertical Lists of menu items) menu items
    I am speaking about a main menu (the top-level menu, displayed by default as a horizontal strip)
    And, when create a VA in menu module isn't possibile set color but only font.
    I believe it need create VA in set_visual.....
    Thanks again
    Rosario

  • CGEN-03003 error when generating a menu module

    When I generate a menu module in Designer 2.1,
    I get the following error.
    Please help me !
    Greetings Rob
    CGEN-03613 ERROR: Did not generate the module.
    CGEN-01086 WARNING: Module: Attached library 'REWARD.pll' not found in forms search path. Using full path name.
    CGEN-03003 ERROR: Module: Failed to create .mmx file for menu module MENU
    Generation of Module 'M_HOOFDMENU' Unsuccessful

    We have the same problem, and the problem was in the xsd import:
    The wdsl import a schema that import other schema, the second import use a relative path, that was wrong.
    So check the xsd import sequence....

  • How to create a table less structure with dynamic menu module

    Hi guys,
    I am using dynamic menu module for creating a main menu for http://firstsite08.businesscatalyst.com/
    but it is generating table structure. What changes to do i had to make to generate a table less structure from dynamic menu module.

    Hi Andy,
    When you create a Menu, the option dropdown for the menu has Default, but under that you will see HTML CSS Only option which creates a ul li structure.
    For the Menu Module options you can find more information from the knowledgebase: http://kb.worldsecuresystems.com/134/bc_1345.html?bc-partner#main_Menu_Modules
    If you would like to use the version 2 menu module you can find a bit of a guide I wrote here: http://forums.adobe.com/docs/DOC-1903

  • Creating Menu module by creating the menu in database

    Hi,
    In the properties of a form when i attach a menu module thru file it's fine but i have to attach the menu module.thru database.I know we have to create the menu in the database. but cannot figure out how. Can anyone guide me how this can be done.
    Sample code welcome.
    Thanks

              I use xml to generate all input fields. But it's similar to database. xml is a kind of database.
              You can use customer tag to generate the form. Inside the tag class you select the form elements from table and construct the form. It's not difficult.
              If you use javascript take care the difference between the IE and Netscape. You better pass a browserType attribute and deal with them differently.
              You should create form element type carefully. Each element can have question type, name , text, validation class, preceding message and so on. Each element can have a toHtml method.
              for the jsp you can:
              tag to get connection.
              tag for the form
              tag for each form element.
              Hope this can give you some idea.
              "Lou Trujillo" <[email protected]> wrote:
              >
              >Has anyone created a form by reading all the input tags, select tags, etc from a table in a database.?
              >I need to create a jsp page that gets all the controls(radio buttons,check boxes,list boxes..) and values from Oracle.
              >Also the form can have javascript associated with some controls.
              >I would appreciate any ideas.
              >TIA
              >
              >Lou
              >
              >
              

  • Create Menu Modules dynamically with JDAPI

    Hi everyone:
    I'm trying to create and compile menu modules dynamically based on a table,and I find out that using the JDAPI this task may could be done.
    The problem is that we have a logon page and we need to load different menus depending on the user permissions and because our menus grow and change constantly, we would like acomplish this dynamically with out having to change the source code every time a change is made (we only change the table).
    Is it possible to call this programs from oracle form at run time to create the menu modules and then continue working as usual, and if it is possible where I can find documentation about this.
    Any idea will be very helpfull. Thanks

    I guess you could import the JDAPI class files into a forms module and call the java to create a menu file. Why don't you use the menu security instead? With that you can have a menu that has all the menus you'll ever use and based on the roles you assign each user the function will hide or shoe the menus and menu items that the role is allowed to see.

  • I am getting error while attaching Menu Module to FORM

    Hi to everyone, I have created a Menu Module(mmx file), now i am trying to attach that menu to a FORM, I have entered the proper Menu Module address in the property window of that FORM, but i am continously facing the following problem.
    FRM-40738: Argument 1 to builtin CALL_FORM cannot be null
    Also i have applied following code in that Menu Module
    call_form('F:\Database Files\Contingent Database\Forms & Reports\Forms\BILL DETAIL.fmx');
    but the required FORM is not running.
    Please help me to sove out this problem

    I did this today, in this way,
    I create the menu then CRT-SHIFT K, then CRT -T
    then check you have the mmx
    - now you put full path to the form
    Menu module like c:\aaa\bb\menuname
    I did not put extension
    Hope this will work.

  • How can i create a drop down menu for set qty in my store?

    I'm wondering how i can create a drop down menu for the qty module that sits on the individual product page. My client sells in quantities of 6 packs. I currently have the minimum order at 6 but i would like to give consumers the option for 6,12,18...and so forth. I was told that it could be accomplished? Hopefully someone can help me.

    Hi Chris -
    Thank you for your reply! I had seen your article before, and just now again attempted to follow it, but I get stuck. There are two things that I'm confused by.
    First off, toward the top, referring to the initial button, you say to add this interaction:
    ON CLICK; Play Transition to comboBox: selected
    ON ROLL OUT; Play Transition to comboBox normal if comboBox is in over state
    ON ROLL OVER; Play Transition to comboBox over if comboBox is in normal
    However, I do not see these transition options. When I select the button, the only interactions I have are to Play transistion to state, Play action sequence, Go to URL, and two for videos. So that's the first roadblock for me.
    But, trying to get passed that, I went down to the portion of the article that refers to adding interaction to the dataset items. Again, I don't get it, as I see no way to add interaction to a dataset item. When I open my design-time data menu, I do see the items, and am able to rename each item, add additional rows, and change the shape of the datalist layout. However, I see no way to add an interaction to a dataset item. I must be missing a step ... Can you help with this?
    Again, thank you!
    Amy

  • Attaching menu module to form module in 9i

    hi,
    pls i would love someone to help me solve this problem
    i was trying to attach a compiled menu module to a form
    it generates this error
    frm:10221cannot open the file .....
    i place the modules in the the forms9i oracle home path to make it easy for me to run but i still have the problem.
    pls i need to solve this problem out fast
    thankz

    Hai
    this is vas. I think you did it all may be try.
    first create a menu and generates it and save it on same folder where the form stays.(respective folder) and compile both forms and menu in screen.and go to form name properties, change it to menu module --> menu name.mnx ,now save it
    and try this
    i hope it will work
    check it and reply me back.this will work only in individual form and menu not in application
    for application u ,there is a different way
    thanks
    bye
    vas

  • How do i create a node under any module in IMG --- SPRO

    Hi,
    How do i create a node under any module , in IMG->.
    I need to add my own custom table as a node.
    Pls let me know if you have any info.
    MG.

    Hi ,
    For creating a node under any module in IMG.
    We can go to SIMGH Transaction , there search for IMG Structure and give the name of the Module under which you want to add the node.
    There once you enter in you will have a menu bar which says , Insert Structure at the same level , Insert activity at same level Etc.
    Choose your option and give the IMG Activity ID , name and in Main. Objects Tab give the name of your custom object name ( Table  Name ) and Transaction as SM30 .
    And finally save it.
    This will create a node .
    Thanks & Regards,
    Naidu.

  • Menu module error run time

    I've created a menu module as normal at forms 9i once i ran it , I got the follwoing error :
    Error opening Oracle*Terminal file fmrweb.
    Any idea to overcome this error?
    Thanks in advance

    Hi, plz suggest how disable or invisible the submenu items. there is no reply for my last post.
    using set_menu_item_property I am not able to achive this.
    here submenu items means e.g TRANSACTIONS-----------> ACCOUNTS ----------> PURCHASE, SALES
    In TRANSACTIONS a menu in the menu bar, and ACCOUNTS is the menu again and PURCHASE ,SALES are items.
    like this any number of submenus we can create for menu bar. But how enable or disable these items.
    with thanks
    gms

  • Menu module

    Hi All,
    I created the menu module with main menu
    File,Edit,Query
    and
    save
    cut
    copy
    paste
    enter
    execte
    respectively as individual menu.
    when i compile the menu module i got the following error.
    circular reference detected in menu module.
    Please anyone correct this error.
    thanks in advance
    rampa

    Your on-line help directs you:
    Search for the keyword "menu editor" and select the subject titled as :
    "Creating Objects in the Menu Editor" ... and afterwards the related topics:
    Creating a main menu ,
    Creating lower-level menus ,
    Creating submenus
    Greetings,
    Sim

  • How to place buttons instead of menu in menu module

    hi iam having a form with menu module ,instead of menu i need buttons... can any one help me

    hi
    still i am not sure what do u want to achieve?
    if u wanna create u r own toolbar then try something like this, but while creating buttons then u have to use codes too.
    There is an easier way to get the "toolbar" you want to have.
    1. Build a mmb with all the functions you want to have both in the menu and in the toolbar.
    2. For each menuitem, you can define in the properties
    - If it should be shown in the menu, then set "Visible In Menu" to Yes
    - If it should be shon in the horizontal toolbar (or vertical toolbar), then set "Visible In Horizontal Menu Toolbar" ("Visible In Vertical Menu Toolbar") to Yes
    - For showing an item in a toolbar, you will have to set the property "Icon Name" additionally to the name of an existing icon (the same way you do for buttons)
    3. Compile and generate the menu
    4. Build a form and attach your menu as Menu-Module in the properties of the form.sarah

  • Connection to menu module

    Hi,
    I have a problem, i create a menu but now i don't know which code i need to insert and where i need to put this.
    Somebody can help me, its urgent.
    Thank you
    Diana

    Hi Diana,
    When you state you 'create a menu' are we talking about a menu module (eg mmb/mmx) or some other kind of menu (eg pop-up menu) ?
    A menu module cannot run independantly, it needs to be included/attached to a form which is done in the forms property sheet. But please make it clear which menu you are talking about and we should be able to take it from there.
    Regards,
    Sunny Patel.

  • Steps for creating a new BAPI function module

    Hello experts,
    Can any one send me steps for creating a new BAPI function module , I got a requirement to do like this,but I dont have any clue about how to create.
    Please help !!!

    BAPI stands for Business Application Programming Interface.
    There are 5 different steps in BAPI.
    - Create BAPI Structure  
    - Create BAPI Function Module or API Method.  
    - Create BAPI object  
    - Release BAPI Function Module.  
    - Release BAPI object.
    Step1. Creating BAPI Structure:  
    - Go to <SE11>. 
    - Select Data Type & Enter a name. 
    - Click on Create.
    - Note: Always BAPI should be in a development class with request number (Not Local Object).
    - Select Structure & hit ENTER.
    - Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    - Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module: 
    - Enter TR.CODE <SE37>.
    - Before entering any thing, from the present screen that you are in, select the menu
       Goto -> Function Groups -> Create Group.
       Enter a name (Note: This name Must start with ZBAPI)
       Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
       Click on the Third ICON that says Inactive Objects. 
       Select the group that you just created and click on Activate. 
       Notice that the group you created will disappear from the list of inactive objects.
    - Go back to <SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says [ATTRIBUTES] and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says [IMPORT].
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says [EXPORT].
    Enter the following as is in the first three fields 
      RETURN        TYPE        BAPIRETURN (These 3 field values are always same)
      Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object: 
    - Enter Tr.Code <SWO1>   (Note. It is letter ‘O’ and not Zero).
    - Enter a name and then click on create. Enter details. 
    NOTE: Make sure that that Object Type and Program name are SAME.   
    - Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom. 
    - Then hit <ENTER>. 
    - Now we have to add ‘Methods’. High light METHODS and then select the following from the menu: 
    Goto Utilities -> API Methods -> Add Methods.
    - Enter function Module name and hit <ENTER>.
    - Select the second FORWARD ARROW button (>)to go to next step. 
    - Check if every thing looks ok and again click on FORWARD ARROW button (>).
    - Then select ‘YES’ and click on <SAVE>.
    -  Now on a different screen goto TR.CODE <SE37>.  Enter Function Module name and select from the top menu  Function Module -> Release -> Release.
    - Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    - Edit -> Change Release Status -> Object Type Component -> To Implemented.
    - Edit -> Change Release Status -> Object Type Component -> To Released.
    - Edit -> Change Release Status -> Object Type -> To Implemented.
    - Edit -> Change Release Status -> Object Type -> To Released.
    - Then click on <SAVE>.
    - Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    - Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>. 
    Here it shows business object repository.
    - First click on the middle button and then select “ALL” and hit ENTER.
    - Goto tab [ALPHABETICAL] and look for the object that you created. This shows that the BAPI object has been created successfully.
    regards,
    aswin

Maybe you are looking for

  • Sony DCR-HC62 camcorder won't connect to iMovie with express card adapter

    I got a Sony HC62 Mini DV video camera but it will not connect to iMovie. Since I don't have a firewire 6 pin on my Mac (only a 9 pin) i got an express card adapter. So I am using 4 pin (camera) to 6 pin (Express card) firewire. I have no other devic

  • TNS Listener Poison attack : Oracle Security Alert for CVE-2012-1675

    Hi, I'm looking to implement the following oracle document about COST but not sure what we need to do for Standby Environment , Can you guys please advise. Oracle Using Class of Secure Transport (COST) to Restrict Instance Registration [ID 1453883.1]

  • There's this mysterious appearing/disappearing icon in my Dock...

    ...that every so often spontaneously opens up, then closes right away. I can never get a good look at it, but it appears to be a white "page" (like the TextEdit dock icon) with what looks like a green part in the upper left corner and a black part in

  • Hyperion Microsoft Visual C++ Runtime Library - Runtime Error

    Hi, I've started to get the message 'Hyperion Microsoft Visual C++ Runtime Library - Runtime Error' when trying to run a Query. I'm not sure what caused this to start happening. Has anyone come across this issue and if so, how did you fix it? Thanks!

  • CS4 Crashes when copying effects

    Every once in a while, AE CS4 crashes when I attempt to copy one or more effects from a composition. It's unpredictable, it works fine 10-20 times, then crashes. It happens whether I use the keyboard shortcut or the edit menu. It's happened 15 times