Duplicate binding of selection menus

I have 3 'selection lists' within a cfform type=html (AJAX)
that are pulling the same data. One in the search area of the form,
a second in the edit area not near the first, allowing the user to
select a new option and a third on a seperate tab in an area where
they can edit the selection list (here there is also an autosuggest
to a slightly different query). All these are actually within the
same form. Is there a better approach assuming they must be in
different areas (e.g., a way to bind the other 2 select menus to
the first to reduce trips back to the data or maybe a better
presentation concept).
1) Search Selection:
Document Type: <cfselect name="strdoctype"
id="strdoctype" display="diadoctypename" selected="#intdoctype#"
bindattribute="diadoctypekey"
bind="cfc:#strcomponentpath#.readdiadoctypename()"
bindonload="true" style="width:270px; font-size:xx-small" />
2) Edit record field value:
Document Type: <cfinput type="text"
name="editdiadoctypenameText" id="editdiadoctypenameText"
readonly="True" required="No" bind="{searchGrid.diadoctypename}"
style="width:350px;font-size:xx-small" disabled="true" />
or change it: <cfselect name="editdiadoctypename"
id="editdiadoctypename" display="diadoctypename"
bindattribute="diadoctypekey"
bind="cfc:#strcomponentpath#.readdiadoctypename()"
bindonload="true" style="width:350px;
font-size:xx-small;display:inline" />
3) Show what is there and then allow to Add value to
selection list field with autosuggest to avoid dups:
<span style="float:left">Current Document
Types: </span>
<cfselect name="readEditablediadoctypename"
id="readEditablediadoctypename" display="diadoctypename"
bindattribute="diadoctypekey"
bind="cfc:#strcomponentpath#.readdiadoctypename()"
bindonload="true" style="width:375px; font-size:xx-small" />
<br clear="left" />
<span style="float:left">Add a new Document
Type: </span>
<cfinput type="text" name="adddiadoctypename"
id="adddiadoctypename"
autosuggest="cfc:#strcomponentpath#.readSuggestdiadoctypename({cfautosuggestvalue})"
autosuggestminlength="1" typeahead="no"
style="width:375px;font-size:xx-small; margin-bottom:7em" >

Karri,
I just want to have the authorization role name entered in my start form as input for my method.
Scenario:
The user runs the start transaction and enters a authorization role name in the field Then he starts the workflow and transaction PFCG automatically starts as next step for initiator. Now i want the authorization role name appeare in PFCG.
My container element for start forms is ZAGR_FORM and refers to a dictionary table with same name containing the field AGR_NAME. My method is a self defined method of BO-subtype Z_ROLE being delegated from business object 'ROLE' containing key field AGR_NAME of table ZAGR_FORM.
In the step container i can't bind the element ZAGR_FORM to '_Wi_Object_ID' to have the effect i want. The error meassege is
"An object compatible with 'BO.Z_ROLE' was expected as the source expression."
The same message also during creation of a container operation.
Can it be solved by modifiing the program of method?
Here is the generated code:
"BEGIN_METHOD ZPFCG CHANGING CONTAINER.
  CALL TRANSACTION 'PFCG' AND SKIP FIRST SCREEN.
END_METHOD."
I hope this helps you for more details.
Regards
Mehran
Edited by: Mehran Fardisfar on Jul 9, 2010 8:36 AM
Edited by: Mehran Fardisfar on Jul 9, 2010 8:48 AM

