SMARTFORMS : add in loop an address dynamically

Hi all,
i loop on a table and i would like to add an address object, the number is dynamically so how can i pass it to the field adress number in general Attributes of my Address object ? I tried to add a field symbol but it don't work.
Cheers

Add the Address Node.
Press the button "Dynamic field values" next to the input box of the Address Number.
In the Address Number pass the variable which contains the Address number (i.e. ADRC-ADRNR). Like &WF_ADRNR&
Here WF_ADRNR  contains the value of the ADRC-ADRNR.
Regards,
Naimesh Patel.

Similar Messages

  • Smartforms: add a space before address information

    Hi All,
    In my smartform I have created a window with a border (option "Line With" - tab: "Output Options". Under this object I have created an address form type "Organizationa Address(1) and I have set "Use Street(S) as "Additional Address Specifications".
    Now my issue is about to obtain a space before all information showed by the address. This is to avoid information too close to the left border of the window. I tryed defining a text object before the address object, under my window definition but I did not received any effect.
    Any suggestion will be well appreciated. Many thanks in advance for your kind help.
    Regards,
        Giovanni
    Edited by: gio1234 on Oct 1, 2009 2:13 PM

    Hi Giovanni,
    You can get around this problem by creating another window, slightly larger than the one that currently contains the address node and use this to draw the border.
    Also, as you can assign the address directly to the page you could then get rid of your current window.
    Regards,
    Nick

  • Add ViewAttributes in ViewObject (VO) dynamically

    Hi OAF gurus,
    I have requirement like,In Isupplier ASN createpage i need to add GlobalAttribute1..5 fields from table po_line_locations_all.I am already extended the "PosAsnLineInfVO" and add the global_attributes to the VO .But i am not getting any output after personalization. Beacuse the seeded VO is created based on view RCV_Transactions_interface ,what were data we are seen in that page is not came from the seadedvo execution. Progamatically all the attributes are populate. when isupplier done any transition on that page then only data is available in RCV_Transactions_interface .So i am try to Add GlobalAttribute1..5 in ViewObject (VO) dynamically by extending the "PoAsnCreateCO" and write below code and tested i am successfully see data of global_attribute1 only in page.But i need to add dynamically global_attribute2..4 also in that page.please suggest may i write code wrong.Please help,
    is it possible add multipuleViewAttributes to ViewObject (VO) dynamically?
    package xxosk.oracle.apps.pos.asn.webui;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.pos.asn.server.PosAsnLineIntfVORowImpl;
    import oracle.apps.pos.asn.webui.PosAsnCreateCO;
    import oracle.jbo.RowSetIterator;
    import xxosk.oracle.apps.pos.asn.server.xxoskPosAsnLineInfVORowImpl;
    public class xxoskPoAsnCreateCO extends PosAsnCreateCO {
    public xxoskPoAsnCreateCO() {
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    pageContext.writeDiagnostics(this, "we are in extended co stating ", 1);
    OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
    Connection conn2 =(Connection) am.getOADBTransaction().getJdbcConnection();
    OAViewObject vo = (OAViewObject)am.findViewObject("PosAsnLineIntfVO");
    PosAsnLineIntfVORowImpl row=null;
    pageContext.writeDiagnostics(this, "PosAsnLineIntfVO object name "+vo, 1);
    if (vo != null)
    try {
    String l_att1 = vo.findAttributeDef("GAttribu1").toString();
    pageContext.writeDiagnostics(this, "dynamic attribute adding try block ", 1);
    catch (Exception exception)
    vo.addDynamicAttribute("GAttribu1"); //Adding ViewAttribute to VO
    vo.reset();
    vo.next();
    pageContext.writeDiagnostics(this, " dymanic attribute1 created", 1);
    if (vo != null)
    try {
    String l_att2 = vo.findAttributeDef("GAttribu2").toString();
    pageContext.writeDiagnostics(this, "dynamic attribute2 adding try block ", 1);
    catch (Exception exception)
    vo.addDynamicAttribute("GAttribu2"); //Adding ViewAttribute to VO
    vo.reset();
    vo.next();
    pageContext.writeDiagnostics(this, " dymanic attribute2 created", 1);
    if (vo != null)
    try {
    String l_att3 = vo.findAttributeDef("GAttribu3").toString();
    pageContext.writeDiagnostics(this, "dynamic attribute3 adding try block ", 1);
    catch (Exception exception)
    vo.addDynamicAttribute("GAttribu3"); //Adding ViewAttribute to VO
    vo.reset();
    vo.next();
    pageContext.writeDiagnostics(this, " dymanic attribute3 created", 1);
    if (vo != null)
    try {
    String l_att4 = vo.findAttributeDef("GAttribu4").toString();
    pageContext.writeDiagnostics(this, "dynamic attribute44 adding try block ", 1);
    catch (Exception exception)
    vo.addDynamicAttribute("GAttribu4"); //Adding ViewAttribute to VO
    vo.reset();
    vo.next();
    pageContext.writeDiagnostics(this, " dymanic attribute4 created", 1);
    if (vo != null)
    try {
    String l_att5 = vo.findAttributeDef("GAttribu5").toString();
    pageContext.writeDiagnostics(this, "dynamic attribute adding try block ", 1);
    catch (Exception exception)
    vo.addDynamicAttribute("GAttribu5"); //Adding ViewAttribute to VO
    vo.reset();
    vo.next();
    pageContext.writeDiagnostics(this, " dymanic attribute5 created", 1);
    if (vo != null)
    pageContext.writeDiagnostics(this, "PosAsnLineIntfVO object name "+vo.getRowCount(), 1);
    int lRowCount = vo.getRowCount();
    RowSetIterator yourIter = vo.createRowSetIterator("yourIter");
    if(lRowCount > 0)
    yourIter.setRangeStart(0);
    yourIter.setRangeSize(lRowCount);
    pageContext.writeDiagnostics(this, "before for loop ", 1);
    for (int i = 0; i < lRowCount; i++)
    String global1=null;
    String global2=null;
    String global3=null;
    String global4=null;
    String global5=null;
    row = (PosAsnLineIntfVORowImpl)yourIter.getRowAtRangeIndex(i);
    int localpoheaderid =Integer.parseInt(row.getPoHeaderId().toString());
    pageContext.writeDiagnostics(this, "getPoHeaderId "+localpoheaderid, 1);
    int localpolineid=Integer.parseInt(row.getPoLineId().toString());
    pageContext.writeDiagnostics(this, "getPoLineId "+localpolineid, 1);
    int locallocationid=Integer.parseInt(row.getPoLineLocationId().toString());
    pageContext.writeDiagnostics(this, "getPoLineLocationId "+locallocationid, 1);
    try
    pageContext.writeDiagnostics(this, "select try starting ", 1);
    String selquery="select pll.Global_attribute1 g1,pll.Global_attribute2 g2,pll.Global_attribute3 g3,pll.Global_attribute4 g4,pll.Global_attribute5 g5 from PO_Line_locations_all pll where pll.po_header_id=:1 and pll.po_line_id=:2 and pll.line_location_id=:3";
    pageContext.writeDiagnostics(this, "after select ", 1);
    PreparedStatement stmt;
    stmt = conn2.prepareStatement(selquery);
    pageContext.writeDiagnostics(this, "select executed ", 1);
    stmt.setInt(1,localpoheaderid);
    stmt.setInt(2,localpolineid);
    stmt.setInt(3,locallocationid);
    pageContext.writeDiagnostics(this, "after where class etting ", 1);
    long starttime = System.currentTimeMillis();
    pageContext.writeDiagnostics(this, "starttime "+starttime, 1);
    for(ResultSet resultset = stmt.executeQuery(); resultset.next();)
    pageContext.writeDiagnostics(this, "select for loop ", 1);
    global1=resultset.getString(1);
    global2=resultset.getString(2);
    global3=resultset.getString(3);
    global4=resultset.getString(4);
    global5=resultset.getString(5);
    pageContext.writeDiagnostics(this, " global attribute1"+resultset.getString(1), 1);
    pageContext.writeDiagnostics(this, "global attribute2 "+resultset.getString(2), 1);
    pageContext.writeDiagnostics(this, "global attribute3 "+resultset.getString(3), 1);
    pageContext.writeDiagnostics(this, "global attribute4 "+resultset.getString(4), 1);
    pageContext.writeDiagnostics(this, "global attribute5 "+resultset.getString(5), 1);
    stmt.close();
    long endtime = System.currentTimeMillis();
    pageContext.writeDiagnostics(this, "endtime "+endtime, 1);
    catch(Exception exception)
    throw new OAException("Error in getting StandardPack,Primary Container, Secondary Container Details "+exception, OAException.ERROR);
    pageContext.writeDiagnostics(this, "before GAttribu1", 1);
    //Setting the calculated derived value in the newly created VO Attribute
    row.setAttribute("GAttribu1", global1);
    row.setAttribute("GAttribu2", global2);
    row.setAttribute("GAttribu3", global3);
    row.setAttribute("GAttribu4", global4);
    row.setAttribute("GAttribu5", global5);
    yourIter.closeRowSetIterator();
    // Through personalization i am already create item with ID:GlAttr1 , style :OAMessageStyledTextBean
    OAMessageStyledTextBean mst1= (OAMessageStyledTextBean)webBean.findChildRecursive("GlAttr1");
    pageContext.writeDiagnostics(this, "getting from page GlAttr1 "+mst1, 1);
    mst1.setViewUsageName("PosAsnLineIntfVO");
    mst1.setViewAttributeName("GAttribu1");
    pageContext.writeDiagnostics(this, "after GlAttr1", 1);
    // Through personalization i am already create item with ID:GlAttr2 , style :OAMessageStyledTextBean
    OAMessageStyledTextBean mst2= (OAMessageStyledTextBean)webBean.findChildRecursive("GlAttr2");
    pageContext.writeDiagnostics(this, "getting from page GlAttr2 "+mst2, 1);
    mst2.setViewUsageName("PosAsnLineIntfVO");
    mst2.setViewAttributeName("GAttribu2");
    pageContext.writeDiagnostics(this, "after GlAttr2", 1);
    // Through personalization i am already create item with ID:GlAttr3 , style :OAMessageStyledTextBean
    OAMessageStyledTextBean mst3= (OAMessageStyledTextBean)webBean.findChildRecursive("GlAttr3");
    pageContext.writeDiagnostics(this, "getting from page GlAttr1 "+mst3, 1);
    mst3.setViewUsageName("PosAsnLineIntfVO");
    mst3.setViewAttributeName("GAttribu3");
    pageContext.writeDiagnostics(this, "after GlAttr3", 1);
    // Through personalization i am already create item with ID:GlAttr4 , style :OAMessageStyledTextBean
    OAMessageStyledTextBean mst4= (OAMessageStyledTextBean)webBean.findChildRecursive("GlAttr4");
    pageContext.writeDiagnostics(this, "getting from page GlAttr4 "+mst4, 1);
    mst4.setViewUsageName("PosAsnLineIntfVO");
    mst4.setViewAttributeName("GAttribu4");
    pageContext.writeDiagnostics(this, "after GlAttr4", 1);
    // Through personalization i am already create item with ID:GlAttr5 , style :OAMessageStyledTextBean
    OAMessageStyledTextBean mst5= (OAMessageStyledTextBean)webBean.findChildRecursive("GlAttr5");
    pageContext.writeDiagnostics(this, "getting from page GlAttr1 "+mst5, 1);
    mst5.setViewUsageName("PosAsnLineIntfVO");
    mst5.setViewAttributeName("GAttribu5");
    pageContext.writeDiagnostics(this, "after GlAttr5", 1);
    }

    Hi,
    your question is not clear and thus hard to answer.
    I have 'Create form' with Application table from a VO. initially Createform should display the template of VO in Application table to insert new rows only.
    What does the sentence above mean? You create an ADF form from a View Object (this I understand). But what do you mean by +"template of VO in Application table"+ ?
    but when I click on 'Add Row' in Application table..the new entry is not coming
    Thought you were using an ADF form? (see how confusing your question is ?)
    Maybe this helps anyway: If you create new rows in a table, you don't use the Create but CreateInsert operation
    Frank

  • HT201342 How can I add an e-mail address to my existing icloud addresses?  I currently only use one and I would like to ad two more?

    How can I add an e-mail address to my existing icloud account?  I curently only use one of the three.

    Each iCloud account only has a single iCloud account.  If you want, you can add up to 3 alias addresses that will receive email in the same iCloud inbox, as explained here: http://support.apple.com/kb/PH2622.

  • Do I need to add Base Station MAC address to list?

    Hi, If I choose to use MAC address filtering on my Airport Extreme Time Capsule, do I need to add the wireless MAC address of the Base Station to the list of allowed MAC addresses???  I'd feel real bad if I set up a list, didn't include the base station's MAC address and then could never get in to the network again because I, in effect, locked myself out???  I doubt that address needs to be included but I would like some feedback on that.
    Second, does the one MAC address filter list apply to the Guest Network as well if I should choose to turn it on???  If that was the case, I would just turn off MAC address filtering why guests were present.
    thanks..  bob

    If I choose to use MAC address filtering on my Airport Extreme Time Capsule, do I need to add the wireless MAC address of the Base Station to the list of allowed MAC addresses???
    No. Timed Access would be for wireless devices....computers, mobile devices, printer, etc., that are connecting to the Time Capsule. The Time Capsule does not connect to itself in this regard.
    I'd feel real bad if I set up a list, didn't include the base station's MAC address and then could never get in to the network again because I, in effect, locked myself out???
    Sometimes, users lock themselves out by mistake by entering incorrect times for devices to connect, and they often forget that they can connect to the base station using an Ethernet connection and get back in that way.....since Timed Access only applies to devices that connect using wireless.
    does the one MAC address filter list apply to the Guest Network as well if I should choose to turn it on???
    Yes

  • How to add multiple e-mail addresses into my iPad Contacts?

    I just received an e-mail with 40 addresses in the distribution list. Now I want to add all of the addresses into my iPad Contacts. How can I do this in one operation rather doing each of the 40 addresses individually?

    Unfortunately you can't add all at once. But you save a lot of time by the copy/paste method (double-tap at a mail address, tap "copy", go to the "Contacts" app, enter the contact you want to paste the address in, tap "Mail address", then double tap again and tap "paste").

  • HT5361 How can I add a second email address to my existing email account.  I can't find out how to accomplish that.

    I have an exisitng email address but I need to create a more professional sounding email address for work.  I can't figure out how to do this.  I'm using OS X 10.8.4
    Thanks!

    If you mean you want to add a second email address to the Mac Mail app:
    Open Mail > Preferences > Accounts > Click the plus sign and enter the information
    If you mean you want to add an alias to your iCloud mail account:
    Go to https://www.icloud.com > sign in > Mail > Click the Gear on top right > Preferences > Accounts > Add an Alias (on bottom left)

  • HT5577 How can I add a rescue email address now?

    I didn't add it at the first day I created my apple ID account. I want to change the password but can't remember the answer of 2 personal questions.
    So now I am supposes to add my rescue email address to receive new password. But how can I do that now?
    Thank you in advance.

    You would need to contact Apple Support to help with resetting security questions

  • HT5312 How can I add a rescue email address

    How do I add a rescue email address. Have been in passwords and security but not getting the
    option to add a rescue email,

    Welcome to the Apple Community.
    You need to answer your security questions to add a rescue address, if you don't know these.
    If you don't know these you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

  • HT5312 how can i add a secure email address to my account if i don't know the answers to my security questions?

    how can i add a secure email address to my account if i don't know the answers to my security questions?

    I don't know either! I NEED HELP CAUSE I PUT MONEY INTO IT and they ask for my SECURITY QUESTION ANSWERS! When I try to change my security questions, which i forgot, they askk me for the ANSWERS TO MY SECURITY QUESTIONS!!!!!!!!!! I CAN"T DO IT IF I DON"T KNOW IT!

  • How can i add a rescue email address?

    How can i add a rescue email address? i have followed the information on the apple page but what they suggested didn't work/

    Do you remember the answers to your security questions ? If you do then log into your account on http://appleid.apple.com, select the Password And Security section of your account's page, answer the two questions that show and you can then add a rescue email address : http://support.apple.com/kb/HT5620
    If you don't remember your answers then you will have to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the above steps to add a rescue email address for potential future use

  • I am trying to add my sons email address to our family apple id but it says that it already associated with another apple id. How can i find out what the apple id is and take his email address off that one?

    I am trying to add my sons email address to our family apple id but it says that it already associated with another apple id. How can i find out what the apple id is and take his email address off that one?

    You may be able to find your Apple ID at Look up your old and forgotten Apple ID

  • Can I add an Icloud email address, if I already have one?

    Can I add an Icloud email address, if I already have one?  I would like to have two different email addresses for personal use, on Icloud.

    You can add up to three 'email aliases' - these are additional addresses (not accounts) which deliver into the same inbox as the main account. (In fact it's a good idea to give out alias addresses, rather than the main address, because if they attract spam you can easily change them.)
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account or move it to another account.
    More information on aliases here: http://help.apple.com/icloud/#mm6b1a490a

  • How do I automatically or manually add incoming e-mail addresses to my address book?

    How do I automatically or manually add incoming e-mail addresses to my address book?

    Automatically? Really?? All addresses of all senders just sucked into the address book, spammers, advertisers and all?
    Where an address appears in the panel above the message text, there is a star alongside it. Click this star to add the address to your Address Book. Once you have done that, you can click the star again to edit the address book entry.
    Note that if the star is empty/grey (silver?) the contact is unknown. If the star is filled/yellow (gold?), the Contact is already in your address book. (This is very like the way bookmarks are managed in Firefox.)
    If you really want all senders' addresses entered indiscriminately into your address book, this add-on may be of interest.
    https://nic-nac-project.org/~kaosmos/index-en.html#addrcollector

  • HT5622 In settings it has a spot to add an e mail address to icloud . What does adding one do ? I haven't finished it by verifying through e mail but my phone keeps saying I am using it for icloudin this phone. Ugh now what ?

    In settings it has a spot to add an e mail address to icloud . What does adding one do ? I haven't finished it by verifying through e mail but my phone keeps saying I am using it for icloudin this phone. Ugh now what ?

    if it's a message coming from your yahoo account, it means that your account has been compromised, not your phone itself. i would suggest changing the password for your email account

Maybe you are looking for