Script to Set Nav Item in SSI

I have an images based Nav Bar in which each item has 3
states (up, over and down). The down state is shown when you are on
that page. Basic design. What I want is to make the nav bar into a
SSI (easy) that will automatically display the down state for the
correct nav item based on the page it is on. Any resources for such
a script?
Thanks!

First of all I really appreciate your help. The learning
curve for webdesign can be steep.
here is the code for my homepage
(www.adambenderdesigns.com/home.shtml)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Adam Bender Designs: Home</title>
</script>
<script type="text/javascript" language="JavaScript">
<!--
function P7_downImage() {
var g7="<nav_bar_home_over>"
var g7url="<images/nav_bar_home_over.png>"
if ((g7=MM_findObj(g7))!=null) {g7.src=g7url;}
// -->
</script>
</head>
<!--#include virtual="top.shtml"-->
<body onLoad="P7_downimage()">
<table width="698" height="809" border="3" align="center"
cellpadding="0" cellspacing="0" bordercolor="#003399"
bgcolor="#FFFFFF">
<tr>
<td height="803">
<table width="700" align="top">
<tr>
<td width="339"> </td>
<td width="319"> </td>
<td width="42"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="635"> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
And here is the code for my "top.shtml" incude that have the
navigation bar code in it.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a
.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for
(i=0;!x&&i<d.forms.length;i++) x=d.forms
[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n);
return x;
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null &&
!img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn =
img.src;
if ((nbArr = document[grpName]) == null) nbArr =
document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img =
MM_findObj(args
)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img =
MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] :
((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver
; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr; img.src
= img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img =
MM_findObj(args
)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue =
false;
for (i=0; i<(args.length-1); i+=2)
eval(args+".location='"+args[i+1]+"'");
//-->
</script>
<script type="text/javascript" language="JavaScript">
<!--
if( -1 == location.href.
toLowerCase().
indexOf('adambenderdesigns.com') )
location.href = '
http://www.adambenderdesigns.com';
// -->
</script>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"><style type="text/css">
<!--
body {
background-image: url(images/back_ground.gif);
background-repeat: repeat;
-->
</style>
<title>Adam Bender Designs</title>
</head>
<body
onLoad="MM_preloadImages('images/nav_bar_folio_over.png','images/nav_bar_links_over.png', 'images/nav_bar_contact_over.png','images/nav_bar_home_over.png')">
<table border="0" cellpadding="0" cellspacing="0"
width="704" align="center">
<tr>
<td colspan="10"><img src="images/header_07.png"
width="226" height="110"><img src="images/header_08.png"
width="317" height="110"><img src="images/header_09.png"
width="161" height="110"></td>
</tr>
<tr>
<td height="20" colspan="10"></td>
</tr>
<tr>
<td width="26"></td>
<td width="22"></td>
<td width="22"></td>
<td width="224"></td>
<td width="85"></td>
<td width="169"></td>
<td width="91"></td>
<td width="22"></td>
<td width="22"></td>
<td width="21"></td>
</tr>
</table>
<table width="700" border="0" cellspacing="0"
cellpadding="0" align="center">
<tr>
<td width="34"><div
align="left"></div></td>
<td width="666"><a href="home.shtml"
target="_parent"
onClick="MM_nbGroup('down','group1','navbarhome','images/nav_bar_home_over.png',1)"
onMouseOver="MM_nbGroup('over','navbarhome','images/nav_bar_home_over.png','images/nav_ba r_home_over.png',1)"
onMouseOut="MM_nbGroup('out')"><img
src="images/nav_bar_home.png" name="navbarhome" width="80"
height="28" border="0"></a><a href="javascript:;"
target="_parent"
onClick="MM_nbGroup('down','group1','navbarfolio','images/nav_bar_folio_over.png',1);MM_n bGroup('down','group1','navbarfolio','images/nav_bar_folio_over.png',1)"
onMouseOver="MM_nbGroup('over','navbarfolio','images/nav_bar_folio_over.png','',1)"
onMouseOut="MM_nbGroup('out')"><img
src="images/nav_bar_folio.png" name="navbarfolio" width="80"
height="28" border="0"
onClick="MM_goToURL('parent','folio.shtml');return
document.MM_returnValue"></a><a href="links.shtml"
target="_parent"
onClick="MM_nbGroup('down','group1','navbarlinks','images/nav_bar_links_over.png',1)"
onMouseOver="MM_nbGroup('over','navbarlinks','images/nav_bar_links_over.png','',1)"
onMouseOut="MM_nbGroup('out')"><img
src="images/nav_bar_links.png" name="navbarlinks" width="80"
height="28" border="0"></a><a href="contact.shtml"
target="_parent"
onClick="MM_nbGroup('down','group1','navbarcontact','images/nav_bar_contact_over.png',1)"
onMouseOver="MM_nbGroup('over','navbarcontact','images/nav_bar_contact_over.png','',1)"
onMouseOut="MM_nbGroup('out')"><img
src="images/nav_bar_contact.png" name="navbarcontact" width="80"
height="28" border="0"></a></td>
</tr>
</table>
</body>
</html>
Thank you!

Similar Messages

  • Setting an item value before print report in BI Publisher

    Hi,
    I am having an issue with setting a page item's value once a button (that prints a BI Publisher report) is pressed. The session state for the item is set, however because the page does not re-load no value appears in the item on the page.
    I am using a button as a page Item and using a Page Branch with the Branch Point set as On Submit: After Processing(After Computation, Validation, and Processing) with the Page set to 0 and the Request set to PRINT_REPORT=REPORT
    Is there any way to set the item value on the page before branching to the report?
    Your help is greatly appreciated.
    -Marsha

    Marsha,
    You can do that as follows:
    1- create a hidden text item (P20_date_hidden) with default value set to sysdate.
    2- for your button >> edit >> Buttom display attributes >> attributes >> type in : onFocus= "set_date();" (( note: am using onFocus because it takes places before onClick ))
    3- In your page >> edit >> HTML header >> type in :
    <script language="JavaScript" type="text/javascript">
    function set_date()
    v_date = $x('P20_DATE_HIDDEN').value;
    $x('P20_DATE_LETTER_SENT').value = v_date;
    </script>
    Hope this helps,
    Sam
    Please reward good answers by marking them correct or useful!

  • Group Policy - Computer Startup Scripts - Add/Set Default printer

    Good Morning.
    Let's say we have 2 offices, A and B, and only 1 user.  The user is using Roaming Profiles.  Each office has its own printer.
    What I am trying to do, is make a Startup script that is specific to the COMPUTER being logged into so when any user logs into that computer, they get the printer in that office defined and set as default.
    I am able to do this successfully with my script but ONLY if i have the script be on the USER side of GP (i.e. in the Logon script section)
    That is great that that is working however, when my user goes to Office B, they still get mapped to Office A's printer if I use that method.
    So I figured I could just modify my GP and run the same script from the STARTUP section of the computer, rather than the LOGON section of the user.  It does not work.
    Here is my script:
    Set WRFCUNetwork = CreateObject("Wscript.Network")
    PrinterPath = "\\fileserver\MAINTELLER"
    PrinterDriver = "PrinterDriver"
    WRFCUNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
    WRFCUNetwork.SetDefaultPrinter "\\fileserver\MAINTELLER"
    This is where I Have the script placed:
         Computer Configuration -> Windows Settings -> Scripts(Startup/Shutdown)
    Once i'm in there, I double click Startup, click Add, and select my script which is named:
         MainPrinterSetup.vbs
    I have this GP applied to ONE OU, and that OU has ONE computer in it (my test computer)
    I login with a brand new user called "testuser" (creative, huh?) and basically nothing happens
    except they log in and have some Microsoft Document Image Writer printer set as default (which by the way sure does slow the PC down to the point of it almost being broke if anyone actually tries to print to that by accident)
    No Main Teller Printer, no anything.
    The strangest part about this is, if i apply this script to the user LOGON scripts, it works fine, the printer is there, and is set as default. (but see above why that wont work for my situation)
    So obviously the script works fine, but I guess i'm missing something when it comes to applying GP's to Computers rather than Users.
    Can anyone shed some light as to why the script is not running (i'm guessing the script isn't even attempting to run, rather than failing, but i have no way to know that)
    Thank you in advance!!
    Derek Conlon
    Network Administrator
    WRFCU
    EDIT:  Here are the PC's info that i'm working on:
         Server:  Windows Server 2003 Standard Edition (where my GP's are created and managed with AD)
         Target PC:  Windows XP Professional SP3
    EDIT #2:  I manually navigated to the Script file after logging in and "opened" it and it added and set the default printer no problem.  the issue is definately with the script running at startup.

    I wanted to clarify a few things:
    1. While it is true that printer connections are usually per user, it is definitely possible to create "global printers".  There are a number of ways to do this, but two methods that come to mind are using:
    a. "Rundll32 printui.dll,PrintUIEntry" option with the "/ga" switch.  The "/ga" switch is the key here since it allows you to deploy printers "per machine" instead of "per user".  More information
    about this is available at:
    http://members.shaw.ca/bsanders/NetPrinterAllUsers.htm
    http://technet.microsoft.com/en-us/library/ee624057%28WS.10%29.aspx
    http://www.computerperformance.co.uk/Logon/logon_printer_computer.htm
    http://www.robvanderwoude.com/2kprintcontrol.php
    b. The Print Management console that is available in Windows 2003 R2 and higher can help you deploy printers "per machine" in addition to "per user".  More information about this is available at:
    http://www.czsolution.com/print-management/print-management/print-management-console.htm#DeployingPrintersByGroupPolicy
    http://technet.microsoft.com/en-us/library/cc753109%28WS.10%29.aspx
    2. As Guy mentioned, Group Policy Preferences can help set the default printer.  But there is another way to accomplish this.  The problem with the computer startup portion is that it runs before the user logs in.  And applying this script
    in the login script section would not work per computer unless you used loopback processing.  So another way to do this is to place a script that sets the default printer into the "All Users" startup folder.  Items in the "All Users"
    startup folder run for any user that logs into the computer, but it runs in the user's context.  So, this script would effectively set the default printer on a "per machine" basis.  The script method is a cruder way to approach the problem,
    but it will help get the job done.  Here are some resources on setting the default printer via script:
    http://www.intelliadmin.com/index.php/2007/08/set-default-printer-from-a-script
    http://www.computerperformance.co.uk/ezine/ezine17.htm

  • Set hidden item in Javascript

    Hi,
    I am having a hidden page item P4_SELECT in my page. I am trying to set this page item with a value in javascript function.
    function getTheCurrentRow(triggerItem){  
        alert( triggerItem.slice(6));
       document.getelementbyid(P4_SELECT).value=triggerItem.slice(6);   
    // $x(P4_SELECT).value=triggerItem.slice(6);
    </script>Eventhough i am getting value in the alert getting javascript error "P4_SELECT Undefined" .
    When i checked the "view Source" of the page it is having this line in it
    <input type="hidden" name="p_t04" value="" id="P4_SELECT"  />I tried
    $x(P4_SELECT).value=triggerItem.slice(6);But getting same result only. Can't we set hidden item values in Javascript.
    Regards,
    Jyothi

    Hi,
    If you are on Apex 3.x or higher , try
    function getTheCurrentRow(triggerItem){  
    alert( triggerItem.slice(6));
    $s("P4_SELECT", triggerItem.slice(6));   
    /* Alert hidden item value you did set */
    alert($v("P4_SELECT"));
    </script>Here is link to Apex JavaScript API document where you can find functions $s and $v I did use
    http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/javascript_api.htm#CDEEIGFH
    Regards,
    Jari

  • Error in script to set album rating in iTunes

    Hi
    I used to use the following script to set album ratings of albums in my iTunes library.  It used to work fine, but now it's not working.  When I try to debug it I am getting the following error:
    "Scripting component error."
    on this line in the third block:
    repeat with R in (rating of tracks whose album is thisAlbum)
    I wonder if anyone can spot what the problem might be?
    Thanks,
    Nick
      --Make a list of all the selected albums:
              set theAlbums to {}
              set theAlbumsRef to a reference to theAlbums
              set tempList to album of selection
              set thePreviousTitle to ""
              repeat with thisTitle in tempList
                        set thisTitle to thisTitle as text
                        if thisTitle is not thePreviousTitle then
                                  copy thisTitle to the end of theAlbumsRef
                                  set thePreviousTitle to thisTitle
                        end if
              end repeat
              set numberOfAlbums to count theAlbums
      --Make a list containing one track for each selected album:
              set theTracks to {}
              set theTracksRef to a reference to theTracks
              repeat with thisAlbum in theAlbums
                        copy (track 1 whose album is thisAlbum) to the end of theTracksRef
              end repeat
      --Set the album rating of each album contained in the selection:
              set theRatings to ""
              set k to 0
              repeat with thisTrack in theTracks
                        set k to k + 1
                        if k mod 25 = 0 then beep 1 -- for audio feedback
                        set thisAlbum to item k of theAlbums
                        set numberOfTracks to 0
                        repeat with k from 1 to (disc count of thisTrack)
                                  try
                                            get (track count of track 1 whose (album is thisAlbum) and (disc number is k))
                                            set numberOfTracks to numberOfTracks + result
                                  end try
                        end repeat
                        set songRating to 0
                        repeat with R in (rating of tracks whose album is thisAlbum)
                                  if R > 80 then set R to 80
                                  set songRating to songRating + R
                        end repeat
                        set thisRating to round (songRating / numberOfTracks)
                        set album rating of thisTrack to thisRating
                        set theRatings to theRatings & (album artist of thisTrack & tab & thisAlbum & tab & (thisRating as text) & return)
              end repeat
              display dialog "The album “" & thisAlbum & "” has a rating of " & thisRating with icon 1 buttons {"OK"} default button 1
    end tell

    problems like this are usually solvable by splitting up the line.  It doesn't look like it, but there's a whole lot going on in that compound statement. try:
    tell application "iTunes"
              set ratingList to (rating of tracks whose album is thisAlbum)
              repeat with R in ratingList
                        if R > 80 then set R to 80
                        set songRating to songRating + R
              end repeat
    end tell

  • Set Unit-item in Cube

    Hi
    I take unit-item for other object table.
    and I want to set unit-item in cube.
    but I don't understand where input.
    Please tell me where input part in cube.
    sorry  a little englishskill...

    Hi,
    If you are on Apex 3.x or higher , try
    function getTheCurrentRow(triggerItem){  
    alert( triggerItem.slice(6));
    $s("P4_SELECT", triggerItem.slice(6));   
    /* Alert hidden item value you did set */
    alert($v("P4_SELECT"));
    </script>Here is link to Apex JavaScript API document where you can find functions $s and $v I did use
    http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/javascript_api.htm#CDEEIGFH
    Regards,
    Jari

  • Setting text item delimiters in Cocoa-Applescript App

    Does anyone know of a problem with text item delimiters in a Cocoa-Applescript App.  This is in Xcode 4.5.2 and  Mountain Lion
    the following code seems to fail  to set the text item delimeter  to + when I run it in Coca-AppleScript
    --  TSTAppDelegate.applescript
    --  Test Text item Delimiters
    --  Created by Frank Caggiano on 12/22/12.
    --  Copyright (c) 2012 Frank Caggiano. All rights reserved.
    script TSTAppDelegate
      property parent : class "NSObject"
              on applicationWillFinishLaunching_(aNotification)
      -- Insert code here to initialize your application before any files are opened
            tstTxtDel()
              end applicationWillFinishLaunching_
              on applicationShouldTerminate_(sender)
      -- Insert code here to do any housekeeping before your application quits
                        return current application's NSTerminateNow
              end applicationShouldTerminate_
        on tstTxtDel()
            set text item delimiters to "+"
            set d to "-s http://www.nietzschefamilycircus.com"
            set r to do shell script "curl  " & d & " | ~/Desktop/try.pl"
            display dialog "r is " & r
            set rr to every text item of r
            display dialog "rr " & rr
            display dialog "curl " & first text item of rr & " -o "
    end
    end script
    However if you put the tstTstDel() function in the Applescript editor it works as expected.
    The try.pl script is
    #!/usr/bin/perl
    $s ="";
    while (<>) {
        $s .= $_;
    $s =~ m{class="comic"(.*)<div class="footer">}si;
    ($link, $caption,$jj) = ($1 =~ m{<img src="(.*)" alt=.*class="quote">(.*)(</div>.*</div>)}si);
    print $link, "+", $caption, "\n";
    I know this worked in the past. The Coca-Applescript app was written at least as far back as Snow Leopard. The site I am parsing changed their format and I was updating the app as a means to learn the new Coca-Applescript environment.
    Any help appreciated

    OK found it, I needed to use
    set Applescript's text item delimiters to "+"
    instead of just
    set text item delimiters to "+"
    I suppose it is a scoping thing.

  • HOW CAN I SET AN ITEM LENGHT IN CODE !!!

    hi
    i want to set an item lenght by code!!!! and not by using " property palette". i want to use it in the pre-insert/update trigger . i tried to use "set_item_property" but i didnt find any parameter that can solve my problem.
    Please help me it is very important .
    thanks .

    i will try to explin myself i want to let the user to enter only 40 characters despite the fact that the text item can get up to 70 char ( the text item is based on DB column that is varchar2(70)) and i want to limit the user to 40 char because i take the item he updated or insered from the oracle DB and load it to another DB there the same column is in type varchar2(40) and i want to limit the user insted of substructing the string he is inserting.

  • How to create the Sap script & Layout Set (wants sample code)

    Hi All ,
    Can you please provide me the step by step procedure
    to create the Sap script & Layout Set .(please provide sample
    code/links /docs for layout & print program).
    Regards
    Rahul

    hi,
    go through the following links  what i found to create sap script.
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    how to create a  scripts?give steps?
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links

  • Delivery completed" indicator cannot be set for item 00001

    Hi all,
    I have done a inter company stock transfer order , with respect to that Order I made  Outbound delivery and posted GR with respect to outbound delivery. I have done  MIRO for  PO  for all the Item ,
    Now  I  need to  return some  material  to supplying plant for  some reason,  I tried  to  make GR (MIGO)  against the same  outbound delivery with movement type 122. the document is posted  but  when I tried to  make complete  delivery indicator  it does not allow me to do so .
    it says me
    Delivery completed" indicator cannot be set for item 00001
       Message no. 06 848
    Diagnosis
       You have set the "delivery completed" indicator for a stock transfer  item.
    system Response
       You can only set the "delivery completed" indicator in stock transfer  items if
       o   the sum of the goods issue quantities in the supplying plant equal  the sum of the goods receipt    quantities in the receiving plant.
       o   the sum of the delivery note quantities is equal to the sum of the goods receipt quantities.
    Regards,
    Dhilipan.

    I dont think you need to set "delivery completed" indicatory while returning from one plant to another.
    For example : You ordered 100 qty. and you are receving only 80 Qty. and you don't expect any receipts anymore. in this case you want to close the open purchase order with delivery completed indicator.
    But while returning to vendor or to another plant you are not referring the P.O directly and hence you dont need "delivery completed indicator'

  • Update the set of item category in IMG

    Hi All,
    When I am trying to update the set of item category, here is the path that I'm using in the IMG:
    Sales and Distribution/Basic Functions/Account Assignment-Costing/Revenue Recognition/Set Revenue Recognition For Item Categories.  When I go to the detail to update the item category, even in the change mode, the fields are not available for updates.
    Please help me, is this any configuration issue?
    Its not even a authorization issue because user has the sap_all and sap_new.
    Thanks.

    Check the links below:
    http://help.sap.com/bp_bblibrary/500/Documentation/G69_BB_ConfigGuide_EN_US.doc
    http://sapbasisnotes.blogspot.com/2007/11/consignment-sales-process-in-sap.html
    http://www.redbooks.ibm.com/redbooks/pdfs/sg246916.pdf
    Regards.

  • HOW TO SET A ITEM DEFAULT VALUE  to today

    I have a item using select list and I like to set this item default value as
    today's date , such as "select to_char(sysdate,'YYYY-MM-DD') from dual"
    HTMLDB failed recongnize the default value, or throw error Error ERR-9132 Error in PLSQL expression for item default code, ...". I have tried each of 3 avaialable Default Value Types
    Per http://forums.oracle.com/forums/thread.jspa?messageID=443287, it is used to be doable, but the default value type (sql) is no longer avaialble in HTMLDB 2.0
    I would appreaciate it very much if anyone has successfully done this before, either set to today or current month

    Ching - Did you try a PL/SQL Expression using to_char(sysdate,'YYYY-MM-DD')?
    There have been no changes to the item default types available in HTML DB. The thread you referenced is for Oracle Portal, a separate and unrelated product.
    Scott

  • Script to set display name in iCS Calendar view to the LDAP CN

    Script to set the display name in the Calendar view for iPlanet Calendar
    Server(iCS) to the LDAP common name(CN)
    By default, iCS uses a user ID(uid) based on an employee number, rather than on
    an employee's first and last name, as the calendar ID(calid).
    The current release of iCS (5.0 P2) does not create a display name for a
    calendar when a user enables a calendar by logging in; by default, it will
    list the calid again in the Display Name field of the Calendar view.
    For example, if an employee has a calid of "12345," when you click the
    Calendar tab to view the calendar, the Display Name will appear as follows:
    <P>
    12345 (12345)
    <P>
    A problem arises when a user tries to subscribe to another user's calendar.
    Although the search criteria are based on the calid and the Display
    Name, the only information currently stored in the calendar database is the
    calid. Therefore, users will be unable to subscribe to another
    user's calendar unless they know the calid of that person. The next
    patch release for iCS will remedy this problem by using common names(CNs) as
    the Display Names. That is, the database will store the CN values
    from LDAP for users, and the Calendar view will appear something as follows:
    <P>
    12345 (John Doe)
    <P>
    Until this next release of iCS, there are two options to work around this
    problem.
    <P>
    <OL>
    <LI>You can "provision" users by running the cscal
    administrative utility with the
    Display Name option.
    <P>
    OR
    <P>
    <LI>If the user community already exists, you can use the sample Perl script
    below to search through the calendars of users.
    <P>
    Note: If a default calid exists that doesn't have a Display Name, the script
    will search the LDAP directory to find a CN to set as the Display Name for
    that calendar.
    </OL>
    <P>
    <HR>
    <P>
    <B>Sample Perl Script:</B>
    #!/bin/perl5.004
    sub TRUE {1}
    sub FALSE {"}
    $SIG{INT} = 'handler';
    $SIG{QUIT} = 'handler';
    $mypath = $ENV{'LD_LIBRARY_PATH'};
    $savepath = $mypath;
    $ENV{'LD_LIBRARY_PATH'} = $mypath.';.';
    #--------------INITIALIZATION----------------
    $host="ldaphost";
    $base_dn="ou=People,o=iplanet.com";
    $port=389;
    $auth_dn="cn=Directory Manager";
    $auth_pwd="password";
    $found_confile = TRUE;
    $default_cal = FALSE;
    open(CSCAL,"./cscal -v list |");
    while($cal_list = <CSCAL>)
    if ($cal_list =~ m/: owner=/)
    @calid = split(' ',$cal_list);
    chop($calid[0]);
    print "\ncalid: $calid[0] ... ";
    $default_cal = TRUE if ($calid[0] !~ m/:/);
    } elsif (($default_cal) && ($cal_list =~ m/^ name=([a-zA-Z ]*)/)) {
    chomp($1);
    print "cal name: $1";
    if (($1 EQ ") || ($1 EQ $calid[0]))
    open(LDAPSEA,"./ldapsearch -h $host -p $port -b \"$base_dn\" -D
    \"$auth_dn\" -w \"$auth_pwd\" uid=$calid[0] |");
    while($ldap_list = <LDAPSEA> )
    if ($ldap_list =~ m/^cn: ([a-zA-Z ]*)/)
    chomp($1);
    `./cscal -n "$1" modify $calid[0]`;
    print "The display name for $calid[0] is being modified to be: $1\n";
    sleep(1);
    close(LDAPSEA);
    $default_cal = FALSE;
    close(CSCAL);
    sub handler
    local($sig) = @_;
    print "... Caught a SIG$sig--closing down shop\n";
    close(CSCAL);
    close(LDAPSEA);
    exit(0);
    }

    anne wrote:
    Hi David,
    About your confuse about"case when 1=2 then "product_d"."name" else "calendar_d"."year" end".
    You can try in your locale.
    You will find they are different.
    BASED ON THAT you have two table product_d and calendar_d AND they are related by one Fact table.
    THEN When you type in
    "case when 1=2 then "product_d"."name" else "calendar_d"."year" end"
    AND
    "calendar_d"."year",
    IT WILL SHOW U TWO different RESULTS.
    I need to show year which its related product is not null. but I cannot use SHOW->SQL RESULTS->TYPE SOME "WHERE..." because I also need to use "constrain"..
    That why I choose to use a case when function..
    So, do you have any idea about this?
    Regards,
    AnneWhy not use two filters in your request? Have something like this:
    product_d.name IS NOT NULL
    AND
    calendar.year IS PROMPTED?
    ...instead of using a CASE statement? This way you can have both filters show the way they should in a meaningful way.

  • Parent Child Value Sets for Item Categories

    I've tried to set up parent-child value sets, not independent-dependent sets for Item Categories but in vain. So, if Item Category has 2 segments - Category & Sub-Category; Sub-Category only shows valid values for a category. For example, if Category is 19 (Tools), the LOV for 2nd segment would only show 28 (Large Tools), 29 (Heavy Tools) etc.
    Creating an independent-dependent combination displays all values for the independent & dependent sets.
    Just looking for help here.
    Thanks,
    Sanjib

    Karthik, Sandeep and Hugh
    Thanks for your responses. We greatly appreciate you taking the time to reply to this thread. My e-mail is [email protected], that is if you'd like to send any documents.
    Basically, this is what we were looking for -
    The category structure is
    Equipment 1 - Spare 1,
    Equipment 1 - Spare 2,
    Equipment 2 - Spare 1,
    Tools - Large,
    Tools - Small,
    etc.
    When selecting Codes for this structure, if I choose 'Equipment 1' for 1st segment, LOV for 2nd segment would only show 'Spare 1', 'Spare 2'. Similarly, If I choose 'Tools', I only see 'Large', 'Small' for Segment 2.
    Thanks,
    Sanjib

  • How to change content type from Document set to Item

    While creating content type I've selected Item as a parent but after created I can see its showing Document Set as a parent content type. Now can anyone please suggest if possible I can change the parent content type from Document Set to Item.

    Hi,
    From your description, I know you want to change content type’s parent after creating it.
    There is no OOB method to change content type’s parent after you create it. If current content type has not been used, you could delete it and recreate it with your desired base type. Here are similar cases:
    http://sharepoint.stackexchange.com/questions/16131/change-base-content-type-of-content-type
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/b976f17e-99b5-42bb-bc82-8d4123a625cf/change-the-parent-of-a-content-type.
    This article may help you understand the relationship of Content type inheritance:
    https://support.office.com/en-au/article/Create-and-edit-content-types-3d5d45af-608d-4183-8d51-073095fe0312#__toc239159103.
    Best Regards
    Vincent Han
    TechNet Community Support

Maybe you are looking for

  • Different Date Formats in the same "From"

    Hello We used different date formats depending on the users language. In a report this is simple to implement ... read the date field twice (in different formats dd/mm/yyyy and mm/dd/yyyy) and display only one based on the language. I want to be able

  • Adapter Monitoring

    Hi, My RFC senario is giving me an error,I went to component monitoring-->Adapter Monitoring and saw the list of adapters.I see that the RFC adapter is red,does it mean the adapter is down?how do I troubleshoot it?This is the error I have in RWB. Sen

  • List of applications that won't start after updating to 10.6.8!

    I was just thinking that, if anybody had anything to add to the list, this would be a good place to do it. Please make a list, and please do add any solutions to any issues regarding the 10.6.8 update. Using: Max OS X, SnowLeopard, on MacBook Pro, 2.

  • Question about Primary Key

    HI I'm going to build a Database to automate center in my university The Database version is Oracle 10g v2 Which data type of primary key should I user? I used number in past but I heard there is more efficient data type for this purpose Thanks

  • Re-Importing DNGs which were exported from CR2s

    Going forward, I'm sure this issue could be solved by a workflow change, but for now, I have a small problem: I shoot a ton of images (20,000+ per year) and process in Lightroom. I have a workflow where I export my .CR2 originals as DNG for archiving