Similar Messages

  • Exchange 2013 - Duplicate Binding for EWS

    Hi there,
    on our Exchange 2013 server we find that Outlook and OWA are both working fine. Mac users can't connect. This seems to be related to the following error [sorry for the Dutch language]:
    Basically it complains that an endpoint is already bound to the URI.
    WebHost failed to process a request.
     Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/34026242
     Exception: System.ServiceModel.ServiceActivationException: De service /EWS/exchange.asmx kan niet worden geactiveerd als gevolg van een uitzondering tijdens de compilatie. Het uitzonderingsbericht is: Er is reeds een bindingsexemplaar gekoppeld aan luister-URI
    https://bilbo.ourdomain.loc:444/EWS/Exchange.asmx/http. Als twee eindpunten dezelfde LuisterURI willen delen, moeten ze ook hetzelfde bindingsobjectexemplaar delen. De twee conflicterende eindpunten zijn opgegeven in AddServiceEndpoint()-aanroepen, in een
    configuratiebestand, of in een combinatie van AddServiceEndpoint() en configuratiebestand. . ---> System.InvalidOperationException: Er is reeds een bindingsexemplaar gekoppeld aan luister-URI https://bilbo.ourdomain.loc:444/EWS/Exchange.asmx/http. Als twee
    eindpunten dezelfde LuisterURI willen delen, moeten ze ook hetzelfde bindingsobjectexemplaar delen. De twee conflicterende eindpunten zijn opgegeven in AddServiceEndpoint()-aanroepen, in een configuratiebestand, of in een combinatie van AddServiceEndpoint()
    en configuratiebestand. 
       bij System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost)
       bij System.ServiceModel.ServiceHostBase.InitializeRuntime()
       bij System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
       bij System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       bij System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity)
       bij System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
       --- Einde van intern uitzonderingsstackpad ---
       bij System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
       bij System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
     Process Name: w3wp
     Process ID: 8320
    The IIS Manager has two sites ('Default Web Site', 'Exchange Back End').
    For the Default Site only the bindings *:80, *:443, 127.0.0.1:80, 127.0.0.1:443 are enabled.
    For the Exchange Back End only the bindings *:81, *:444 are enabled
    There are no other sites. 
    I have tried searching the config files by doing:
    PS C:\inetpub> Get-ChildItem . -include *.config -rec | select-string -pattern "444"
    This does give files under C:\inetpub\history and C:\inetpub\temp but I don't know [given the history/temp] names if I should look further here.
    I have also looked at
    PS C:\windows\system32\inetsrv> Get-ChildItem . -include *.config -rec | select-string -pattern "444"
    This returns only a single line in config\applicationHost.config which matches what I see in the IIS Manager GUI.
    Where else can I search to find the duplicate binding?
    Eljakim

    Okay, after a couple of nights of trouble shooting I found the solution.
    In the web.config file under Exchange\ClientAccess\exchweb\ews somehow the following information had appeared:
    <services>
    <service name="Microsoft.Exchange.Services.Wcf.EWSService" behaviorConfiguration="EWSServiceBehavior">
    <!-- For streamed transfer mode, we need a different endpoint address with /s/. -->
    <endpoint address="http" behaviorConfiguration="MultiReceive" binding="webHttpBinding" bindingConfiguration="EWSStreamingNegotiateHttpBinding" name="Https" contract="Microsoft.Exchange.Services.Wcf.IEWSStreamingContract" />
    <endpoint address="http" behaviorConfiguration="MultiReceive" binding="webHttpBinding" bindingConfiguration="EWSStreamingNegotiateHttpsBinding" name="Http" contract="Microsoft.Exchange.Services.Wcf.IEWSStreamingContract" />
    <endpoint address="http" behaviorConfiguration="MultiReceive" binding="customBinding" bindingConfiguration="EWSAnonymousHttpBinding" name="Https" contract="Microsoft.Exchange.Services.Wcf.IEWSContract" />
    <endpoint address="http" behaviorConfiguration="MultiReceive" binding="customBinding" bindingConfiguration="EWSAnonymousHttpsBinding" name="Http" contract="Microsoft.Exchange.Services.Wcf.IEWSContract" />
    <endpoint binding="customBinding" bindingConfiguration="EWSWSSecurityHttpBinding" contract="Microsoft.Exchange.Services.Wcf.IEWSContract" address="http" />
    <endpoint binding="customBinding" bindingConfiguration="EWSWSSecurityHttpsBinding" contract="Microsoft.Exchange.Services.Wcf.IEWSContract" address="http" />
    </service>
    <service name="Microsoft.Exchange.UM.ClientAccess.UMWebService" behaviorConfiguration="UMServiceBehavior">
    <endpoint address="http" behaviorConfiguration="MultiReceive" binding="customBinding" bindingConfiguration="UMLegacyHttpBinding" contract="Microsoft.Exchange.Services.Wcf.IUM12LegacyContract" />
    <endpoint address="http" behaviorConfiguration="MultiReceive" binding="customBinding" bindingConfiguration="UMLegacyHttpsBinding" contract="Microsoft.Exchange.Services.Wcf.IUM12LegacyContract" />
    </service>
    </services>
    The endpoint addresses are wrong in this file. I compared the endpoints to a config on another server and fixed the issue by changing the services to:
    <services>
    <service name="Microsoft.Exchange.Services.Wcf.EWSService" behaviorConfiguration="EWSServiceBehavior">
    <!-- For streamed transfer mode, we need a different endpoint address with /s/. -->
    <endpoint address="s" behaviorConfiguration="MultiReceive" binding="webHttpBinding" bindingConfiguration="EWSStreamingNegotiateHttpsBinding" name="Https" contract="Microsoft.Exchange.Services.Wcf.IEWSStreamingContract"/>
    <endpoint address="s" behaviorConfiguration="MultiReceive" binding="webHttpBinding" bindingConfiguration="EWSStreamingNegotiateHttpBinding" name="Http" contract="Microsoft.Exchange.Services.Wcf.IEWSStreamingContract"/>
    <endpoint address="" behaviorConfiguration="MultiReceive" binding="customBinding" bindingConfiguration="EWSAnonymousHttpsBinding" name="Https" contract="Microsoft.Exchange.Services.Wcf.IEWSContract"/>
    <endpoint address="" behaviorConfiguration="MultiReceive" binding="customBinding" bindingConfiguration="EWSAnonymousHttpBinding" name="Http" contract="Microsoft.Exchange.Services.Wcf.IEWSContract"/>
    <endpoint binding="customBinding" bindingConfiguration="EWSWSSecurityHttpBinding" contract="Microsoft.Exchange.Services.Wcf.IEWSContract" address="wssecurity"/>
    <endpoint binding="customBinding" bindingConfiguration="EWSWSSecurityHttpsBinding" contract="Microsoft.Exchange.Services.Wcf.IEWSContract" address="wssecurity"/>
    </service>
    <service name="Microsoft.Exchange.UM.ClientAccess.UMWebService" behaviorConfiguration="UMServiceBehavior">
    <endpoint address="" behaviorConfiguration="MultiReceive" binding="customBinding" bindingConfiguration="UMLegacyHttpsBinding" contract="Microsoft.Exchange.Services.Wcf.IUM12LegacyContract"/>
    <endpoint address="" behaviorConfiguration="MultiReceive" binding="customBinding" bindingConfiguration="UMLegacyHttpBinding" contract="Microsoft.Exchange.Services.Wcf.IUM12LegacyContract"/>
    </service>
    </services>

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • I have 3 dynamic select menus in form but when submit when error - selection is lost

    Hi does anybody know how to make these select menus stay
    other than using javascript?
    I have looked on the internet for a looooong time for this
    and have no further knowledge.
    I can however get it to stay selected in an update record but
    not in an insert record. I have tried changing the recordset but it
    doesn't work.....
    Help please it is frustrating...........especially for users
    of the form I want them to use...........

    Thanks for your reply.
    I don't use javascript and the error checking I use is php.
    The menus I use are quite large so I have placed them
    dynamically within the form:<select name="stateCode"
    class="textarea">
    <?php
    do {
    ?>
    <option value="<?php echo $row_state['code']?>"
    ><?php echo $row_state['stateCode']?></option>
    <?php
    } while ($row_state = mysql_fetch_assoc($state));
    ?>
    </select>
    There are three of these, one for location, one for category
    and one for industry.
    They aren't connected for a series of dropdowns, just in the
    form.
    Can I please ask you about the <?=$option1;?> I have
    seen this in other forms.
    I was wondering wouldn't you need to have <?php echo
    .$option1;?>.
    Still learning about this fabulous php. I have left it for a
    while do learn other things and now am trying to catch up where I
    left off.
    I don't understand the difference between having
    <?=......?> and <?php echo.....?>
    I have seen some forms use e.g. <?=$add;?> in a
    textarea or checkbox where $add is the variable for error checking.
    Thanks again for your help.

  • Some of my scenes selection menus won't turn or play sound.

    My main menu and the first scene selection menu has motion and sound, but the rest of the scene selection menus do not turn or play sounds (music).  How can I get them to work?

    First create a disk image of the project and see if those menus work as expected when played with DVD Player on your Mac.  If they do then the problem lies in the burning process.
    Follow the workflow described below to help assure the best quality disk possible:
    Once you have the project as you want it save it as a disk image via the  File ➙ Save as Disk Image  menu option.  This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image and launch DVD Player and play it.  If it plays OK with DVD Player the encoding was good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • Bind calendar selection to a string

    Is it possible to bind the selected date of the calendar component to a string instead of a date ?
    The reason I need this is that I have a dynamic form and the input can be a drop down, text box, text area, or calendar depending on what the client asks for. I bind each of these to the same String but only render one of them per form. In order to allow the use of the calendar I need it to be bound to the same variable as the others.
    Thanks

    Yup, the built-in calendar component in Creator 2 could be improved. I've written a new prototype popup calendar that I think is better, but it hasn't been nicely packaged up into a complib yet. It's on my TODO list. You can see a screenshot of the prototype calendar at http://blogs.sun.com/roller/page/edwingo?entry=component_authoring_for_creator.
    The code is available from java.net in the bpcatalog CVS tree and you can build a complib from the "ui" subdirectory of that tree. There may be a workaround for the built-in component, but it'll take some work probably.
    -Edwin

  • BI Adm Cockpit - Selection menus in the portal

    Hi Experts.
    We have just enabled BI Administration Cockpit and its techincal content, in our BI7 system (SPS16). We are accessing the BI Adm. Cockpit via our portal and most things work fine.
    We do however have a problem with the menus of the left hand side (for instance in BI Usage Statistics - BI Application Usage Statistics, the menu where you choose Web template and/or workbook), the problem is that when we have made our selection and clicked Submit, nothing happens. If we reload the page, then the selection is taken into concideration, but we get a timeout in the menu where we chose web template/workbook.
    The error message is the following:
    The URL http://<server>:<port>/sap/bc/webdynpro/sap/RSTC_SELECT_0P_SYSID//~ucfLOADING was not called due to an error.
    The following error text was processed in the system BIS : User session (HTTP/SMTP/..) closed after timeout
    and some more un-usefull text. Nothing is logged in ST22 or SM21. We have read the note 882548, which seem to be related, but this happens after 5 sec (which I do not think can be considered a "long time" as stated in the note).
    Does anybody have any idea about how to resolve this problem?
    Thank you in advance,
    Mikael

    The whole menu seem to be quite immature, so we decided to customize this part instead, thus getting rid of the problem.
    BR Mikael

  • Problem - Creating a Dynamic LOV using duplicate value in select statement

    I am trying to create a Dynamic LOV by attempting to follow a pattern similar to the following:
    select shop_name d, shop_id r
    from shops
    order by 1
    However, I want to use the shop_name twice as in the following because I do not have any other unique identifier available such as a shop_id to associate with the shop name:
    select shop_name d, shop_name r
    from shops
    order by 1
    But I get an error where I am not allowed to duplicate the shop_name in the select statement. I read somewhere on this forum where it can be done but I can't find exactly how.
    Can someone tell or show me how to accomplish this?
    Thanks in anticipation for your answer.
    Thanks,
    Ric

    Ric,
    I just tried to do this on APEX 3.0, and it worked just fine with this SQL:
    select ename d, ename r from emp order by 1Perhaps you could put an example on apex.oracle.com or specify the error message that you're getting.
    So as long as you have uniquely aliased both columns, this should not present a problem.
    Thanks,
    - Scott -

  • Insert into a table excluding duplicates of a selected column

    I have mytable:
    IDNO
    Item
    Date
    Level
    1
    X24
    12/23/13 10:41
    22996
    2
    X24
    12/23/13 10:41
    22996
    3
    X24
    12/23/13 9:21
    23256
    4
    X24
    12/23/13 9:21
    23256
    5
    X24
    12/23/13 9:22
    23256
    6
    X24
    12/23/13 9:22
    23256
    7
    X24
    12/23/13 9:22
    22916
    that is a result of INSERT i.e.,
    INSERT INTO myTABLE(Item,[Date],[Level])
    values('X24','12/23/13 :22','22916')
    I want the INSERT to exclude the duplicate level defined as the previous level in a selected column [Level]. This would avoid having to 'view' the table using:
    SELECT
    i.IDNO,i.[Date],i.[Level]
    FROM
    mytable
    i
    INNER
    JOIN
    mytable
    d
    ON
    d.IDNO
    =
    i.IDNO-1
    WHERE
    i.[Level]
    <>
    d.[Level]
    IDNO is an identity column.
    How can this INSERT be achieved without the overheads? 

    Quite helpful comments particularly the ISO- 11179 and the design elements that can prevent the problem in the first instance. My apologies with regards to my impolite post omitting the DDL.  It is a small procedure and [Date] and [Level] can be accommodated
    by the server but are bad habits. My efforts to control the data input were in vain as the data was not from a software conducive to such controls. Because of the high frequency volume of the data, (suggested by the time-stamps with milliseconds cut), any
    effort to have 'The data... cleaned in a presentation/input layer ' would be futile.  The suggestions of  yourself
    and Erland Sommarskog, SQL Server MVP, [email protected], of a UNIQUE constraint to deal with the problem
    underscores the importance of design even in the 'smallest' of procedures. 
    This worked:
    drop table Foobar
    CREATE TABLE Foobar
    (item_name CHAR(5) NOT NULL, 
     foo_timestamp DATETIME2(0) NOT NULL
      CHECK (foo_timestamp 
        = DATEADD(MINUTE, DATEDIFF(MINUTE, '2000-01-01', foo_timestamp),
         '2000-01-01')),
     water_level INTEGER NOT NULL, -- why not be silly? 
     PRIMARY KEY (item_name,foo_timestamp, water_level));
    INSERT INTO Foobar
    VALUES
    ('X24', '2013-12-23 10:41:00', 22996), 
    -- ('X24', '2013-12-23 10:41:00', 22996), rejected by DDL!!
    -- ('X24', '2013-12-23 09:21:00', 23256), rejected by DDL!!
    ('X24', '2013-12-23 09:21:00', 23256), 
    ('X24', '2013-12-23 09:22:00', 23256), 
    -- ('X24', '2013-12-23 09:22:00', 23256), rejected by DDL!!
    ('X24', '2013-12-23 09:22:00', 22916);
    select *
    from Foobar
    item_name foo_timestamp
    water_level
    X24   2013-12-23 09:21:00
    23256
    X24   2013-12-23 09:22:00
    22916
    X24   2013-12-23 09:22:00
    23256
    X24   2013-12-23 10:41:00
    22996

  • Improper casting of bind in select list item?

    Hi all,
    In v3.1.2, I have a Select List item called P1_DEPT_FILTER where the LOV is:
    Number of Columns          1
    Display Null                Yes
    Null display value           -- ALL --
    Null return value
    List of values definition     select DNAME, DEPTNO from DEPT order by 1
    In a computation of another item on the same page, I have a SQL Query in the computation that contains a WHERE clause referencing the Select List item:
         AND (:P1_DEPT_FILTER IS NULL OR assigned_belt LIKE :P1_DEPT_FILTER)
    The problem is that sometimes the computation query returns no rows. Using APEX debug and also dumping the session variables shows P1_DEPT_FILTER to contain the expected value based on what I selected, so I created a LOGON TRIGGER on the owner's database for the owner's schema to fire up a SQL Trace with binds. The bind variables for the computation query show "dty=1", which is a (n)varchar2 type, instead of the expected "dty=2".
    My theory is that this improper casting is causing the computation to not work correctly, since running the computation query outside of APEX works perfectly.
    I'm missing something here, but am stuck on where to continue troubleshooting. Thoughts?
    TIA!
    Rich
    Edited by: socpres on Dec 17, 2008 4:02 PM (typo)

    Hey Scott,
    My apologies for not posting the exact SQLin my original post -- I tend toward obfuscation. In any case...
    That computation and it's slight derivatives appear on computations for P3_ID, P3_ID_NEXT, and P3_ID_PREV, as well as the "Get Next or Previous Primary Key Value" process. Since the value returned for the P3_CHAMPION_FILTER Select List is "8" when I attempt to filter, I altered the P3_CHAMPION_FILTER for each of the 4 SQLs similar to this:
    SELECT
        NVL(MIN(ID),0)
    FROM
        vip_project.project_table
    WHERE
        project_document IS NULL
        AND lead_team_charter_date IS NOT NULL
        AND (NVL(:P3_BELT_FILTER,0) = 0 OR assigned_belt = TO_NUMBER(:P3_BELT_FILTER))
    --     AND (NVL(:P3_CHAMPION_FILTER,0) = 0 OR assigned_champion = TO_NUMBER(:P3_CHAMPION_FILTER))
        AND (NVL(:P3_CHAMPION_FILTER,0) = 0 OR assigned_champion = 8)And it works perfectly! Without a filter on Champion, the correct 56 rows meeting the criteria are available for navigation on the form. If I select the item in the P3_CHAMPION_FILTER that corresponds to the value of "8", only the 3 rows for that "champion" column are navigable. Here's what debug says about the P3_CHAMPION_FILTER field when I select the "8" item:
    0.14: ...Session State: Saved Item "P3_BELT_FILTER" New Value="0"
    0.14: ...Session State: Saved Item "P3_CHAMPION_FILTER" New Value="8"
    0.14: ...Session State: Save "P3_ID" - saving same value: "1"
    And the Session State:
    100     3     P3_CHAMPION_FILTER     Select List     8     I
    So, in theory, changing the "TO_NUMBER(:P3_CHAMPION_FILTER)" to "8" should have no effect, but it does. Baffling!
    Thanks!
    Rich

  • Reg: Find Duplicate Records and select max number of record in Table

    Hi Guys,
         This is Nagendra, India.
    my table structure is
    id  name  tempid  temptime
    1  xxx     123        date
    1 yyy       128       date
    1 sdd     173       date
    14 ree    184      date
    14 fded   189     date
    This is Table Structure, totally 15000+ records is there.
    My Requirement is showing id and max(tempId) value.
    id  name  tempid  temptime
    1   sdd    173      date
    14  fded   189     date
    Like that, I want to show all record(after hiding duplicate values ) like that Could you please solve this issue.
    With Regards,
    Nagendra

    ; WITH numbering AS (
        SELECT id, name, tempid, temptime,
               rowno = row_number() OVER(PARTITION BY id ORDER BY tempid DESC)
        FROM  tbl
    SELECT id, name, tempid, temptime
    FROM   numbering
    WHERE  rowno = 1
    The WITH thing defines a Common Table Expression which is a locally defined view which only exists for this query. The row_number function numbers the rows, re-starting on 1 for every id, and they are numbering in falling tempid order. Thus, by
    selecting all rows from the CTE with rono = 1, we get the row with the highest tempid for each id.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Language Selection Menus

    Does anyone know how you can switch between languages when creating DVDs? I am wanting to offer a language selection option on a DVD and want the DVD to enter a menu with the selected language. I know that you can do it by duplicating the menus and having one version in one language and the other in the second language, but wanted to know if you can do something similar by using the language function that the manual suggests (which automatically selects the language according to the default language of the player). Any thoughts?

    Sure, I didn't mean it in a bad way (calling on Apple people)! Anyway, I sure hope you all are more experienced than me, otherwise we are all in trouble...
    I had read through all the threads and articles Drew linked to, but I was still confused.
    I was stuck on thinking that having the same menu in different language versions would be the way to go (chapter 10 in the manual, heading "Using Languages With Menus", kind of suggests this), instead of having multiple menu trees but each one in a separate language. I think it was referred to here
    http://discussions.apple.com/thread.jspa?messageID=1940865
    as layered menus, right? I mean the language drop down menu in the upper part of the menu viewer?
    SPRM0 wasn't even that important to me, I knew I couldn't rely on people having set the language in their player. I was going to have the user choose his subtitle language on a first setup menu (there is only one audio stream, english, in my project) and then set that [subtitle language] parameter once and for all with a script, using the Set System Stream command. That seemed to be working in the Simulator. I was hoping I could get by with just one menu tree (main, select track, more) and somehow be able to "set" a menu language parameter as well, and sort of stay in that language layer. But apparently it doesn't work that way. Do you understand what I'm saying?
    What is the idea behind having layered menus, if you can't really target them? Or can you? At least they never show up as separate language versions in my jump drop down menus.
    I know, RTFM. I've read through most of the manual, at least everything on menus as well as scripting, and I've scanned a lot of posts here, but I can't seem to find any info on that. I probably just got it all wrong somehow. Sorry about that, but thanks a lot for helping out! I really appreciate it.

  • Removing duplicate rows from SELECT

    Hi, I was wondering if there was any way to remove duplicate rows from a select statement.
    My table looks like this:
    CREATE TABLE CUS_ID_TO_PC_ID (
    CUSTOMER_ID VARCHAR2 (10) NOT NULL,
    PC_ID VARCHAR2 (25) NOT NULL,
    PASSWORD VARCHAR2 (25) NOT NULL,
    REG_DATE DATE,
    PRODUCT_DESC VARCHAR2 (25),
    EXPIRE_DATE DATE,
    SERIAL_NBR VARCHAR2 (12),
    LDAP_USER VARCHAR2 (200),
    COMMENTS VARCHAR2 (2000),
    PC_ID_5_4 VARCHAR2 (25),
    PC_ID_6_0 VARCHAR2 (25),
    PASSWORD_5_4 VARCHAR2 (25),
    PASSWORD_6_0 VARCHAR2 (25),
    PC_ID_6_1 VARCHAR2 (25),
    PASSWORD_6_1 VARCHAR2 (25),
    OPERATING_SYSTEM VARCHAR2 (20),
    STATUS VARCHAR2 (1)
    Basically, I want to retrieve all columns from the table but remove all duplicate variations of
    the pc_id/serial_nbr combinations.
    For example, given this data:
    PC_ID SERIAL_NBR CUSTOMER_NO
    1234567 AAA C345
    1234567 AAA C567
    3333333 BBB C456
    only the 1st and 3rd rows would be returned.
    Any ideas?

    Try something like this:
    select * from your_table yt
    where rowid in (select max(rowid)
    from your_tabel yt2
    where yt2.pc_id = yt.pc_id
    and yt2.serial_nbr = yt.serial_nbr);

  • Tables - Duplicate rows by selecting draging and copying

    On Dreameaver CS3 are you able to select rows and copy and
    drag them to create new rows with the data and images duplicated in
    the new rows.
    I'm transferring from GoLive to Dreamweaver and in working
    with tables you were able to select rows and holding down shift
    option were able to drag and copy the rows to form new rows, it was
    a timesaver on certain pages and I would just change the copy on
    the items after it was duplicated. Not sure if this is possible in
    the new Dreamweaver

    I don't think it's there in DW.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ricksef" <[email protected]> wrote in
    message
    news:f2kjbu$i3o$[email protected]..
    > On Dreameaver CS3 are you able to select rows and copy
    and drag them to
    > create
    > new rows with the data and images duplicated in the new
    rows.
    > I'm transferring from GoLive to Dreamweaver and in
    working with tables you
    > were able to select rows and holding down shift option
    were able to drag
    > and
    > copy the rows to form new rows, it was a timesaver on
    certain pages and I
    > would
    > just change the copy on the items after it was
    duplicated. Not sure if
    > this is
    > possible in the new Dreamweaver
    >
    >

  • Unable to bind the select() result to datagrid here........in air+sql connection

    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import flash.data.SQLConnection;
    import flash.events.SQLErrorEvent;
    import flash.data.SQLStatement;
    import flash.events.SQLEvent;
    import flash.filesystem.File;
    public function init():void
    // creating a connection and the database
    var conn:SQLConnection = new SQLConnection();
    conn.addEventListener(SQLEvent.OPEN, openHandler);
    conn.addEventListener(SQLErrorEvent.ERROR, errorHandler);
    var dbFile:File = File.applicationStorageDirectory.resolvePath("DBSample.db");
    conn.openAsync(dbFile);
    // putting the database creation into the open handler of conn object
    function openHandler(event:SQLEvent):void
        trace("the database was created successfully");
        var createStmt:SQLStatement = new SQLStatement();
        createStmt.sqlConnection = conn;
    var sql:String =
        "CREATE TABLE IF NOT EXISTS employees (" +
        "    firstName TEXT, " +
        "    lastName TEXT, " +
    createStmt.text = sql;
    createStmt.addEventListener(SQLEvent.RESULT, createResult);
    createStmt.addEventListener(SQLErrorEvent.ERROR, createError);
    createStmt.execute();
    function createResult(event:SQLEvent):void
        Alert.show("Table created");
    // table structure error handle
    function createError(event:SQLErrorEvent):void
        trace("Error message:", event.error.message);
        trace("Details:", event.error.details);
    // error handler for conn object
    function errorHandler(event:SQLErrorEvent):void
        trace("Error message:", event.error.message);
        trace("Details:", event.error.details);
    b2.addEventListener(MouseEvent.CLICK,select);
    // select function
    function select():void
    // select statement
    var selectStmt:SQLStatement = new SQLStatement();
    selectStmt.sqlConnection = conn;
    selectStmt.text = "SELECT firstName, lastName FROM employees";
    selectStmt.addEventListener(SQLEvent.RESULT, resultHandler);
    selectStmt.addEventListener(SQLErrorEvent.ERROR, errorHandler);
    selectStmt.execute();
    function resultHandler(event:SQLEvent):void
        var result:SQLResult = selectStmt.getResult();
        var numResults:int = result.data.length;
        for (var i:int = 0; i < numResults; i++)
            var row:Object = result.data[i];
            var output:String = "firstname: " + row.firstName;
            output += "; lastName: " + row.lastName;
            trace(output);
    b1.addEventListener(MouseEvent.CLICK,insert);
    // insert fuction
    function insert():void
    var insertStmt:SQLStatement = new SQLStatement();
    insertStmt.sqlConnection = conn;
    var sqls:String =
        "INSERT INTO employees  (firstName, lastName)  values(:firstName,:lastName)";
        //""   + "(firstName, lastName) " + "VALUES ('Bob', 'Smith')";
        insertStmt.parameters[":firstName"] = fname.text;
          insertStmt.parameters[":lastName"] = lname.text;
    insertStmt.text = sqls;
    insertStmt.addEventListener(SQLEvent.RESULT, insertResult);
    insertStmt.addEventListener(SQLErrorEvent.ERROR, insertError);
    insertStmt.execute();
    function insertResult(event:SQLEvent):void
        trace("INSERT statement succeeded");
        fname.text="";
        lname.text="";
    function insertError(event:SQLErrorEvent):void
        trace("Error message:", event.error.message);
        trace("Details:", event.error.details);
    ]]>
    </mx:Script>
    <mx:TextInput x="17" y="52" id="fname" />
    <mx:TextInput x="17" y="120" id="lname"/>
    <mx:DataGrid x="375" y="87" dataProvider="">
    <mx:columns>
    <mx:DataGridColumn headerText="fname" dataField="col1"/>
    <mx:DataGridColumn headerText="lname" dataField="col2"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Button x="58" y="207" id="b1" label="insert" />
    <mx:Button x="375" y="288" id="b2" label="select" />
    </mx:WindowedApplication>

    what about creating an ArrayCollection variable 
         [Bindable]
         private var myAC:ArrayCollection;
    then
    function resultHandler(event:SQLEvent):void
        var  result:SQLResult = selectStmt.getResult();
        myAC = ArrayCollection(result.data);
    and
    <mx:DataGrid dataProvider="{myAc}"/>

Maybe you are looking for

  • TABLE FOR ONE TIME VENDOR ADDRESS

    Hi I have created RFQ using one time vendor code. I have maintained the address of the vendor  against the one time vendor code. While printing of RFQ , program is not printing the address data maintained against one time vendor code. Can u suggest i

  • "Settings" has disappeared in Server Admin

    After upgrading both of my Xserve G4's from OS X Server 10.4.8 to 10.4.9, I noticed when Server Admin is connected to one of the servers, the "Settings" button when you select the server does not appear. I also don't get information back about the sy

  • HT5312 My apple account shut down how do I get it back up

    My Apple ID shut down how do u get it back up

  • Update on Nokia Belle Refresh (111.040.1511).

    Hello my mobile these days has been replaced. On it still is the version 111.030.0609. I want to update on Nokia Belle Refresh (111.040.1511). But there is no link to do that. Can anyone help me? Thanks in advance. Nobby

  • Approach ideas to a Numbers Problem: Analyzing iPhone records

    Hi; if you search for my other post re: Numbers, you'll see a screenshot of a file i started. What it is: it is the database record from AT&T for my iPhone account. I need to: - analyze each record so i can discard ones with zero cost (the data calls