Insert last id in flex

hi how do you do this
i have two tables need to insert into table 1 then insert
last id of table 1 to table two
i can write the cfml to do this but how to you encaspuslate
that in flex
for example using cfc wizard
i dont undertsand flex too well yet
so some help much appreciated

I've read that chapter, several times - and I must be blind. It always requires that I use my address book (which does not contain the names/addresses I'm currently trying to use). I don't see anywhere I can select a numbers file/column instead.
Can you point me to the area in the pages manual chapter 11 you are referring to?
As I mentioned, none of the names/addresses I am trying to use are in my address - nor do I want to add them (unless I must - and would then put them into their own directory - I tried this and failed).
I want to pull the "last name" from a numbers file and insert it into a letter, printing individual letters with "Dear Mr. <last name>, ........for 250 letters with a different name on each letter.

Similar Messages

  • Error while inserting record in Key-Flex Values Set interface

    Guys
    on 11.5.10.2
    Actually the problem is being occurred while inserting value in Job Flex Field Value set, we have created two segment for job key flex filed, No and name, it was working fine, but since we have uploaded bulk data via api "fnd_flex_values_pkg.INSERT_ROW" which was around 100 off record, but after completion this task system is not taking new value by Values set interface, and show message "APPS-FND-01206: You entered duplicate values or sequence of value that must be unique for every record",
    However, we insert the job number through api, it is inserting without error while
    Interface is not taking value and raise duplicate message error,
    which is APPS-FND-01206
    Please Advice.

    Thanks for supporting dunacan
    I have mentioned both of segment detail . please advice,
    1.One is Job No segment
    Segment1 number 10
    Required Check Yes
    Value set Info JOB_NO
    List Type : List of Values
    Security Type : No Security
    Format Validation : select number 7,0 and check on number only (0-9)
    Validation Type Independent
    2.One is Job Name segment
    Segment2 number 20
    Required Check Yes
    Value set Info JOB_NAME
    List Type : List of Values
    Security Type : No Security
    Format Validation : select CHAR 60 Validation Type Independent
    It was strange that how could it possible duplication value without having database,i am unable to find this issued,
    Edited by: oracle0282 on Jan 17, 2011 3:32 AM

  • Insert "Last Name" in pages?

    I have created a letter and would like to personalize it in the printing process by inserting "last name" on each letter - from a numbers or CSV file that contains "last name" column.
    I'm stumped. It seems it only allows me to insert fields from my address book.
    So I opened up my address book and attempted to drop my file with addresses into a new directory but it wouldn't allow that kind of action.
    Can someone help me? Surely this is possible?

    I've read that chapter, several times - and I must be blind. It always requires that I use my address book (which does not contain the names/addresses I'm currently trying to use). I don't see anywhere I can select a numbers file/column instead.
    Can you point me to the area in the pages manual chapter 11 you are referring to?
    As I mentioned, none of the names/addresses I am trying to use are in my address - nor do I want to add them (unless I must - and would then put them into their own directory - I tried this and failed).
    I want to pull the "last name" from a numbers file and insert it into a letter, printing individual letters with "Dear Mr. <last name>, ........for 250 letters with a different name on each letter.

  • How to insert last update date and user id to a form?

    Hi,
    I have created a form to enter data to a custom table.
    When a new record is created, I would like to keep track of the creation date, last update date and who (user id) enters the form.
    Can someone please help or point me to a right place to look for this information?
    Thank you!
    LC

    Create four new columns in your table called Created_On, Created_By, Last_Updated_On and Last_Updated_By.
    You can create a trigger to accomplish the rest:
    create or replace trigger "<name of your trigger>"
      before insert or update on "<name of your table>"
      for each row
    begin
      if inserting then
        :NEW.Created_On := sysdate;
        :NEW.Created_By := v('APP_USER');
      end if;
      if updating then
        :NEW.Last_Updated_On := sysdate;
        :NEW.Last_Updated_By := v('APP_USER');
      end if;
    end;Every time you'll add or modify data in that table, the trigger will automatically fill those fields.
    Regards,
    Mathieu

  • Automatically insert last revision date into footer

    Is there a way in Pages for the Mac to insert in the header or footer  a field that automatically updates the date on which the document was last saved with changes?  In MS Office this is easy to do with a variety of document data fields.

    Yes, thank you.  At first I didn't think this was quite the same as in MS Word because I vaguely remembered that Word updated the date only if you actually changed something.  But now as I reflect on it, I remember that the Word field is actually just the date the doc was last saved, which is equivalent to the Pages feature since, if you don't save the doc you opened, nothing changes.

  • Inserting/manipulating PDF in Flex 3 AIR project?

    I've read as much as I can find about dropping a PDF into my
    Flex 3 AIR project, but the information is scarce and I understand
    it's a very new (not fully baked) feature.
    Can anyone describe what component to use to drop a PDF into
    my AIR project? I need to manipulate the PDF from within AIR and
    would prefer not to abstract through the HTML Container object
    (e.g. calling JS through the HTML Container object).
    Thanks,
    Mike

    looks like your equipmentArray is empty. Put a breakpoint inside that method to see if there is any data.

  • Insert  last line in ALV

    HI,
    I have :
    FORM build_fcat  USING    p_it_fcat TYPE slis_t_fieldcat_alv.
      DATA: lwa_fcat TYPE LINE OF slis_t_fieldcat_alv.
      CLEAR lwa_fcat.
      lwa_fcat-fieldname = 'NUMERO'.
      lwa_fcat-ref_tabname = 'IT_IDOC'.
      lwa_fcat-do_sum = 'X'.
      lwa_fcat-outputlen = 5.
    lwa_fcat-key = 'X'.
      APPEND lwa_fcat TO p_it_fcat.
      CLEAR lwa_fcat.
      lwa_fcat-fieldname = 'DOCNUM'.
      lwa_fcat-ref_tabname = 'EDIDC'.
    lwa_fcat-key = 'X'.
      APPEND lwa_fcat TO p_it_fcat.
    The question is ...how can I write a last line as :
    "The total numbers : "variable"  ( yellow line)
    Thanks a lot

    Hi Mpm,
      In the Output table(table to be dispayed, not the field catelog table) you
    have to add a new field 'colour'   of type slis_color(this is itself a structure with 3 fields). Pass the color values in this structure for the last row of the Internal table
    & append that row. It will display the internal table in a color.
    Ex: if itab is your final internal table, then add a new field to it
    data:   begin of  itab,
              field1...
              field2..
             color type slin_color,
             end of itab.
    After filling the data into this itab, at the end you have to fill the color field with value. for Yello color, u have to give the values like this.
       itab-color-int = 0.
       itab-color-col = 3.   'For yellow color
      append itab.
    It will dispay the last row with yellow color.
    Thanks,
    Sreenivas

  • How to determine the last record inserted

    hi
    I have a table abc ( x number, y number, z date ) columns, there
    is no primary or unique key.
    I have been inserting values into it. there r some duplicate
    values to.
    but now I want to modify only the record inserted at the end.
    i.e
    if initially ABC is having
    x y z
    10 20 01-nov-2001
    11 20 01-nov-2001
    out of these records I want to change the value of x to 50 for
    the record which was inserted last or shall I say whose z is the
    greatest.
    I have been trying to do but what I see that the z column is not
    getting the time in increasing order. i.e even though I tried to
    display the dated in dd-mon-yyyy 24hh:mm:ss format still and I
    found that date is not consistant. the record I inserted first
    is have a much more value than the record I inserted last.
    please help...
    Sreekant

    rowid refers to the current position of the record; if the
    record has been moved (and there are any number of reasons why
    the database might shift a record) the order of rowid will not
    reflect the order of insertion.
    the only way to guarantee order of insertion is to timestamp the
    record. if I understand the original posting, you have been
    doing this.
    Now you should have been using SYSDATE. if you are saying that
    SYSDATE is giving you inconsistent results then you have a real
    problem: has somebody been tinkering with your database server -
    changing the system clock or something?
    Or are you using some other method to set the value for Z
    column? If so, what?
    rgds, APC

  • Rownum and last inserted row !!!!!!!!!!!!

    hi everybody,
    I am at present using oracle 8i Release 2. According to my knowledge and "Oracle 8 complete reference", when we use ROWNUM, the rownum is decided when the data is selected from the database. So when we use "order by" clause actually the rownum gets jumbled up.
    But to my surprise when i did something like this on my SQl prompt row num is acting very "innocent" :)
    <Code>
    1* select rownum, empno from emp
    SQL> /
    ROWNUM EMPNO
    1 7369
    2 7499
    3 7521
    4 7566
    5 7654
    6 7698
    7 7782
    8 7788
    9 7839
    10 7844
    11 7876
    12 7900
    13 7902
    14 7934
    15 1
    15 rows selected.
    SQL> select rownum, empno from emp order by empno;
    ROWNUM EMPNO
    1 1
    2 7369
    3 7499
    4 7521
    5 7566
    6 7654
    7 7698
    8 7782
    9 7788
    10 7839
    11 7844
    12 7876
    13 7900
    14 7902
    15 7934
    15 rows selected.
    </Code>
    As you can see rownum is ordered again .. m i missing something.
    B)
    Is it possible to get a row that was inserted last. Does oracle guarantee that data retrieval will be according to the time of inssertion !!
    Thanx in advance
    Chetan

    Rownum is decided afeter the complete execution of ur SQL statment (it includes ordey by, group by, where etc.).
    you can get the last inserted row using:
    select * from emp where rowid=
    (select max(rowid) from emp);
    Regards
    Riaz

  • Problem with case when statement, when doing an insert.

    Hi there,  I have written the following coding, that has got an issue, due to not being allowed null values to be inserted into a column on a table.
    ,Case 
    WHENCL.LocationISNOTNULLANDCL.[Floor]ISNOTNULLANDCL.RoomISNULLTHEN
    (SELECTTop1
    FL.FloorIDFROMPMIS.dbo.ConsentLocationF
    JOINtbBuildingBONB.BuildingNumber=F.LocationCOLLATELatin1_General_CI_AS
    JOINtbFloorFLONFL.BuildingID=B.BuildingID
    WHEREF.Location=CL.LocationANDFL.FloorName=CL.[Floor]COLLATELatin1_General_CI_AS)
    WHENCL.LocationISNOTNULLANDCL.[Floor]ISNOTNULLANDCL.RoomISNOTNULLTHEN
    (SELECTTop1
    R.RoomIDFROMPMIS.dbo.ConsentLocationF
    JOINtbBuildingBONB.BuildingNumber=F.LocationCOLLATELatin1_General_CI_AS
    JOINtbFloorFLONFL.BuildingID=B.BuildingID
    JOINtbRoomRONR.FloorID=FL.FloorID
    WHEREF.Location=CL.LocationANDFL.FloorName=CL.[Floor]COLLATELatin1_General_CI_ASANDR.RoomNumber=CL.RoomCOLLATELatin1_General_CI_AS)
    ENDasParentID
    I have written this case when statement above to find a ParentID.  I have got the case when statement to work individually, e.g. I get the correct records back.  However when I put it into a insert statement, as I want this ParentID to go
    into a column in a table I get an error with the following message. 
    Cannot insert the value NULL into column 'ParentID', table 'K2_Master_4_Test.dbo.tbConsentLink'; column does not allow nulls. INSERT fails.
    Can someone point me in the right direction, as to what I need to do to get this case when statement working?  Also no I cannot change the structure of the table to allow for null values either.  So I need to modifiy this one.

    The error is valid because your table column has 'not null' constraint and when your case expression does not satisfy  either of the 'when' conditions, it is returning NULL to the insert statement.
    you can get around this by defining a generic value. Simple Example
    select case when <<Column>>=1 then 'First' When <<Column>>=2 then 'Second' Else 'Last' End
    In this case, when column value is not 1 or 2, it will insert 'Last'.
    So, you have to do something like this...i.e add ELSE condition to your case..
    Hope it Helps!!

  • READ ME Before you decide to use IKM Oracle Multi-Insert in ODI 12c

    Ok, I've decided to write this to help out others who may be heading down this twisted mess and hope they can benefit from my pain.
    If using a sequence, do not use this IKM.
    The primary reason is Oracle's INSERT ALL statement is NOT atomic.  This means it WILL eventually give "ORA-02291: integrity constraint (XXX) violated - parent key not found" when it attempts to insert rows into the child table first.  To make it work, the constraint(s) in question must be disabled or set to deferred.  However, if either is done, there is no need to use the INSERT ALL because the multiple inserts can now be done in any order without error as long as everything is kosher at the time the constraint is enabled or set to immediate.  So the very fix for the IKM makes its use unnecessary.
    The second reason is it burns sequence numbers.  The IKM has a tendency of grabbing the filter (no matter how buried) right before it and putting it in the WHEN statement of the INSERT ALL.  This will burn sequence numbers because the rows are not filtered prior to being feed into the insert.  Not an issue for small rowsets, but for large rowsets or frequently run mappings the burn can be quite substantial.  This can be fixed by manipulating hints and/or the physical tab, but may result in poorer performance than just using a different IKM that doesn't burn sequence numbers.
    If you are doing anything else besides the multi-insert in the same mapping, beware!  This IKM does not allow ODI to respect the Target Load Order specified on the mapping.  I've found that it usually puts the multi-insert last in sequence.  It can be fixed by working on the physical tab, and making multiple targets but it also crashed several times when I was using it.  Additionally it resisted doing what seemed like simple tasks (like dragging multiple items at a time or trying to drag items off to the right of the execution units).  As I've said elsewhere, I think this is a bug and it will probably be fixed in the future.
    So my advice is avoid using this IKM at all costs.  Just disable or defer your constraints and use the other IKMs.
    BTW, if you want to defer the constraints, I've found you can set the On Connect command of the Physical topology to:
    ALTER SESSION SET CONSTRAINTS = DEFERRED
    and then select all the transactions in the list.  Trying it in the Begin Mapping Command of the mapping does not appear to work.
    Please let me know if I got anything wrong,
    Scott

    This is not the first instance of KM load strategy that has had the nasty side effect of burning sequence numbers - see the following:
    ODI Oracle Merge Incremental Update burns sequence values - jason's hyperion blog
    However, at least this one does now seem to have been modified to try and address this issue.

  • DateField from Flex 4 to PHP-mysql

    Problem :
    when inserting a record from flex to mysql the date is reduced by 1 day.
    changes the date to 1 days ahead..like flex"13/12/2009" to mysql"12/12/2009"
    in Flex m15.POSTON = pOSTONDateField2.selectedDate;
    PHP is genereated by Flash Builder ..no changes in that.
    $item->POSTON->toString('YYYY-MM-dd HH:mm:ss')
    mySQL works fine.
    Here is the interesting bit..when I change my computer location from UTC +10( Australia) to UTC + 0..it works fine.
    changed the PHP setting date.timezone ="Australia/Brisbane"
    date_default_timezone_set('Australia/Brisbane');
    stilll same result..
    Why dose this happen how do I fix it.
    Thanks
    K

    We've converted our Flex base Ultimate DataGrid (http://www.flexicious.com/Home/Ultimate) to HTML (http://www.htmltreegrid.com/Home/Demo) with a with EXT JS, DOJO, or Jquery flavors. We have built AS - JS code converters, as well as display list/event dispatcher API ported to JS and are assisting customers with migration, if you are interested.

  • ActiveX Objects in 6i

    I'm trying to get a MS Flex Grid to work in my Form. I put the ActiveX Control in the form, and set the OLE Class to "MSFlexGridLib.MSFlexGrid.1". I then right-clicked the control, selected "Insert Object" picked the flex grid from the list and clicked OK.
    The flex grid appears in the control, and I can modify it in design mode.
    However, when I run the app, the flex grid doesn't appear in the control.
    I'm obviously missing something here, but this is my first time with an ActiveX in a form, so I'm kinda in the dark here. Any help would be appreciated.
    Dave

    Hi friend ,
    This is just because the control is not properly registered , register the control + just ensure you are using a .ocx control not a .class
    Regards
    Rajesh Pai
    I'm trying to get a MS Flex Grid to work in my Form. I put the ActiveX Control in the form, and set the OLE Class to "MSFlexGridLib.MSFlexGrid.1". I then right-clicked the control, selected "Insert Object" picked the flex grid from the list and clicked OK.
    The flex grid appears in the control, and I can modify it in design mode.
    However, when I run the app, the flex grid doesn't appear in the control.
    I'm obviously missing something here, but this is my first time with an ActiveX in a form, so I'm kinda in the dark here. Any help would be appreciated.
    Dave

  • RE:Placing a file in one of many directories at run time

    Hi all,I posted a question yesterday evening with subject name as "Placing a file in one of many directories at run time".
    The link for that qestion is as follows:
    [Placing a file in one of many directories at run time;
    For that question I got a UDF as a reply.The UDF is as follows
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    String strDirectory = "Dir1"
    // here write your condition for dynamic Directory
    conf.put(key,strDirectory);
    return  strDirectory;
    Im having an double if condition in my scenario as follows:
    if (Integer.parseInt(TableName[0])==8 || Integer.parseInt(TableName[0])==10 || Integer.parseInt(TableName[0])==12 )
    if(CountryCode.equals("SG") || CountryCode.equals("MY") || CountryCode.equals("PH") || CountryCode.equals("TH") || CountryCode.equals("ID"))
    Now my question is  where to insert last two statements of UDF(conf.put(key,strDirectory);
    return  strDirectory;).
    Should I use both in if condition or any one in if condition.
    Can any one help me out in this case.
    Thanks in advance,
    Regards,
    Prajwal Kumar

    Hi Naluvala
    You can do this. It is pretty simple
    bstractTrace trace = container.getTrace();
    trace.addInfo("In Dynamic Configuration...............................:");
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    String ourSourceFileName = conf.get(key);
    trace.addInfo("Key Filename:"+ourSourceFileName);
    String valueOld = "/XD1_interfaces/messages/inbound/ref_payments";
    trace.addInfo("Key valueOld:"+valueOld);
    conf.put(key1,valueOld);
    return  ourSourceFileName; 
    Regards
    Abhishek
    *Please reward points if helpful***

  • SWF in XFA Form?

    Hi everybody,
    I'm trying to insert an SWF-file (Flex-Application) in a PDF-Form, which was created with LCD ES.
    Is it correct, that the only way to do this, is the new Flash-Tool in Acrobat 9?
    When I try it with Acrobat 9, I can't insert the SWF because of the security limitations created by LCD although I didn't specify any limitations. I can't change the document at all in Acrobat 9...how can I get the SWF inside the XFA form?
    Thanks in advance...

    Sorry,
    That is the closest I have seen for having multimedia in a XFA form.
    LiveCycle generates an XFA form, which is "wrapped" in a PDF structure. While an XFA form opens in Acrobat, it is fundamentally different from an AcroForm (Acrobat form) and a normal PDF.
    When you open an XFA form in Acrobat there are a lot of (normal) PDF functionality that is not available. Inserting a Flash movie is just one of them.
    There is no way around this. You will not be able to use the insert SWF command when in an XFA form.
    Good luck,
    N.

Maybe you are looking for