TextLineMirrorRegions - problems if more than one in a line

The example in the AS3.0 reference for TextLineMirrorRegions shows text elements that turn red when clicked. It works fine when each region falls on its own line. But if the line width is changed from 150 to 850, so both regions fall in the same line, only the first one turns red no matter which one you click.
I discoverd this while writing an html parser that would underline and activate lnks (eg <a href=...>text</a>) and found that if two links were on the same line, only one is underlined and no matter which one you click you go to the link of the first. So the underlining code pasted into the example code looks like this:
        var groupVector:Vector.<ContentElement>=new Vector.<ContentElement>  ;
    groupVector.push(new TextElement("one", blackFormat)); 
    groupVector[groupVector.length-1].eventMirror=myEvent;  // underline this element when added
    groupVector.push(new TextElement(" and ", blackFormat));
    groupVector.push(new TextElement("two", blackFormat));
    groupVector[groupVector.length-1].eventMirror=myEvent;
    groupVector.push(new TextElement(" and ", blackFormat));
    groupVector.push(new TextElement("three", blackFormat));
    groupVector[groupVector.length-1].eventMirror=myEvent;
    groupVector.push(new TextElement(".", blackFormat));
myEvent has a listener for "addedToStage" that looks like this:
private function myHandler(event):void {
    var line:TextLine=event.target as TextLine;
    var region:TextLineMirrorRegion=line.getMirrorRegion(myEvent);
    var selected:TextElement=region.element as TextElement;
    trace("underlining " + selected.text);
    var box:Sprite = new Sprite();
    box.graphics.lineStyle(1, color, 1);
    var color=0x000000;
    box.graphics.moveTo(region.bounds.x , region.bounds.y + region.bounds.height);
    box.graphics.lineTo(region.bounds.x + region.bounds.width, region.bounds.y + region.bounds.height);
    line.addChild(box);
With a narrow line width in the createLines function, everything works properly. But if it is widened, all three events dispatched reference the first mirror region so the word "one" gets underlined three times (the trace shows this.)
I've inspected textLine.mirrorRegions and all three are there. When the event is triggered, the region referenced always shows nextRegion as null. I can't see anything in the event that indicates which region to act on - what am I missing? On the mouse click event, I can determine the mouse position but I still can't figure out how to get the userData (which has the href url) from the right mirror region from that (unless, I guess, I iterate through all the line's regions and inspect their bounds - but that seems like a kludge, and still doesn't help with the addedToStage event.)

update: I have this working now my iterating through textLine.mirrorRegions on each call, but think there must be a better way. So for underlining:
            //var region:TextLineMirrorRegion=line.getMirrorRegion(dispatcher);
            for each (region in line.mirrorRegions) {
               if (region.mirror==dispatcher) {
                    // draw the sprite
Similarly for the link click, by looking at the region bounds and mouseEvent.localX.
Which means the underline sprite gets drawn three times for the single line of text. I could keep track of which ones have been drawn, I guess, but is there an easier path than iteration?

Similar Messages

  • Problem with more than one item in a track

    DVDSP 4.0.2 / OSX.4.2 I've built a DVD with several tracks. In each track I've placed several .m2v files, one after another. Finished build plays fine on my Mac and on one of my stand alone DVD players. But on another stand alone (Sony DVP-S360) something very odd happens. DVD begins to play just fine, but whenever it encounters a track with more than one source file, it will play until it gets to the spot in the program where the second source file is in the track and then it hangs and won't do anything. I'm just curious if anyone has any insight into this problem. Is it a DVDSP conflict thing with certain players? Or is this Sony player just not capable of playing a DVD built this way? Thanks.

    This page here:
    http://www.videohelp.com/dvdplayers.php?DVDnameid=428&Search=Search&
    has someone talking about finally getting burned DVDs to work, which suggests they previously had problems. I can't think why the track would not seem like continuous video, as if it had always been that way. Our Sony DVD player at work seems sensitive to higher data rates. What data rate did you use?

  • Problem deploying more than one session beans(one is ok)

    hi there,
    im trying to deploy an ear that contains ejbs(entities and session). application goes ok if deploy it with any number of entities being called by a single session, i mean if there is only session bean in the ejb-jar.xml. it is deployed ok and works fine.
    now when i try to add another session bean to the same ejb-jar.xml, it gives the following error during deployment.
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError
    that's all what it prints and aborts deployment. again, its important that it deploys any number of entity beans problem is with more than one sessions.
    thanx for any suggestions,
    amt

    Without seeing more details I don't understand why you would be running out of memory. We test applications with multiple session beans and we don't have that issue so I'm not sure why you would. Out of memory could be a bug in the deployment descriptor or the ear file or the JVM or the container or the deployment mechanism or maybe something else. That is the tough part of memory issue debugging at deployment time.
    I would try to see if increasing memory on both the JVM for OC4J and for admin.jar (assuming you are using standalone OC4J when you deploy) to see if maybe it is something transient that is causing this to occur. Something else you could try is to use 1.3.1 JDK and see if the problem goes away. Beyond that I would try to get the simplest case you could that repeats the error and then let's take a look at it.
    As for the exception hierarchy you describe, I don't see any particular problem with it at first look. Are you getting an error?
    Thanks -- Jeff

  • I am having problems emailing more than one photo at a time - please help!

    I would be very grateful if anyone can help. I have recently upgraded my old PowerBook G4 to Leopard 10.5.8, and since the upgrade I can't seem to send more than one image from iphoto at a time via mail. When I try, I get the message: " mail got an error: can't get paragraph 8 of content of outgoing message id 113491328. Invalid index." As I email a lot of images, it is a real pain only being able to send them one at a time. Can anyone help? With many, many thanks, Josh.

    It could have something to do with the sizes of the images you're trying to send.
    In the updated iPhoto, there's a selection for the size of the image. Try attaching the smallest size and see if that works for you.
    Here's a related couple of threads related to the error that I found on a popular search engine
    --> http://discussions.apple.com/thread.jspa?threadID=1666379
    --> http://discussions.apple.com/thread.jspa?threadID=1667250

  • Problem Using more than one patchset for Kernels

    I'm using vanilla 2.6.10 sources, with the -mh4 bluetooth patch, but I also want to apply the -as patch, as Arch has now adopted it for the standard kernel. So I have the following lines in the PKGBUILD:
    ##### Apply any patches here, if you set the patch variable above uncommment the following line
    patch -Np1 -i ../patch-2.6.10-as5 || return 1
    patch -Np1 -i ../patch-2.6.10-mh4 || return 1
    and I have the patches downloaded into the build directory. When I run makepkg, I get a HUNK FAILED error at the patching stage, and makepkg aborts. If I run it with the -mh4 patch only, it works OK.
    I realise this is nothing to do with the PKGBUILD, which I am sure will produce a uniquely-named package in about 30 minutes or so. Would you have any general advice regarding the use of more than one patch?

    yeah - i have done this with a few patchsets.  it's easy if you know what you are doing.
    i'll explain what is happening just in case you don't know - all patches are created based on the original code and work by matching existing code and replacing it with new code - if you apply one patch then another the first patch may alter some of the references that the second patch is try to match - so it fails.  what you need to do is to check where it has failed.
    it will say patching core.c or something and the it will say HUNK FAILED - that means the first patchset changed the core.c code and the second patch can't find what it is looking for.
    you then need to open the first patch - find out where core.c was changed and how and then open the second patch to see what it now needs to look for and then you'll then have to make new diffs to finish the process or eidt the old diffs (which is tricky but shorter)
    it ain't easy.  if you have more than a few hunk failed don't even bother - there is no guarantee that they patches will provide a build-able kernel.
    this whole process lies at the core of creating these massive patchsets - if you can combine both patchsets and get a successful build out of it you can consider yourself a novice kernel hacker. it can be done.
    i can't help much more than that i'm afraid - i'll ask cactus to split these two posts too a new thread for you

  • Problem :fetching more than one record

    In the below code ,i am receiving error that '"fetch returns more than record"..Is there any way to solve this problem
    declare
    cursor cur_test is
    select * from test_for_cursor where i=&i for update;
    r test_for_cursor%rowtype;
    r1 test_for_cursor.i%type;
    begin
    open cur_test;
    loop
    fetch cur_test into r;
    exit when cur_test%notfound;
    update test_for_cursor set i=r.i+2 where i=r.i returning i into r1;
    dbms_output.put_line(r1);
    end loop;
    close cur_test;
    end;

    Try this
    DECLARE
       CURSOR cur_test
       IS
          SELECT     *
                FROM test_for_cursor
               WHERE i = &i
          FOR UPDATE;
       r    test_for_cursor%ROWTYPE;
       TYPE r1_typ IS TABLE OF test_for_cursor.i%TYPE;
       r1   r1_typ;
    BEGIN
       OPEN cur_test;
       LOOP
          FETCH cur_test
           INTO r;
          EXIT WHEN cur_test%NOTFOUND;
          UPDATE    test_for_cursor
                SET i = r.i + 2
              WHERE i = r.i
          RETURNING i
          BULK COLLECT INTO r1;
          FOR j IN 1 .. r1.COUNT
          LOOP
             DBMS_OUTPUT.put_line (r1(j));
          END LOOP;
       END LOOP;
       CLOSE cur_test;
    END;Some correction.
    Message was edited by:
    michaels

  • Problem calling more than one instance of a dll from TestStand

    Hi,
    I've posted this message in the LabWindows forum a few days ago and haven't gotten any answer. I have made a DLL with the evaluation version of LabWindows 7.1 to connect to a Telnet server and perform various commands. This DLL is used with TestStand 3.1 . In TestStand, I have to connect simultaneously to the same Telnet server twice to start an application with both of those connection, with different parameters. I use Threads in TestStand to call the DLL and everything seems to be fine on that side. I enter the DLL at the same time for both threads but it seems that the 1st thread waits until the 2nd thread is at the end of the function before he executes the InetTelnetOpen command to start the Telnet session. Is it normal that we can only have one Telnet connection at a time?
    To see that I've placed some time stamps in a log. For the first Thread, almost a minute passes by between the first 2 time stamps but in the 2nd thread it take less than a second.
    Yet, they both wait for eachother to exit the DLL as the time stamp at the end of the execution is the same.
    I really need some enlightenment here ;-)
    Louis
    Attachments:
    TelnetTest.txt ‏3 KB

    Tiwi,
    The blocking that InetTelnetRunScript does is probably there for a reason. That method is probably not safe for multiple threads to call into at the same time. There is likely another way to do what you are trying to do that can be done in parallel. Perhaps with lower-level telnet function calls. I recommend you post to the CVI forum asking if there is another way to do what you are trying to do from multiple threads in parallel. This does not sound like a teststand issue. If you are calling into your dll from multiple testand threads, then the code in your dll function is being executed in parallel. The cvi function you are calling however, might not be reentrant (reentrant means able to be called by multiple threads in parallel) so it is making one of your threads block until the other completes. I suspect there is a different way to do what you are trying to do that will not have this problem, but I think the changes that you will need to make will be in the dll and not on the teststand side. I recommend you post to the CVI group and explain what you are trying to accomplish and see if they have a solution for you.
    Hope this helps,
    -Doug
    P.S. Each process on the Windows operating system (of which teststand is one) can only load one copy of any particular dll at a time. Also, loading multiple copies is not something that would be likely to solve the problem you are running into. One possibility is to use the call executable step type and create an executable that does what your dll function does, but that is probably not the best solution and might still end up blocking at the same location. The best solution is probably to use an alternate method of accomplishing whatever you are trying to do with the telnet function you are calling that does not have the limitations of that function.

  • Problem Making More Than One ALSB Call From BPM

    Hello,
    I have a very simple BPM process, with a begin node, two automatic nodes, and an end node.
    The first automatic node makes a call to a web service running on ALSB (ALSBServiceA)
    The second automatic node makes a call to a second web service running on ALSB (ALSBServiceB)
    What I find happening is that the second call is not being executed (ALSBServiceB)
    The web service invocation from the first node executes okay, but it seems that the invocation from the second service is just ignored.
    What is strange is that if I reverse the order of the nodes (e.g. executed ALSBServiceB before ALSBServiceA) then, the ALSBServiceB executes while ALSBServiceA does not.
    It appears that in any process there can only be -one- successful invocation to ALSB, with all others being ignored. This is a pretty significant showstopper for us.
    Is this a known issue/bug/feature?

    Gary,
    There is not much I can do from here without more specific details, but
    the problem you describe is quite odd.
    Try the following, it might help you diagnose it:
    - Check the audit trail for one of the instances, to make sure that both
    automatic activities were executed.
    - Check the engine logs, see if there was an exception in the process
    that's causing it to retry or abort the instances.
    - Try running both calls from one activity.
    If you can't find the cause, contact support. They will be able to help
    you.
    JC
    On Thu, 22 May 2008 10:05:06 -0300, Gary Ng wrote:
    Hello,
    I have a very simple BPM process, with a begin node, two automatic
    nodes, and an end node.
    The first automatic node makes a call to a web service running on ALSB
    (ALSBServiceA)
    The second automatic node makes a call to a second web service running
    on ALSB (ALSBServiceB)
    What I find happening is that the second call is not being executed
    (ALSBServiceB)
    The web service invocation from the first node executes okay, but it
    seems that the invocation from the second service is just ignored.
    What is strange is that if I reverse the order of the nodes (e.g.
    executed ALSBServiceB before ALSBServiceA) then, the ALSBServiceB
    executes while ALSBServiceA does not.
    It appears that in any process there can only be -one- successful
    invocation to ALSB, with all others being ignored. This is a pretty
    significant showstopper for us.
    Is this a known issue/bug/feature?--
    Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

  • Jsp session problem when more than one user is loging from the same machine

    Hi everybody,
    I have created a login page and i use to store user name and password using sessions. It is working fine for one user from one machine. But if two or more users logged from the same machine, all the users are getting the same data as of the last user logged in. Also if one user is logged out all user sessions on that machine are expiring (same as previous YAHOO problem).
    i think there is problem with session variables. The user name and password which i am storing in session variables are updating the same variables for all users. I think a seperate set of session variables are not creating for each user login.
    Can any body help me plz....
    regards,
    Prasanth.C

    First, you need to clear any cookies you are setting.
    Second, you need to synchronize some key data fetching blocks in your servlet.
    Third, ensure that you are invalidating a session properly.
    Don't ask me for more details. Google around for information ;)
    Richard.

  • Flash Player problem on more than one PC

    Hi,
    I'm a local IT admin and have an issue where four users keep having the same problem. What they say is that after a Windows update and reboot their Flash Player stops working. Uninstalling and reinstalling Flash Player fixes the issue, but they are not admins of their machines and so cannot do this. Windows updates are controlled by Group Policy here and I have no way of changing this either.
    However, going on what the users have said I am not entirely sure that Windows updates is the issue. I have a users PC to test today and my last test did not produce the same result as what the users are saying (more on that step below).
    Reading through some of the threads I think I have checked most solutions but please review what I have done and suggest anything I may have missed.
    OS - WinXP SP3
    Browser - IE8 32bit
    Visit www.adobe.com/software/flash/about/? - flash animation doesn not appear but it does show the version information (10.2.153.1)
    Is the Shockwave Flash object addon enabled - yes
    Disable all other addons
    Internet Security Zone - set to medium, also reset browser settings
    Disable AV and popup software
    Updated Java
    Kill bit reg change - the entry was there but deleting it made no difference
    Installed Firefox and the flash player works (yet to know if this will be affected by the same issue though)
    Flash Player file details in image below
    So as mentioned above my last step was to remove the latest Windows updates. There were two of them applied the previous night (KB2511455 & KB2508429). I uninstalled and reinstalled Flash Player (now at version 10.2.159.1), checked it worked and reapplied the Windows updates. Rebooted but Flash Player still works. So I am unsure as to what is causing the problem; I'm expecting it to happen again but I hope by then a solution will have been found.
    If you need me to test anything else, there are other machines that have the issue.
    Thanks and regards,
    Brad
    Here are the details of the Flash files installed...

    Thanks for your response, that file was indeed the problem. The shockwave object was looking at the older file, so I had to run the uninstaller, delete the file manually and then reinstall the latest version.
    There does seem to be some reoccuring issue on some of the workstations here in my office and I'm still not quite sure the reason for it.
    From my observations what seems to happen is this:
    - a new version of flash player is installed (the previous version files are left in the macromed directory)
    - all works OK for a while
    - then something triggers the Shockwave object to look at the older file and I have the instance where is says flash is installed but not working
    This has just happend on a workstation upgrading from 10.2 to 10.3 this past week.
    Can anyone think of a reason for this?

  • Problem in more than one table control in a BDT screen

    HI gurus,
    Please help, I have placed two table controls in a BDT screen (same screen), in Business Partner (BP). When  I put only one table control then that is working fine but when I place two table controls then problem starts, table don't get scrolled may times, please suggest, its urgent.

    Hi,
    Try to implement the notes
    800369
    789747
    768803
    768479
    754237
    And if this doesnt solve problem, then describe the problem in detail.
    Smita.

  • Problem sending more than one meaasage to server

    iam writing a program where a cleint connect to a server and sends an Message Object across (where my message object is a class with many attributes) so i break it down into a byte array and send it to the server... this is fine the server accepts it and display the masseage fine but
    when i try to send another message it doesnt recieve it, and the problem is not with the server as it will accept messages if i connect another client to it
    here is my code for sending the message.. any suggestions??????????????
         public void sendMessageToServer(Message message) throws java.io.IOException
              byte[] data;
              data = message.messageToBytes(message);
              out.write(data,0,data.length);
              out.flush();
    messageToBytes(message); simply break the message down into a byte array and returns it

    its fine i got it, i was waiting for a new client to connect before i wud accpet there message hance it working for different clients and not for the one already connected.... anyway back to work

  • Performance problem with more than one COUNT(DISTINCT ...) in a query

    Hi,
    (I hope this is the good forum).
    In the following query, I have 2 Count Distinct on 2 different fields of the same table.  Execution time is okay (2 s) with one or the other COUNT(DISCTINCT ...) in the SELECT clause, but is not tolerable (12 s) with both together in the query! I have
    a similar case with 3 counts: 4 s each, 36 s when together!
    I've looked at the execution plan, and it seems that with two count distinct, SQL server sorts the table twice before joining the results.
    I do not have much experience with SQL server optimization, and I don't know what to improve and how. The SQL is generated by Business Objects, I have few possibilities to tune it. The most direct way would be to execute 2 different queries, but I'd like
    to avoid it.
    Any advice?
    SELECT
      DIM_MOIS.DATE_DEBUT_MOIS,
      DIM_MOIS.NUM_ANNEE_MOIS,
      DIM_DEMANDE_SCD.CAT_DEMANDE,
      DIM_APPLICATION.LIB_APPLICATION,
      DIM_DEMANDE_SCD.CAT_DEMANDE ,
      count(distinct FAITS_DEMANDE.NB_DEMANDE_FLUX),
      count(distinct FAITS_DEMANDE.NB_DEMANDE_RESOL_NIV1)
    FROM
      ALIM_SID.DIM_MOIS INNER JOIN ALIM_SID.DIM_JOUR ON (DIM_JOUR.SEQ_MOIS=DIM_MOIS.SEQ_MOIS)
       INNER JOIN ALIM_SID.FAITS_DEMANDE ON (FAITS_DEMANDE.SEQ_JOUR=DIM_JOUR.SEQ_JOUR)
       INNER JOIN ALIM_SID.DIM_APPLICATION ON (FAITS_DEMANDE.SEQ_APPLICATION=DIM_APPLICATION.SEQ_APPLICATION)
       INNER JOIN ALIM_SID.DIM_DEMANDE_SCD ON (FAITS_DEMANDE.SEQ_DEMANDE_SCD=DIM_DEMANDE_SCD.SEQ_DEMANDE_SCD)
    WHERE
      ( ( DIM_MOIS.NUM_ANNEE_MOIS ) >201301
    GROUP BY
      DIM_MOIS.DATE_DEBUT_MOIS,
      DIM_MOIS.NUM_ANNEE_MOIS,
      DIM_DEMANDE_SCD.CAT_DEMANDE,
      DIM_APPLICATION.LIB_APPLICATION

    Here is the script, nothing original. Hope this helps.
    -- Fact table :
    -- foreign keys begin by FK_,
    -- measures to counted (COUNT DISTINCT) begin with NB_
    CREATE TABLE [ALIM_SID].[FAITS_DEMANDE](
        [SEQ_JOUR] [int] NOT NULL,
        [SEQ_DEMANDE] [int] NOT NULL,
        [SEQ_DEMANDE_SCD] [int] NOT NULL,
        [SEQ_APPLICATION] [int] NOT NULL,
        [SEQ_INTERVENANT] [int] NOT NULL,
        [SEQ_SERVICE_RESPONSABLE] [int] NOT NULL,
        [NB_DEMANDE_FLUX] [int] NULL,
        [NB_DEMANDE_STOCK] [int] NULL,
        [NB_DEMANDE_RESOLUE] [int] NULL,
        [NB_DEMANDE_LIVREE] [int] NULL,
        [NB_DEMANDE_MEP] [int] NULL,
        [NB_DEMANDE_RESOL_NIV1] [int] NULL,
     CONSTRAINT [PK_FAITS_DEMANDE] PRIMARY KEY CLUSTERED
        [SEQ_JOUR] ASC,
        [SEQ_DEMANDE] ASC,
        [SEQ_DEMANDE_SCD] ASC,
        [SEQ_APPLICATION] ASC,
        [SEQ_INTERVENANT] ASC,
        [SEQ_SERVICE_RESPONSABLE] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
     CONSTRAINT [AK_AK_FAITS_DEMANDE_FAITS_DE] UNIQUE NONCLUSTERED
        [SEQ_JOUR] ASC,
        [SEQ_DEMANDE] ASC,
        [SEQ_DEMANDE_SCD] ASC,
        [SEQ_APPLICATION] ASC,
        [SEQ_INTERVENANT] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_APPLICATION] FOREIGN KEY([SEQ_APPLICATION])
    REFERENCES [ALIM_SID].[DIM_APPLICATION] ([SEQ_APPLICATION])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_APPLICATION]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_DEMANDE] FOREIGN KEY([SEQ_DEMANDE])
    REFERENCES [ALIM_SID].[DIM_DEMANDE] ([SEQ_DEMANDE])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_DEMANDE]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_DEMANDE_SCD] FOREIGN KEY([SEQ_DEMANDE_SCD])
    REFERENCES [ALIM_SID].[DIM_DEMANDE_SCD] ([SEQ_DEMANDE_SCD])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_DEMANDE_SCD]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_INTERVENANT] FOREIGN KEY([SEQ_INTERVENANT])
    REFERENCES [ALIM_SID].[DIM_INTERVENANT] ([SEQ_INTERVENANT])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_INTERVENANT]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_JOUR] FOREIGN KEY([SEQ_JOUR])
    REFERENCES [ALIM_SID].[DIM_JOUR] ([SEQ_JOUR])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_JOUR]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_SERVICE_RESPONSABLE] FOREIGN KEY([SEQ_SERVICE_RESPONSABLE])
    REFERENCES [ALIM_SID].[DIM_SERVICE] ([SEQ_SERVICE])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_SERVICE_RESPONSABLE]
    GO
    -- not shown : extended properties
    -- One of the dimension  tables (they all have a primary key named SEQ_)
    CREATE TABLE [ALIM_SID].[DIM_JOUR](
        [SEQ_JOUR] [int] IDENTITY(1,1) NOT NULL,
        [SEQ_ANNEE] [int] NOT NULL,
        [SEQ_MOIS] [int] NOT NULL,
        [DATE_JOUR] [date] NULL,
        [CODE_ANNEE] [varchar](25) NULL,
        [CODE_MOIS] [varchar](25) NULL,
        [CODE_SEMAINE_ISO] [varchar](25) NULL,
        [CODE_JOUR_ANNEE] [varchar](25) NULL,
        [CODE_ANNEE_JOUR] [varchar](25) NULL,
        [LIB_JOUR] [varchar](25) NULL,
        [LIB_JOUR_COURT] [varchar](25) NULL,
        [JOUR_OUVRE] [tinyint] NULL,
        [JOUR_CHOME] [tinyint] NULL,
     CONSTRAINT [PK_DIM_JOUR] PRIMARY KEY CLUSTERED
        [SEQ_JOUR] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    ALTER TABLE [ALIM_SID].[DIM_JOUR]  WITH CHECK ADD  CONSTRAINT [FK_DIM_JOUR_DIM_ANNEE] FOREIGN KEY([SEQ_ANNEE])
    REFERENCES [ALIM_SID].[DIM_ANNEE] ([SEQ_ANNEE])
    GO
    ALTER TABLE [ALIM_SID].[DIM_JOUR] CHECK CONSTRAINT [FK_DIM_JOUR_DIM_ANNEE]
    GO
    ALTER TABLE [ALIM_SID].[DIM_JOUR]  WITH CHECK ADD  CONSTRAINT [FK_DIM_JOUR_DIM_MOIS] FOREIGN KEY([SEQ_MOIS])
    REFERENCES [ALIM_SID].[DIM_MOIS] ([SEQ_MOIS])
    GO
    ALTER TABLE [ALIM_SID].[DIM_JOUR] CHECK CONSTRAINT [FK_DIM_JOUR_DIM_MOIS]
    GO

  • Problem in more than one Routines in Pricing Procedure

    Hi,
    I have one pricing procedure. I have created two 971 & 981 routines (CalType) as per my requirements. The issue is that both the routines are not working correctly if they are assigned together is the pricing procedure. But if I assign any one of them only then they work work together.
    I tried putting the Break-Point in both the routines and found that the control is passed to the first routine i.e 971 only and not 981 when it's corresponding condition type is entered.
    I have activated both the routines nad executed the report RV80HGEN also.
    Kindly advise a solution. Thanks

    Hi Aparna,
        thanks for the reply.
        I am assigning different routines to different condition types. and according to the steps sequence 971 comes first and then comes 981. However i am able to go into Debug Mode in 971 but not in 981.
       I am not able to understand this sort of behaviour. Kindly elaborate your solution.
      Thanks.

  • Having problems passing more than one parameter with html:link tag

    Hi guys,
    for my web application I�m using Struts. I�ve got a database with user details. I would like to get users list and link to the details of each user. I wrote the code and everything is working fine only the users list is repeating as many times as users in the list.
    For ex: I have in the database User1, User2 and User3. I would like to have a result like:
    User1
    User2
    User3
    Instead of it I have the result like:
    User1
    User2
    User3
    User1
    User2
    User3
    User1
    User2
    User3
    What I�m doing wrong? Could somebody help me please?
    Thank you in advance
    There is a snippet of the code, which I�m using in jsp:
    <code>
    <logic:iterate id="root" name="user">               
                   <%
                        java.util.HashMap users = new java.util.HashMap();
                        params.put("user",root);
                        pageContext.setAttribute("usersName", users);
                   %>
                   <html:link name=" usersName " scope="page" page="/name.do">
                        <logic:iterate id="folder" name="user">
                             <bean:write name="folder" /><br>
                        </logic:iterate>
                   </html:link><br>
                   </logic:iterate>
    </code>

    Suggestion: next time you post code use the "CODE" button to put code tags around it. It formats much nicer that way :-)
    You have a nested loop structure here.
    <logic:iterate id="root" name="user">
      <%
        java.util.HashMap users = new java.util.HashMap();
        params.put("user",root);
        pageContext.setAttribute("usersName", users);
      %>
      <html:link name=" usersName " scope="page" page="/name.do">
        <logic:iterate id="folder" name="user">
          <bean:write name="folder" /><br>
        </logic:iterate>
      </html:link><br>
    </logic:iterate>Both loops iterate over your "user".
    Your first loop loops over each user.
    Then your second loop also loops over each user - hence you get number of users * number of users = 3 groups of 3.
    If you have 4 users, you would have 4 groups of 4.
    I only see you setting one parameter: "usersName" What other parameters do you need to pass?
    At a guess, the inner loop is unnecessary, and you want to write the users name as the text for the link, and also use it as a link parameter.
    <logic:iterate id="root" name="user">
      <%
        java.util.HashMap users = new java.util.HashMap();
        params.put("user",root);
        pageContext.setAttribute("usersName", users);
      %>
      <html:link name="usersName" scope="page" page="/name.do">
          <bean:write name="user" /><br>
      </html:link><br>
    </logic:iterate>

