How to make items in a region populate a parameter in another region

I have two regions in an APEX page: List of items (hyperlinks) on the left, PL/SQl block containing a media player for videos on the right.
What I want is for the list to talk to the media player. Click an item in the list and that populates what file is played in the media player.
I'm very new to APEX and if anyone has an example of this, I would greatly appreciate it.
Thank you,
Amy

On one plage, I have the following region:
htp.p('
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>play</title>
</head>
<body align="left">
<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/ en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="700" height="500">
<param name="fileName" value="'||VIDEO_NAME||'">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-20">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://yourdomain.com/play.wmv" name="MediaPlayer1" width=280 height=256 autostart=0 showcontrols=1 volume=-20>
</object>
</body>
</html>
And a list with the following links in another region: "Video 1" "Video 2" "Video 3" etc
How do send the URL/value of the lists into the fileName value in the media player?

Similar Messages

  • How to make item references dynamic in my trigger [SOLVED]

    Hi. I have a Key-List-Item trigger on my form for a date item named bundle_exceptions.actual_dt. This trigger code is displaying a calendar when the user performs a key-list-item action on this date item. Throughout this code there are hardcoded references to my item in two different ways:
    1) :bundle_exceptions.actual_dt
    2) 'bundle_exceptions.actual_dt'
    Since I have multiple date items on my application I would like to know if I can make this code more dynamic. Since the cursor is sitting on the item at the time, I thought I could reference :system.current_block and :system.current_item. But I can't seem to get the syntax correct. And to complicate things, I'm even more confused as to how I could get these system variables to match the two difference ways the item is referenced in the code (see above).
    I would love some help or advice on solving this issue. I really don't like the idea of copying and pasting this code to every date item I have on my form. Thanks in advance.
    ========= CODE =============
    date_lov.get_date (nvl(:bundle_exceptions.actual_dt,sysdate),
    'bundle_exceptions.actual_dt',
    (get_item_property('bundle_exceptions.actual_dt',x_pos) - x_adjust),
    (get_item_property('bundle_exceptions.actual_dt',y_pos) - y_adjust),
    'Calendar',
    'OK',
    'Cancel',
    TRUE,
    FALSE,
    FALSE);

    Here's what I ended up with. I never could get the Name_In and Copy built-ins to compile because of syntax errors. I'm sure this was my own doing...but I just couldn't do it.
    Anyhow, this code is working for me know. Thanks so much for all the input.
    ========= CODE =========
    PROCEDURE Call_Calendar_Popup (for_this_item in varchar2) IS
         y_adjust number := 1.6; -- this is the height of the popup box
         x_adjust number := 1.8; -- this is the width of the popup box
    begin
    -- Depending on whether this proc is called from the item itself (say a key-list-item trigger) or
    -- from another item (say a when-button-pressed trigger) the cursor may first need to be moved to the
    -- item we want to populate from the calendar
    if upper(:system.current_block||'.'||:system.current_item) <> upper(for_this_item) then
         go_item(for_this_item);
    end if;
    -- if the items xpos (horizontal) is closer to the edge than the pop ups width push it over to the right.
    if get_item_property(:system.current_block||'.'||:system.current_item,x_pos) < x_adjust then
         x_adjust := to_number(get_item_property(:system.current_block||'.'||:system.current_item,x_pos));
    end if;
    -- if the items ypos (vertical) is closer to the edge than the pop ups height push it down.
    if get_item_property(:system.current_block||'.'||:system.current_item,y_pos) < y_adjust then
         y_adjust := to_number(get_item_property(:system.current_block||'.'||:system.current_item,y_pos));
    end if ;
    -- popup the calendar so the user can populate the date text-item
    date_lov.get_date (nvl(Name_In(':'||:system.current_block||'.'||:system.current_item),sysdate),
    'bundle_exceptions.actual_dt',
    (get_item_property(:system.current_block||'.'||:system.current_item,x_pos) - x_adjust),
    (get_item_property(:system.current_block||'.'||:system.current_item,y_pos) - y_adjust),
    'Calendar',
    'OK',
    'Cancel',
    TRUE,
    FALSE,
    FALSE);
    end;

  • How to make default value for region based on city?

    Dear Experts,
    When city is selected in TRIP or PR05, how to make the default value of city based on region?
    The standard search help givenfot citydoesnt contain any enhancement point?
    Pls suggest how to resolve this!!!
    Thanks In Advance
    Rgrds,
    Sravan

    Hello Sahil
    Account and CC/PC are 2 different entity types. For PC and CC there is dependency. First you have to load Cost centers and then load PC.
    For CC - load CC master data first. Then load hierarchy file then group file and finally assignment file.
    Follow same process for PC.
    GL you can load independently but you have first load group GL then operational GL and then GL at company code level,
    Kiran

  • How to make an image clickable region?

    Hi
    Please see the image below, in particular I have a seperate layer READ MORE, I want to save this image as a PNG file and in my HTML page make the READ MORE region like a clickable button. I know I can slice this into a seperate image and wrap in a <DIV tag to do this, but any other ideas please ?

    Google for "HTML image map" for way too many tutorials. Image maps are typically taught before DIVs.

  • Beginner ?:  How to align Items in HTML Region so they display nicely?

    I am new to Application Express so please be gentle....
    I have an HTML region that contains several items/fields that I am using to gather user input. So my Page or HTML region looks something like the example below.....
    Name:__________ Birthdate:_________
    Address: _____________________ City:__________ State: _______
    So with the example above in mind how can I get the fields "City" and "Birthdate" to line up nicely on the page so that they would appear something like.....
    Name:__________ Birthdate:_________
    Address: _____________________ City:__________ State: _______
    I have tried changing all kinds of things such as Begin on New Line, ...Field, Colspan, Rowspan. In playing with these various settings I am unable to make any headway with aligning the fields on my page so that they display nicely....but I AM making progress at confusing myself as to how AppEx actually stores the labels and fields. I never seem to be able to control the spacing between the fields being displayed.
    So with all of that said....is there a way to make page items line up in an HTML region? There seems to be no issue getting the first column of each new row to line up (Begin on New Line = Yes) but when in comes to lining up the 2nd and 3rd fields on a row I am at a lose. Looks like I could also use a lesson in how labels and fields are stored within underlying AppEx HTML tables.
    Many thanks in advance for any and all responses.

    Hi Andrei,
    Thanks so much for your response...it got me to realize what my issue really was......What you listed above in your response to my plea for help is almost what I had but I was so concentrated on the small fields that I had that I failed to notice that my problem was the text area below those fields which takes up quite a bit of space on the screen...so what I finally realized (bonehead / rookie mistake on my part) was that my fields were lining up in the second column but the second column did not start until the end of the text area.
    So I am going to look into moving my text area fields to a separate HTML region so that the smaller sized fields above will line up nicely.
    Thanks again for your response and helping me to step back and look again.
    Best regards,
    Shellie

  • HOW TO MAKE ITEM UPDATABLE/NON-UPDATABLE DYNAMICALLY

    Hi ,
    I have a form with tabular layout on a multi record lock .
    From shows 20 records at a time and there is a scroll bar to scroll down .There is an item "flag" in the block which is not visible in the form with values "Y" or "N" .
    I need to make some text items in the record updatable when that record has "flag" ="Y" .Documentation say's we need to use set_item_instance_property to do that .
    I tried it in when-new-record-instance,pre-query and key-exeqry triggers with no luck .
    I would really appreciate if you could give me the following info
    1) How to loop through each record in a block to check value of "flag"
    2) Which trigger to use and level form,block etc .
    Thanks,

    Ram,
    Thanks for the update . Now it works . Another problem though ...
    My form displays 20 records at a time and I have a scroll bar .
    I need to change the background of Item to white when it is updatable and gary when it is not updatable .
    I've created a visual attribute and was using it with set_item_instance_property like this ..
    declare
    last_rec number;
    begin
    last_record;
    last_rec := :system.cursor_record;
    first_record;
    for i in 1 .. last_rec
    loop
    if :ANNUAL_FUNDS.flag != 'Y' then
    begin
    Set_Item_Instance_Property( 'EXP_FUNDS', CURRENT_RECORD, UPDATE_ALLOWED , PROPERTY_FALSE);
    Set_Item_Instance_Property( 'EXP_FUNDS', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'VI_UPDATE');
    end;
    end if;
    if :system.last_record = 'TRUE' or i = last_rec then
    exit;
    else
    next_record;
    end if;
    end loop;
    FIRST_RECORD;
    end;
    When I took out the loop the way you've mentioned
    it's changing the background color of the item for the record in which cursor is in . Users want to look at the screen in a glance and go directly to the item which is updatable .
    Is there any way we can loop through all records once and change properties in one shot ?
    Sorry to bother you,
    Asha

  • How to make server behaviors repeat region vertical?

    I have done many "Server Behavior, Repeat Region" showing vertical list without any other setup, now I’m doing a new one and is showing horizontal which doesn't make any sense. Does anybody know why and how to fix this “bad behavior”?

    This is very simple page no external or internal css is for internal use only to retrieve data base information. I currently have to more from different sites working fine without any third party app or any extra coding effort.  here are codes.
    Thank you guys for your prompt response.
    <?php require_once('Connections/customers.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    mysql_select_db($database_customers, $customers);
    $query_Recordset1 = "SELECT * FROM customers";
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $customers) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    if (isset($_GET['totalRows_Recordset1'])) {
      $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
    } else {
      $all_Recordset1 = mysql_query($query_Recordset1);
      $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>Untitled Document</title>
    </head>
    <body>
    <table width="158%" border="1">
      <tr>
      <th scope="col">ID</th>
        <th scope="col">Name</th>
        <th scope="col">Last Name</th>
        <th scope="col">Address</th>
        <th scope="col">City</th>
        <th scope="col">State</th>
        <th scope="col">Zip Code</th>
        <th scope="col">E-mail</th>
        <th scope="col">Phone</th>
        <th scope="col">Username</th>
        <th scope="col">Password</th>
        <th scope="col">Role</th>
      </tr>
      <tr>
        <?php do { ?>
          <td align="left"><?php echo $row_Recordset1['id']; ?></td>
          <td align="left"><?php echo $row_Recordset1['name']; ?></td>
          <td align="left"><?php echo $row_Recordset1['lname']; ?></td>
          <td align="left"><?php echo $row_Recordset1['address']; ?></td>
          <td align="left"><?php echo $row_Recordset1['city']; ?></td>
          <td align="left"><?php echo $row_Recordset1['state']; ?></td>
          <td align="left"><?php echo $row_Recordset1['zip']; ?></td>
          <td align="left"><?php echo $row_Recordset1['email']; ?></td>
          <td align="left"><?php echo $row_Recordset1['phone']; ?></td>
          <td align="left"><?php echo $row_Recordset1['username']; ?></td>
          <td align="left"><?php echo $row_Recordset1['password']; ?></td>
          <td align="left"><?php echo $row_Recordset1['role']; ?></td>
          <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
      </tr>
    </table>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>

  • CCM - How to make items in one category to be sorted as expected?

    Hi,
    I'm searching for a way to sort items in one category in CCM, so that when end users open Catalog via SRM, click into the category, they can see some items on top of the list automatically.
    I had thought the items should be sorted by Item Valuation and also tried to upload items in CCM in the order I wanted. But when I created shopping cart as an end user to connect to catalog, the order of the items are totally different. And I even could not tell how the items are sorted, it seems it's not by item valuation, not by item description, not by price, not by anything... Is it that in the catalog search engine the items are not sorted at all?
    Can somebody share with me how I can realize that? Many thanks!
    Best Regards,
    Elly

    Hi Elly,
    You can use the information [here |http://help.sap.com/saphelp_ccm20/helpdata/en/3f/3166e98d564c45ba9385187d7cc3cb/content.htm]to determine the sort order of characteristics, this is all that can be effectively maintained.
    Regards,
    Jason

  • How to make items in a list word wrap as needed and be variable heights

    I am trying to build a custom itemrenderer for the List control.  The items in the list are variable lengths of text, some of the text items will have different colors determined at runtime base on some criteria (this works fine now with my custom itemrenderer).  What I need is for the items to word wrap, and therefore for the list to display items of varying heights.  Is this possible to do?  All my attempts seem to have failed.  If I can't do this with an item renderer any suggestions about how to do this?  Thanks very much in advance to any of you gurus who are able to help me.

    Trick here is not to specify any height for the renderer so that Flex will determine the height according to the content. Also set the variableRowHeight="true"
    Here is a simple example
    <mx:ArrayCollection id="dp">
            <mx:Array>
                <mx:Object label="some very long text"/>
                <mx:Object label="some very loooooooooooooooooooooooooooooooooong text"/>
                <mx:Object label="some very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text"/>
                <mx:Object label="some very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text"/>
                <mx:Object label="some very long text"/>
            </mx:Array>
        </mx:ArrayCollection>
        <mx:List dataProvider="{dp}" variableRowHeight="true">
            <mx:itemRenderer>
                <mx:Component>
                    <mx:Canvas width="100%">
                        <mx:Text width="100%" text="{data.label}"/>
                    </mx:Canvas>
                </mx:Component>
            </mx:itemRenderer>
        </mx:List>

  • How to make "item text" mandatory in PR

    Dear Friends,
    I want to make the item text field mandatory  in Purchase Requisition so that no user will be able to create a PR without entering value in this field. Later on I want this field to appear in the PR printing.
    Suggestioins will be highly appreciated.
    Regards
    Rutabhadra Panda

    Dear,
    SPRO >M M>Purchasing>Purchase Requistion>Select Field Selection.
    here go to Tcode for u want to make it mandatory.
    Select then go to Basic Data & Item and select Text and make the radio button Regired Entry.
    This may help u
    Reagrds,
    Pardeep Malik

  • How to make items in ForEach issues partial trigger

    I have a list of command links, from which i want to partial trigger other parts of the page. is it possible?
    How does the receiving component know which id to use?
    Thanks,
    Josh

    Hi,
    I tried accesing the Lotus Notes Portlets with some Calendar entries which have different event start datetime values and duration values. And, the Calendar Portlet displays the entries in the order of the event start datetime.
    Please check, if the Calendar items are shown as sorted in the standard Lotus Domino Web Client because, the display in the portlets is as per the Lotus Domino Web client display.
    regards,
    Geeta

  • How to make a title of region as a link to another page?

    Hi there,
    I need to hyperlink a region title, so when I click in the title I will go to another page in the app without login agian, In other words keep the same session.
    Thanks,
    abdul
    Edited by: dtabed on May 12, 2009 1:40 PM

    Abdul
    The full link would be
    http://host:port/pls[if using mod_plsql handler]/f?p=&APP_ID.:&APP_PAGE_ID.[if to a specific page]:&APP_SESSION.Hope this helps
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • How to make item text mandatory in me51n tcode .

    hello experts,
    i developed this code , but it is not working , please suggest me wat i did mistake in my code.....
    *data : it_lines1 type tline occurs 0 with header line .
    *data :tdname like stxh-tdname.
    *loop at im_t_eban1.
    if im_t_eban1-werks = '3000'.
       if sy-tcode = 'ME51N'.
         concatenate im_t_eban1-banfn im_t_eban1-bnfpo into tdname.
         call function 'READ_TEXT'
           exporting
             client   = sy-mandt
             id       = 'B01'
             language = 'E'
             name     = tdname
             object   = 'EBAN'
           tables
             lines    = it_lines1.
         loop at it_lines1 .
           if it_lines1-tdline is initial.
             if sy-subrc <> 0.
               ex_mes1-type = 'E'.
               ex_mes1-id   = 'ZMM_MSG'.
               ex_mes1-number = '063'.
               append ex_mes1.
               ex_messages[] = ex_mes1[].
               clear ex_mes1.
               free ex_mes1.
             endif.
           endif.
         endloop.
       endif.
    endif.
    *endloop.
    note: here no 63 is message no ,( please enter item text).

    Hi,
    Message e63(ZMM_MSG) .
    Try This .
    in place of
    *ex_mes1-type = 'E'.
    ex_mes1-id = 'ZMM_MSG'.
    ex_mes1-number = '063'.
    append ex_mes1.
    ex_messages] = ex_mes1[.
    clear ex_mes1.
    free ex_mes1.

  • How to make new scop of list and selection parameter in ME2L or ME2M

    Hi,
      As there are many reports avaliable ,  in ME2L and ME2M  there is scope of list and selection parameter on the selection screen,  i want to know how we can create new scope of list and new selection parameter.
    regards,
    zafar

    IMG ---> Material Management ---> Purchasing ---> Reporting ---> Maintain Purchasing Lists ---> Scope of List ---> Define Scope of List

  • How to make header scollable in top-of-page parameter in rs_tree_list_displ

    hi frnds,
    I have a requirement.
    I want to make the header section scrollable in the top-of-page parameter of the fm rs_tree_list_display, but i am not able to do it.
    please help me out.
    code snippet is as follows:
    CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
        EXPORTING
          CALLBACK_PROGRAM      = SY-REPID
          CALLBACK_USER_COMMAND = 'USER_COMMAND'
          CALLBACK_TOP_OF_PAGE  = 'TOP_OF_PAGE'
          CALLBACK_GUI_STATUS   = 'MY_STATUS'
          COLOR_OF_NODE         = '4'
          USE_CONTROL           = 'L'.
    FORM TOP_OF_PAGE.
      DATA: V_YEAR TYPE CHAR30.
      DATA: V_PRCTR TYPE CHAR40,
            V_PF_AC TYPE CHAR35.
      CONCATENATE 'Profit Center Group:' P_PRGRP INTO V_PRCTR.
      CONCATENATE 'Profit&Loss A/C Group:' P_PRGRP1 INTO V_PF_AC.
      CONCATENATE 'Fiscal Year:' P_RYEAR INTO V_YEAR.
      SHIFT P_FRPMAX LEFT DELETING LEADING '0'.
      SHIFT P_TRPMAX LEFT DELETING LEADING '0'.
      WRITE:/.
      WRITE:/30 P_TXT.
      WRITE:/.
      WRITE:  /2 V_PRCTR,
              /2 V_PF_AC,
              /2 V_YEAR,
              /2 TEXT-019,18(2) P_RVERS,
              /2 TEXT-020,18(2) P_FRPMAX,
              /2 TEXT-021,18(2) P_TRPMAX.
    endform.
    Thanks in advance for your help.
    Hariom

    Use OO method, instead of FM, using class cl_gui_alv_tree, where you can display a HTML header.....
    Check the wiki for demo program......
    http://wiki.sdn.sap.com/wiki/display/Snippets/ExampleaboutALV+Tree

Maybe you are looking for