Dynamic List Formatting

I have a list of around 1800 dates (some are duplicates)
stored in an access query. I want to include them in a dynamic list
in date order in the format day month year. - "17/01/2000" without
duplicates - hence the DISTINCT in the recordset below:
<%
var recordset2_cmd = Server.CreateObject ("ADODB.Command");
recordset2_cmd.ActiveConnection = MM_SEEALL_STRING;
recordset2_cmd.CommandText = "SELECT DISTINCT photodate FROM
Dates ORDER BY photodate DESC";
recordset2_cmd.Prepared = true;
var recordset2 = recordset2_cmd.Execute();
var recordset2_numRows = 0;
%>
With the following selection code:
<select name="select" size="20" title="<%=
DoDateTime((recordset2.Fields.Item("photodate").Value), 2, 2057)
%>">
<%
while (!recordset2.EOF) {
%><option
value="<%=(recordset2.Fields.Item("photodate").Value)%>"
<%=((recordset2.Fields.Item("photodate").Value ==
(recordset2.Fields.Item("photodate").Value))?"selected=\"selected\"":"")%>
><%=(recordset2.Fields.Item("photodate").Value)%></option>
<%
recordset2.MoveNext();
if (recordset2.CursorType > 0) {
if (!recordset2.BOF) recordset2.MoveFirst();
} else {
recordset2.Requery();
%>
</select>
When run (on my testing server) the dates (correctly ordered
and distinct) are all shown in the form "1/17/2000" instead of
17/01/2000.
Can anyone tell me why?
Howard Walker

On 19 Mar 2007 in macromedia.dreamweaver.appdev,
whatalotofrubbish
wrote:
> When run (on my testing server) the dates (correctly
ordered and
> distinct) are all shown in the form "1/17/2000" instead
of
> 17/01/2000.
>
> Can anyone tell me why?
Because Microsoft products, by default, assume you're in the
US?
You need to set a Location ID (LCID) (2057 for UK, which
should give you
the date formatting you want):
<% @LANGUAGE=VBSCRIPT %>
<% Session.LCID = 2057 %>
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/email.php

Similar Messages

  • Viewing Events in a List Format

    Trying to Organize on Iphoto over 15k Photos that were previously very organized on my PC. On the PC I had my photos in what would be considered folders/albums on I photos. I did the import from my external harddrive and ended up with a lot of random events - many in order many not. Guess I'm used to viewing photos differently and the view in events is not cutting it at all.
    Is there a way to view events in a list format - similar to explorer on the PC. What have you found as the best way to organize photos coming from a PC? I had mine by year - example 2009/ then named for each month - 1Jan09NewYears, 2Feb09Valentine's Day etc. on the PC.
    I know this is really a personal choice - just looking for ideas and a WAY to View Events in a LIST Format.
    Thanks

    Is there a way to view events in a list format - similar to explorer on the PC.
    No. iPhoto is about the Photos not the Filenames.
    What have you found as the best way to organize photos coming from a PC? I had mine by year - example 2009/ then named for each month - 1Jan09NewYears, 2Feb09Valentine's Day etc. on the PC.
    You can find all the photos from a specific date very easily:
    a: Click on the Magnifying Glass in the Search Box at the bottom of the iPhoto Window. Select Date. Now you can find all the pics from any Year, Month or Day, just by selecting that Year, Month or Day
    b: Use a Smart Album: (File -> New Smart Album) based on Date will again, find all the pics from a Date or Date Range.
    However, If I might comment: Looking for a List View, Sorting on Date are simply trying to use File Organisation on your Photos. iPhoto has many more ways of doing things, and much more flexible. For instance, while knowing the date a pic was taken makes it really easy to find, what if you don't know the date? Again, the date is easy, but what if you want to have a separate heading for your favourite photos, regardless of date and so on. This is a canned answer I use and it explains my organising system:
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums exensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 25k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    Keywording takes time to set up, there's no doubt about it. I use Keyword Manager as it's much more powerful than the inbuilt system, and adds the possibility of nested keywords. So, for instance, if I add John to a photo it also adds 'Family'. Now I can add many keywords to a pic quickly.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.
    Regards
    TD

  • Dynamic list of values in CR 2008 - request of login to database

    I am using CR2008 with VB2005. I created simple application which generate report on different SQL Server 2005 databases.
    Report uses OLE.DB connection to SQL Server, I pass logon information in VB using "SA" username and password. The same simple report works great on different databases with one exception: if parameter (dynamic list of values) is used in report it runs correctly only on database it was created (connection to this database is saved in report and can be seen in Database->Set Datasource Location). Changing connection to other databases in VB during runtime causes CR to ask for username and password (in standard parameter window). It looks, like Crystal have one connection for report and the other for dynamic list of values parameter. I pass connection information to report using ConnectionInfo(). I loop through alll tables in report and apply connection:            
    For Each crTable In crTables
                    crTableLogOnInfo = crTable.LogOnInfo
                    crTableLogOnInfo.ConnectionInfo = crConnectionInfo
                    crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    I tried to pass connection information also to parameter but I couldn't find such possibility.

    This is a known issue (Tracking number is ADAPT01333806.) and a note has been written,  unfortunately it is not yet published. Below is the note content, including a work-around / resolution. You may also want to try FP 2.3, see that helps. (I'll break this post into two as I'll loose the formatting if I don't.
    Reproducing the Issue
    Use Crystal Reports 2008 SP2 to create a report with dynamic parameter(s)
    Use the following code from the Crystal Reports SDK for VS .NET
    Dim crDatabase As Database
    Dim crTables As TablesDim crTable As Table
    Dim crTableLogOnInfo As TableLogOnInfo
    Dim crConnectionInfo As ConnectionInfo 
    crReportDocument.Load("<path>")
    crReportDocument.Refresh()
    crConnectionInfo = New ConnectionInfo()
    With crConnectionInfo   
         .ServerName = "<New Server Name>"   
          .Password = "<password>"
    End With
    crDatabase = crReportDocument,Database
    crTables = crDatabase.Tables
    For Each crTable In crTables     
         crTableLogOnInfo = crTable.LogOnInfo     
         crTableLogOnInfo.ConnectionInfo = crConnectionInfo     
         crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    CrystalReportViewer1.ReportSource = crReportDocument
    The above code works with Crystal Reports 2008 SP 1

  • How do I add a time field to a dynamic list and form?

    I'm trying to create an update form that logs when an action was taken. Among the fields are one for the date and one for the time, but I've not been able to get the time field to display or enter data correctly.
    I've set the time format in the ADDT preferences (database date and time format is yyyy-mm-dd and HH:mm:ss and screen format is dd/mm/yyyy and HH:mm). When I create the list or the form using the wizard, there is no option to display the field as a time.
    In step 3 of 4 in the Dynamic List Wizard, the 'Display as' options are: text, numeric, double and date. Choosing date for the time field gives me a display as though it was a date (I get '00/00/0000'). I have the same problem with generating a Dynamic Form in that there is no option to display a time, only a date.
    Am I able to do this using the wizard, or is there another way that I'm, missing? Thanks for any help.

    If those date/time fields are only needed for logging purposes then follow Günter's instructions.
    If you need to be able to edit those two fields and have their values displayed properly then there are several steps you should take.
    First open the page that uses the Dynamic List behavior and make sure that all date and time fields are configured to display as dates. Then open the page with the dynamic form and click on "Manage Dynamic Form Wizard" in the Developer Toolbox. Configure your date and time fields to submit as dates. Then go to the Server Behaviors panel and double click on "Validate Form". You should now have 3 date/time options available under Validation Format: Date, Datetime, and Time. Configure each field as needed.
    This will ensure that date and time fields are saved in the proper format so that when you view their values they will be displayed properly, that is dates will be displayed as dates and times as times.
    There are also several additional server formats available that are accessible through the Bindings panel that you might want to experiment with.

  • Using variable in dynamic list queries

    How can we use a variable value like metadata value of the parent content in the dynamic list query?
    I tried something following ways but the query was not picking up the value of xCountries.
    dDocType <matches> `State` <AND> xCountries <matches> xCountries
    dDocType <matches> `State` <AND> xCountries <matches> `xCountries`
    dDocType <matches> `State` <AND> xCountries <matches> `$xCountries`
    dDocType <matches> `State` <AND> xCountries <matches> `<!--$xCountries-->`
    None of them worked. But when I printed the <!--$xCountries--> on the secondary page for the selected country the value is getting printed.
    Regards,
    Pratap

    Hi Bex,
    You were right. Eval function call was helpful here.
    The problem was resolved only to an extent by using the eval function. This is
    evaluating the query string given in parameters window for ssQueryText to
    correct value. We used the eval() function in the dynamic list fragment. The
    format of query we were trying earlier was incorrect. The correct format is like
    this
    dDocType <matches> `City` <AND> xCountries <matches> `<$xCountries$>` <AND>
    xStates <matches> `<$xStates$>`
    There is another problem though. We are able to add new states or cities by
    going to the specific state page or to the cit page and then edit it. But if we
    click edit on a secondary page e.g. on a State page(which contains list of
    cities) the correct values for cities are not getting populated in the Cities
    dynamic list in state edit window. Possible cause is that the eval function is
    not called in the edit window (which shows all applets), instead the eval
    function is called only in dynamic list fragment which is evaluated in the
    secondary page template for State. How can we make the eval function execute in
    the edit window as well?
    In fact the query is failing from paramters window itself. If I use Test Query
    it is returning 0 results.
    Is there a work around to address this problem? Hope I didn't confuse much.
    Regards,
    Pratap

  • SQL query alias names errors with dynamic lists

    Hullo,
    Problem:
    - Made a query form book database. Have authors in separate table with unique ID's referring to them on book table.
    - Query fetches author name in "Surname, Firstname initial.Secondfirstname initial" format, --> like "Bukowski, H.C" and giving that combo alias name in SQL like "AS 'author'"...
    - Dynamic list works fine at start, but when ordered from detail table back to the mainlisting, it does make an error with SQL stating "unknown column 'author' in where clause"
    That must be because the script looks for "author" column from the original table yeah, but how can I solve this? Any ideas? Does this mean that Alias names for columns are not possible or is there something i've missed?
    Any ideas, suggestions?
    Thanks,
    KimmoK

    Hi Kimmo,
    ADDT´s dynamic lists can handle alias columns fine to my experience, but I reckon that you most probably applied the "CONCAT(...) AS author" query modification after having generated the list, and the list´s internal WHERE clause seems to have no clue of this alias column.
    You can get an idea about using alias columns in Dynamic Lists in my tutorial "Dynamic Lists: exploring the Filter Conditions": http://www.guenter-schenk.com/tutorials/tutorial.php?id=6
    Can you please post the list´s code on your server as text file (e.g. code.txt) and provide a link to this file ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Dynamic character format in SMARTFORMS

    Dear Gurus,
    I want to make a dynamic character format in smartforms. I did it in SAPscript and success.
    what I did in program before passing to smartform :
    d_note = '<XX> dynamic text </>'
    and pass it to SAPscript and smartforms :
    &d_note&
    in SAPscript I made new character format XX as BOLD and UNDERLINED. it works for SAPscript. the output become  = dynamic txt
    unfortunately when I do this in smartforms, it is a fail although I have set new character format XX as bold and underline in smartstyles. the output become = <XX> dynamic text </>
    any guru has a solution for this smartform?

    Hi Sendy,
    You cant use tags (eg- <XX>) in smartfomrs like you did in sap scripts. Use your style in the smartform( form attributes) with all character formats and paragraph formats which you need. When you create a new text module in the smartform you will get two drop down lists for the paragraph formats and character formats in the top of the editor. Type your text there and highlight then choose 'XX'(or any other character format) character format from the drop down list.
    Hope this would help.
    Cheers,
    Jeewana

  • My song titles do not show up in the list format. What can I do to fix this?

    I'm trying to manage my iPod music and my song titles are not showing inthe list format. Does anyone know how I can fix this?

    VLC

  • Upgrade to SAP Business One 8.8 - Legal List Format

    Hi All,
    I am currently experimenting with the upgrade process from 2007A PL46 to SAP Business One 8.8 PL5.
    On some company databases that I try I get the error Legal List Format - Failed during the database upgrade process.  Does anyone know what this refers to and how it can be fixed?
    Many thanks,
    Damian

    No it's a very clean installation in the sense that it is a database that has only run against the core SAP Business one.  the only add on that would have been used during the original set-up would have been copy-express and DTW.
    The company data i am using is a copy of our own corporate data, nothing fancy as we are an SAP partnership so no real inventory even.
    d

  • How to print the data in ALV list  format using an existing layout

    Hi all
    Iam displaying the output in ALV list format and I saved the layout with some name
    now my requirement is i have to provide a field to select the layout name with F4 help and if i execute the program it should show the output with that layout format
    I tried this iam getting F4 help for that layout and selecting the layout but iam not getting the output with that layout iam getting the normal basic layout
    Can anyone send me a sample program code or what to do to get that
    Thank you

    Hi,
    refer this code.
    DATA : wa_variant  TYPE disvariant,       "Work area for variant
           wa_variant1 TYPE disvariant,       "Work area for variant
           wa_layout   TYPE slis_layout_alv,  "Work area for layout
    *&      Form  sub_get_default_variant                                  *
    This form will initialize the variant                               *
    FORM sub_get_default_variant .
    *--Clear
      CLEAR wa_variant.
    *--Pass the report name
      v_repid = sy-repid.                     "Report ID
      wa_variant-report = v_repid.
    *--Call the function module to get the default variant
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save        = c_save
        CHANGING
          cs_variant    = wa_variant1
        EXCEPTIONS
          wrong_input   = 1
          not_found     = 2
          program_error = 3
          OTHERS        = 4.
    *--Check Subrc
      IF sy-subrc = 0.
        p_varnt = wa_variant-variant.
      ENDIF.
    ENDFORM.                                  "sub_get_default_variant
    *&      Form  sub_f4_for_variant                                       *
    This form will display the List of Variants                         *
    FORM sub_f4_for_variant .
    *--Local Variables
      DATA: lv_exit(1) TYPE c.                "ALV exit
    *--Call the function module to display the list of Variants
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant    = wa_variant
          i_save        = c_save
        IMPORTING
          e_exit        = lv_exit
          es_variant    = wa_variant1
        EXCEPTIONS
          not_found     = 1
          program_error = 2.
    *--Check Subrc
      IF sy-subrc <> 2 AND lv_exit IS INITIAL.
        p_varnt = wa_variant1-variant.
      ENDIF.
    ENDFORM.                                  "sub_f4_for_variant
    *&      Form  sub_check_variant                                        *
    This form will check the variant                                    *
    FORM sub_check_variant .
      IF NOT p_varnt IS INITIAL.
        CLEAR wa_variant1.
        MOVE wa_variant TO wa_variant1.
        MOVE p_varnt TO wa_variant1-variant.
    *--Call the function module to check the variant exist
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
          EXPORTING
            i_save     = c_save
          CHANGING
            cs_variant = wa_variant1.
        wa_variant = wa_variant1.
      ENDIF.
    ENDFORM.                                  "sub_check_variant
    Regards,
    Prashant

  • Print preview in abap list format (OMLV) - Need preview in graphical format

    Dear All
    I am facing a problem with the print preview. (transaction code OMLV)
    When i am clicking on print preview button the system is displaying the output in a ABAP list format.
    and also the printout shows only the ABAP content.
    Pl. advise on how to view the print preview in a graphical format and not in the ABAP list format and pl. let me know the setting to print the spool in the graphical format.
    Thanks,
    Maxx

    Hi,
    this problem is not only related to warehouse. even the print preview spool for GR/GI slip in t-code SP01 shows as ABAP list and not as graphical screen.
    my question is why does the system shows the print preview for spool as an ABAP list instead of graphical view.
    pl. advise
    Thanks,
    Maxx

  • IOS7-Can we please have the "List" format of Google Calendar back so I can see my days events all at once?!!?!

    How sad I lost the ability to view a days calender entries all at once in list format when I upgraded to IOS7 ?!?

    In Calendar tap on the Search icon (magnifying glass).
    You can also see them on the Notifications pulldown.

  • Referencing a "checked record" from my ADDT Dynamic List using a SPRY Menu

    I have just posted a Beta of my site to:
    http://www.clearwave.biz/Beta/T1COElogin.cfm
    - Username is: Beta
    - Password is: 123
    - Once you are logged in you should see the ADDT list w/one
    order listed.
    - Click on the Printer icon & the Order Agreement will
    open in PDF. (this works fine)
    - Click on the InfoSheet link & the Report will open in
    PDF as well. (this works fine)
    - Everything works fine if you use the links on the same line
    as the record.
    - But if you check the CheckBox on the left, then choose the
    Spry Menu above, Reports/T1 Agreement the report will not work?
    Question: What should the Link be to reference the checked
    item below, pass the CustID value to the report & print the
    PDF?
    (Note: the CF report has the following line in the SQL:
    (tblT1OrderProcessing2.T1CustID = #param.T1CustID#) and the report
    prints fine in Report Builder if I pass it the T1CustID, as well as
    if I click the links on the same line as mentioned above, so this
    is just an issue of grabbing the CustID value from the checked line
    & passing it to the report link in the Spry menu)
    Here is a visual picture of my Dynamic List page:
    http://cerberus.clearwave.com/jerry/Order_Management_Main_Page.jpg
    Thanks in advance for the help,
    jlig

    Here is the Report URL that works perfectly when clicking the
    Printer icon on the right of my List:
    http://www.clearwave.biz/Beta/reports/T1_Service_Agreement.cfm?T1CustID=1508
    and the link to the InfoSheet:
    http://www.clearwave.biz/Beta/reports/T1_Information_Sheet.cfr?T1CustID=1508
    Both of these work perfectly by grabbing the T1CustID value
    of 1508 from the line.

  • How to add a column to a list created with the Dynamic List Wizard to display the values of the fiel

    Hi,
    ADDT, Vista, WAMP5.0
    We have 2 tables: clients_cli (id_cli, name_cli, tel_cli, and several more fields) and cases_cas (id_cas, idcli_cas, court_cas, and a lot of other fields).
    Clients may have many cases, so table cases_cas have a foreign key named idcli_cas, just to determine which case belongs to which client.
    We designed the lists of the two tables with the Dynamic List Wizard and the corresponding forms with Dynamic Form Wizard.
    These two forms are linked with the Convert Dynamic List and Form Wizards, which added a button to clients list named "add case".
    We add a client and then the system returns to the clients list displaying all clients, we look for the new client just added and then press "add case", which opens the Dynamic Form for cases, enter all case details and everything processes ok.
    However, when we view the cases list it display all the details of the case, including the column and values for the foreign key idcli_cas. As you can image, it is quite difficult for a human to remember the clients ids.
    So, in the cases list we added a another column, named it Name, to display the names of the clients along with cases details. We also created another recordset rsCli, selected the clients_cli table, displaying all columns, set filter id_cli = Form Variable = idcli_cas then press the Test button and everything displays perfect. Press ok.
    Then, we position the cursor inside the corresponding cell of the new Name column, go to Bindings, click on name_cli and then click on insert. The dynamic field is inserted into the table cell as expected, Save the page, and test in browser.
    The browser call the cases list but fails to display the values of the Name column. The Name column is simply empty.
    This issue creates a huge problem that makes our application too difficult to use.
    What are we doing wrong?
    Please help.
    Charles

    1.     Start transaction PM01, Create Infotype, by entering the transaction code.
    You access the Create Infotype screen.
    2.     Choose List Screen.
    3.     In the Infotype no. field, enter the four-digit number of the infotype you want to create.
    When you specify the infotype number, please remember to enter any leading zeros.
    4.     In the Screen Number field, enter the screen number of the list screen you want to enhance.
    5.     Choose Create.
    The Dictionary: Initial screen appears:
    6.     Create the list screen structure.
    7.     Choose Activate.
    8.     Return to the Enhance List Screen in the Enhance Infotypes transaction (PM01).
    9.     Choose Create All.
    The additional fields are displayed on the list screen, however, they contain no data.
    The fields can be filled in the FORM routine FILL-LISTSTRUCT in the generated program ZPnnnn00. The FORM routine is called for each data record in the list.
    Structure ZPLIS is identified when it is generated with a TABLES statement in the program ZPnnnn00.
    The fields can be filled from the Pnnnn structure or by reading text tables.

  • Print preview in abap list format

    Dear All
    I am facing a problem with the print preview.
    When i am clicking on print preview button the system is displaying the output in a abap list format.
    but when i m taking the print it is coming correctly.
    The out put format is different in the print preview where as when i am taking the output it is coming correctly.
    Pls help me out on this.

    Please check this answered link:
    Invoice print preview defaults to ABAP List View

Maybe you are looking for