Maybe you are looking for

  • SNP Heuristic: Creation of purchase requisition

    Hi experts, we face following problem: heuristic creates purchase orders when there is no source of supply. Background: there is a forecast demand for a location product on a customer location without transport lane to the production plant due to fal

  • IMac will no longer startup, is my HDD corrupted?

    Hello, As a result of a problem i have bee totally unable to use my computer for anything and work has been extremely difficult. Recently I have been encountering a problem which occured occasionally when trying to turn off my imac in wich a grey scr

  • Exporting PDF's

    Hi folks I have a major issue and I don't think this will be resolved until there is an update but I wanted to ask if anyone knew the answer or has a workaround. In 'Numbers' I have created a useful spreadsheet to create quotes. Tb one is my quotatio

  • New 8 Core ( but just 4 for Logic ...obviously )

    Dears all, i've purchased a new 8 core. Obviously Logic can "see" only 4 processors. ( Obviously ) Any news about some patches or little update ?? Many thanks in advance -Anton Mac Pro 8 core/ G5 Dual 2x2 /G5 2.3Dualcore/Pbook 1Ghz/Ipod 5th   Mac OS

  • How to avoid db_recover "file size not a multiple of the pagesize" error?

    I am writing some backup and recovery scripts for a Berkeley DB application. I'm using the Oracle supplied db_hotbackup.exe and db_recover.exe executables (DB 4.5.20). My very first recovery unit test has resulted in the following error from db_recov