Problems adding fields when an event is triggered

Hi,
I need to create a button that with each click adds a textField. Looking some tutorials i see something like that:
var name = "myRadio";
var type = "radiobutton";
var page = 0;
var rb = this.addField(name, type, page, [1, 1, 412, 430]);
this.addField(name, type, page, [400, 427, 412, 415]);
this.addField(name, type, page, [400, 412, 412, 400]);
rb.exportValues=["Yes", "No", "Cancel"];
I have tried it with event form1.btn1::click  with javaScript Language and executing in Client Side. But doesn't work.
The server uses NWDS 7.0.14 and Adobe LC 7.1
Any idea?
Thanks

Hi Xavier,
We have similar requirement. Can you please send us the link of the tutorial. If it is a PDF file you can mail it to [email protected] .
Thanks in Advance,
Neha

Similar Messages

  • How to distinguish the field on which event is triggered? (ABAP Web Dynpro)

    I have an application where there are multiple input fields in the layout. After the user clicks search help for the input field and selects a value, some action has to be performed for each input field. Currently, I am coding the required action in "WDDOMODIFYVIEW" method. This method will be called whenever there is any action on any input field (as its name says), but how can I distinguish on which input field the method is triggered? or How can I know on which field the search help has been triggered?
    or I would be happy to implement any other solution if available.

    HI Deepak Dakshinadi  ,
    You can implement OVS in your input field.
    In the event ON_OVS you will get the value of the attribute  OVS_CONTEXT_ATTRIBUTE which can give you the id of the input field in which OVS is implemented.
    I think by using this you can distinguished among your input field and based on which you can do your particular coding.
    Check the link for implementing OVS.
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    and check the forum to get the id of the field of that particular search help triggered.
    Re: More than 1 OVS in 1 View

  • Show a new row when an event is triggered

    Hi
    I have a requirement where in i have to create a new row when clicked on a add row button.
    In order to complete the requirement i have created a rowLayout region in the page and in the Controller i am adding the childs to the region in the PR.
    Childs are geting inserted in the same row..But i am not able to add child in the next row...
    Any body having any clue...then plz help...
    This is urgent...any help will be appreciated...

    Hi guys,
    I tried to create row dynamically by having a rowLayout region in the page and then creating the childs and adding to the rowLayout region.
    Below is the code:
    OARowLayoutBean rowLayoutBean = (OARowLayoutBean)webBean.findChildRecursive("rowLayout");
    OARowLayoutBean bean1 = (OARowLayoutBean)this.createWebBean(pageContext,OARowLayoutBean.ROW_LAYOUT_BEAN,null,"rowLayout2");
    String TextBox = "TextBox";
    for(int i=0;i<4;i++){
    TextBox = TextBox + String.valueOf(i);
    OAMessageTextInputBean bean = (OAMessageTextInputBean)this.createWebBean( pageContext,OAMessageTextInputBean.MESSAGE_TEXT_INPUT_BEAN,null,TextBox );
    bean.setPrompt(TextBox);
    bean1.addIndexedChild(bean);
    rowLayoutBean.addIndexedChild(bean1);
    I am able to do so from processRequest but when i am tring to handle the button or partial event in the ProcessFormRequest then i am getting an error.
    Below is the error details:
    Error
    (This developer mode error is thrown instead of being registered due to the lack of the page context object.) The OA passivation framework coding standard has been violated. Web bean properties cannot be modified in the controller processFormData or processFormRequest method. Web bean properties should be modified in the processRequest method only. An attempt to modify a web bean has been made in the following call stack: java.lang.Throwable at oracle.apps.fnd.framework.OACommonUtils.getCallStack(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.addIndexedChild(Unknown Source) at oracle.apps.fnd.framework.webui.beans.layout.OARowLayoutBean.addIndexedChild(Unknown Source) at Koelisupplier.oracle.apps.po.poprint.webui.TestCreateRowCO.processFormRequest(TestCreateRowCO.java:93) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at OA.jspService(_OA.java:71) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)

  • After adding field to Datasource not getting data for it

    Hi All,
    I have extended the datasource 2lis_11_VASCL and added three keyfig to it.
    I have changed it accordingly in EXIT_SAPLRSAP_001 (trans. data).
    In RSA3 when i go to debug mode it is fetching correct data, But the problem is that when i check the data in the rsa3 using displaylist it is not showing newly added fields in the structure.
    I have replicated the datasource to BW here i can see newly added fields.when i ran the delta update still it is not extracting anything for newly added fields.
    I think my problem is in R/3 only coz it is not showing fields itself in rsa3 or rsa7.
    Pls. help me out.
    Regards,
    Viren.

    Hi,
    In RSA3 after you display the list choose a record and selected Choose detail(CtrlshiftF3)  and check.
    Or from the menu select >  settings > display variant  > current  and see if it is in the hidden list.
    Jaya

  • I noticed that any other code in my while loop only gets called at the 1st time through the loop and when a event is executed.

    HI there!
    I have a while loop, in which i am reading from/writing  to a compact rio. Furthermore, i added a event structure, its the 1st time i'm using it so i'm a bit lost at times.
    I have the event structure set up for all my button i want to trigger an event. However, i have some other code which i would also like to be executed, evebn though no event has been executed.
    I noticed that the other stuff in the loop only gets executed the 1st time through the loop and when an event is triggered.
    My question therefore is, how do i get the other stuff to execute as well?
    Please advise.
    Thanks.
    Regards,

    Put the other code in the timeout event case.  Wire some positive value to the timeout hourglass input.  That code will execute everytime a timeout occurs.  For instance, if you wire 100 into the timeout, the code in that case will execute every 100 mSec.
    - tbob
    Inventor of the WORM Global

  • Can xMII sense an event being triggered in SAP?

    Hi xMII Gurus,
    I have a requirement where, when some event is triggered in SAP, I have to fetch some data from SAP to xMII and do some procesing and post the data back to SAP. Is there any way by which xMII can sense the event being triggered in SAP?
    Thanks in advance,
    Prasanna

    Hi Prasanna,
    It can be done with a trick
    1. Create the  transaction in xMII
    2. Generate the webservice.
    3. Consume it in ERP
        a. from SE80 you have to consume
        b. From Lpconfig you have to create a port.
    4. Now after the event occured in ERP,Call the interface of the class you have created in SE80
    And it is done
    Thanks and regards,
    Pradip

  • Buttons stay pressed when using event structure

    I have an event structure in a while loop to handle various buttons the user can press.  I used this instead of case structures on the buttons because I have some advanced events I want to happen to the controls as well.  Code wise it is working fine, but the buttons are not release when you press them.  They only change once when pressed.  So if they are released and you click them they stay pressed.  If you click on them again, they release.  This is very ugly.  What am I doing wrong?  I have tried changing thier type to switched vs latched and it makes no difference.  I tried changing the event on them as well and that doesn't seem to matter.  Currently I have "mouse released" on the button as the event trigger.

    Hello Muffin,
    If you have the buttons configured for "latch" operation (reset after being read, which sounds like what you want), the button will only reset when it is actually read within the code- are they connected to anything or read somewhere within your application?  The simplest way to ensure the buttons are read when the event is triggered is to place them within the mouse-up event.
    Regards,
    Tom L.

  • Collections Management - Adding Field to Customer Invoice Level View

    Hello,
    Has anyone successfully added additional fields available in FBL5N to the invoice level view of a customer when drilling into the customer invoice detail from a worklist?
    Thanks, Kevin

    Hi Kevin,
    The BadI for adding fields when displaying worklist items is UDM_WL_ITEM_DISP_C. You will need to add your fields to the customer include C_ATTRIBUTES in order to get them to display. Drill into the changing parameter of the method BEFORE_ALV_DISP to see more detail on that.
    Once you have added your new fields you will need to fill them with data within that BadI method and also add the field to the displayed ALV when you go into your worklist from the front-end.
    Any questions just let me know.
    Cheers,
    Brenton.

  • How to tackle the dataflow problem when Value Change event always triggers after another GUI event

    We know that Value change event always triggers after another GUI event. Eg, the user modifies string control, the user clicks on a boolean control. Then event boolean clicked is triggered before event string control value change.
    Now suppose somehow the GUI event that must happen to subsequently trigger the Value change event can potentially affect the data that Value change event is supposed to work on. How can we tackle this problem ?
    For example, in a mockup application that the grand purpose is to have user entered values in a textbox logged to a file (no missing information is accepted, and there is a boolean to determine how the information is logged).
    There are 2 controls, boolean A when clicked (mouse down) will load random number in text box B. Text box B is designed with event structure VALUE change which saves whatever values user enters into text box B to a log file.
    There are 3 problems when instead of clicking anywhere on the front panel after modifying text box B, the user ends up clicking on boolean control A.
    1. Event mouse down on Boolean control A will execute first, modifying text box B content before the user entered values in B get saved.
    2. The value of boolean A can potentially affect how textbox B is loggged.
    3. The value of boolean A affects how the file is logged and this is indeterminate. Somehow when running this VI with no Highlighting, the textbox B Value change event executes -before- boolean A value is updated (F to T). When running this VI with Highlighting, the boolean A value is updated (F to T) (because we click on it) -before- textbox B value change event occurs. Why is it like this ?
    Now the situation I made up seems non-sense, but I believe it resembles one way or another a problem that you might run into. How would you solve this problem elegantly ?
     

    You can set the string control to "update while typing".
    Are you sure appending the log to itself is reasonable? Wouldn't it grow without bounds if the users keeps entering strings or pressing the ingore button?
    Why isn't the "constant" a diagram constant instead of a control. Is the user allowed to change it?
    To reset just write empty strings or a false to local variables of the controls (renit to defaults" seems a bit heavy handed).
    All you probably need is a single event case for "ignore:value change" and "String" value changed", no need for the local variable..
    Also add a stop button and an event for it.
    You don't need the timeout event.
     

  • Af:query component added field not removed when remove icon is clicked

    I have an af:query component on a popup dialog. In advanced mode when I add a field, the new field appears in the searchRegion followed by a red X remove icon. If I subsequently click that remove icon, the query refreshes, the red icon is gone, but the newly added field still remains. The query component is linked to a standard VO query executable in the bindings. There is no custom processing of the value, model, queryListener or the queryOperationListener. In all other respects the query component works fine. The only problem is a newly added field not being removed when the remove icon is clicked. Here's how the component is setup (an added wrinkle is that the query component is hosted in a Declarative Component, so that makes this code a little harder to decipher).
    Does anyone know where I should start looking for this? Hopefully I don't have to implement my own queryOperationListener.
    JDev version is Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
    --- snippet from the page fragment ------
    <af:popup id="frmsLstPU" contentDelivery="lazyUncached">
    <af:dialog id="d1" type="ok"
    styleClass="AFStretchWidth" resize="on"
    stretchChildren="first" contentWidth="840"
    contentHeight="480"
    title="#{UnifiedResourceBundle['FORMSLIST.DIALOG.TITLE']}">
    <idmkr_adf:Correspondence_Formslist_Query idmkr_query_model="#{bindings.FormVOFlatQueryCriteriaQuery}"
    idmkr_table_binding="#{viewScope.FormsListBacking}"
    idmkr_table_model="#{bindings.FormVOFlatQuery1}"
    idmkr_bindings="#{bindings}"
    idmkr_resourcebundle="#{preferences}"
    idmkr_printStreamBean="#{viewScope.FormsList}"
    id="cf1">
    </idmkr_adf:Correspondence_Formslist_Query>
    </af:dialog>
    </af:popup>
    -- snippet from the Correspondence_Formslist_Query declarative component ------
    <af:query id="qryId1"
    headerText="#{UnifiedResourceBundle['FORMSLIST.QUERY.SEARCH.TEXT']}"
    disclosed="true"
    value="#{attrs.idmkr_query_model.queryDescriptor}"
    model="#{attrs.idmkr_query_model.queryModel}"
    queryListener="#{attrs.idmkr_query_model.processQuery}"
    queryOperationListener="#{attrs.idmkr_query_model.processQueryOperation}"
    resultComponentId="::resId1" displayMode="default"
    styleClass="AFStretchWidth"
    rows="4" maxColumns="2"/>

    I have changed the contentDelivery from "lazyUncached" to "immediate" and the same problem occurs. Thank your for your suggestion.

  • NetConnection.Connect.Closed event not triggered in Vista FF3 when in fullscreen mode

    Hello Pals -
    I'm trying to handle the net connection drop and provide some kind of visual cue to user. For this I'm listening to NetConnection.Connect.Closed event and when its triggered, I take further steps. The events are triggered in Vista FF3(window mode)/IE7 but in Vista FF3 full screen mode, the event is not triggered. I forcefully disconnect the network cable to see the NetConnection.Connect.Closed event is triggered.
    I have following piece of code to listen to the event,
    nc = new NetConnection;
    nc.addEventListener(NetStatusEvent.NET_STATUS, onStatus, false, 0, true);
    nc.connect();
    public function onStatus(event:NetStatusEvent):void {
    trace("Status " + event.info.level + " : " + event.info.code);
    The function onStatus should be called whenever there is a status change in net connection. The events are not triggered in Vista FF3 full screen mode. Please share your views/ideas about this here. Thanks in advance. Please let me know incase more information is required.

    The problem decribed as above was caused by a fragile and eventually broken soldered connection on the curcuit board. My local dealer replaced the curcuit board and everything works fine again.
    I still wonder how that happend. I did not try to bend my MacBook and it did not fall of my desk.
    Thanks for reading.

  • Problem adding events to calendar - they don't show up

    I have an intermittent and very strange problem which occurs when adding an event to the calendar on my iPhone 4 (Verizon - running latest iOS).
    I will create an event, fill out time, date, name, etc and click done, and then the event will not show up in the calendar. Sometimes I can go through this process five or six times in a row before the event finally appears. None of the other attempts ever show up later, and they're not findable via search, so I know this isn't either me doing something dumb (like entering the wrong date) or a delay of some kind.
    I am using MobileMe and the calendar in question is always a MobileMe calendar, simply because those are the only ones I use. I have not tested this with the iPhone local calendar.
    Recently, I experienced the same issue when deleting an event. It took a few tries before the deletion did anything.
    This occurs probably 80% of the time I create an event, and has always occurred. It NEVER happens when I create an event via a hyperlinked date/time shortcut suggestion in an email or the like.
    Has anyone experienced this?

    If you only have one account, it, inherently will be the default.
    On the iPhone, Settings >Mail, Contacts, Calendar
    Scroll down. In each section there should be a 'Default Account'. So one form Mail, Contacts and Calendar. Check that the one account you have / use is set to the default.

  • How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice

    Hi,
    Kindly solve, How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice.
    Regards,
    Rajeev.

    Follow this step..
    1. In SQL Server, go to the SAP B1 Database you're using. 
    2. then on the Object Explorer , go to Database Folder, explode the SAP DB->Programmability->Stored Procedures->SBO_SP_TransactionNotification * the only Stored Procedure that is allowed to be edited. Just right click and modify
    3.  Try to paste this -> and click F5
    If
    @object_type ='13' and @transaction_type in ('A','U')
    Begin
    If EXISTS
    select DocEntry from ONIV
    Where DocEntry = @list_of_cols_val_tab_del
    and  SlpCode<>'-1'
    Begin
    set @error_message = 'Please select the Sales Employee'
    set @error = 1
    END
    END
    Regards
    Kennedy

  • HT1386 I can no longer see anything in the "Manually Added Songs" field when managing music on my iPhone4.

    I can no longer see anything in the "Manually Added Songs" field when managing music on my iPhone4. why?

    If you are using iTunes Match, your songs are long gone.
    iTunes Match is now a streaming service, with no regards to letting you download individual files.
    Otherwise, I'm sorry for wasting your time.

  • Is there any event that triggers when you switch between components?

    is there any event that triggers when you switch between components?
    like for example... when i switch between components, i need a function to fire everytime i switch...
    ive tried show, hide, and initialize... and none of them work...
    any ideas or help is greately appretiated!!

    Depends on what you are trying to do,
    you have mouseover and mouseout and mouseclick events which you can use on the component and write code to deal with what you want to happen when you change focus. You have keypress event which would allow you to monitor tabbing between components, remember that in most events the currentTarget and target values will give you the information you need to handle component interaction.
    so
    [Bindable] private var CurrentObject: Object; <-------  use this as a pointer to what ever object you are currently focused on or just to indicate things have changed
    addeventListener(MouseEvent.CLICK,myCompponentSwap);
    protected function myComponentSwap(e:event): void
        if (CurrentObject !=e.currentTarget && CurrentObject != null)
             do what you want becuase a component switch just happened
        CurrentObject = e.currentTarget;
    Hope this gets you started.
    David

Maybe you are looking for

  • Wrt160n can not see it as an available network

    I just purchased the WRT160N and followed the setup and was able to connect to the internet with a wired connection. I started my laptop to connect wireless and could not find it as an available network but could see others in the area. I spent 2 hou

  • File format not recognized in iphoto

    When I try to import photos from my camera's SD card I get an error message that says the files are in an unrecognizable format. I'm not sure what has changed, I was able to do this before without issue and I don't recall making any changes to the fi

  • Data card that supports mac 10.8.2

    hii...i am from india..i need information about data card that supports mac 10.8.2

  • Epson 2200 printer options missing in Leopard

    I've just spent almost an hour with Apple Support and they were not able to help with this issue, despite the fact that a quick Google search shows that I'm not the only person with this problem. I'm using the most recent Epson drivers from the Epson

  • FIFO Costing issue

    Hello, How would I correct or adjust FIFO Costing? I thought that the basis of the FIFO costing is the posting date and not the system date.