Change value of a control in a list item new or edit form depending on the page level view Add New Item being clicked.

I have a list which has a underlying infopath form for insert and edit a record.
The list has various views spread across different pages .
Now depending on different pages "New Item", a value for the form will have a corresponding value.
If there is a single line of text control in the list, and depending ona page name, the value for the single line text should be autofilled when Add new item is clicked.
How do i achieve that?
Thanks...

Hi,
According to your description, there are several list views in your list, there is a textbox control which holds the “Single Line of Text” type of data in your custom
form. When users click the “Add new item” button in one of the existing list views, you want the textbox control in the custom form to be populated automatically.
By default, when user clicks the “Add new item” button in a list view, the URL of the custom form page will contain the name of that list view page, thus, a workaround
which requires custom code can be like this:
After the form page loaded, we can extract the name of the list view page from the URL, then populate it into the textbox control immediately. This can be achieved
using jQuery.
About how to
get URL parameters of current page using jQuery:
http://www.jquerybyexample.net/2012/06/get-url-parameters-using-jquery.html
About
adding jQuery into InfoPath form:
http://riteshudupak.blogspot.com/2010/09/add-jquery-to-browser-enabled-infopath.html
Best regards,
Patrick
Patrick Liang
TechNet Community Support

Similar Messages

  • Icloud download is incomplete. When I load the control panel it only partially loads. I do not get the page that offers feature

    icloud download is incomplete. When I load the control panel it only partially loads. I do not get the page that offers features. Also when I look in my Windows Programs it shows that the icloud program has loaded 80MB vs 42MB. Can someone pelase help

    Uninstall iCloud and reinstall it (reboot in between)

  • How do I change the tab setting so that when I open a new tab it does not leave the current tab view?

    Up until the other day, opening a link in a new tab via right click created the new tab but did not change my view to that new tab. However, since yesterday opening any new tab changes my view from the page I was browsing on to the new tab. Although it seems minor, this seriously negatively impacts the way I browse. Is there any way to change it back? I do not see it within the settings.

    Tools > Options > Tabs - is the last preference there check-marked??

  • Change the Page Title for all the pages when viewing the Reports in Bi Publisher

    Hello ,
    I have a requirement for changing the Page Title for all the report displayed pages on the browser window.

    As far as I know, answer is NO.
    it's very simple answer  Manikandan-S-Oracle
    for 1210326 's requirements there are some places for changes of property "title" and in some pages "title" can be different
    "one place or option for changing" does not exist imho ( may be i'm wrong )
    so you can change places for your needs but not sure what it's adequate
    as example
    ...wls\user_projects\applications\bipdomain\xmlpserver\catalog\navigator.jsp  -->  find <title>
    it changes title in http://somehost:7001/xmlpserver/servlet/catalog
    ... wls\user_projects\applications\bipdomain\xmlpserver\home\home.jsp  -->  find <title>
    it changes title in http://somehost:7001/xmlpserver/servlet/home

  • Why do I have cc and cc2014 both in my list of apps in creative cloud? Can I delete the older and keep the newer or does one depend on the other?

    I have a list of both CC and CC2014 in all my programs on my Creative Cloud 'dashboard'.
    Do I need to keep them all, do they depend on each other, or can I delete the CC and just keep 2014?
    PS: I have never yet found the CSS panel where you can choose different settings in Dreamweaver CC and CC2014 - it looks entirely different from CS6. Can you tell me where to locate that or is it gone?

    http://blogs.adobe.com/jkost/2014/06/installing-the-2014-release-of-creative-cloud.html
    This messages says (at least some) CC 2014 programs use NEW plugins https://forums.adobe.com/thread/1499663
    -so do not uninstall the older CC programs if you use plugins in your programs until you are sure you have plugins that work in CC2014
    If you are sure you don't need the old CC programs
    -http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    -read reply #3 about the ORDER of uninstalling & installing https://forums.adobe.com/thread/1242671
    For program specific questions you need to ask in that forum
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • In List View, how can I move an item from within a subfolder up to the top level of the window's parent folder?

    Up 'til now, from System 7.1 to Tiger—I skipped Leopard—you simply dragged the item onto the folder window's titlebar (since that folder's icon was, naturally, not in its own window) and BINGO! there it was, at the top level. Nothing I can think to do in Snow Leopard seems to work.

    Thanks. Most definitely does, although when experimenting I found the left window edge was closer, and 'scrubbing' the item just out of the window and back in seemed to fit the underlying file and folder metaphor better to my mind than just dropping it any old where in the window.
    And 'any old where', at any old speed doesn't always bring up the oh-so-subtle blue border that says, "I get it, you wanna add something to this window, hit me." That's The Clue. There seems to be an invisible line you hafta cross, and some kind of deliberate pace you hafta hit. Too fast and SL doesn't seem to always take it seriously. But that left edge scrub can be quite fast.
    Sorry about the over hasty denial, I was checking my facts and editting to say you were right when the board was shut for some sort of maintenance, and my bad became permanent. Please forgive.

  • The problem is when i'm playing farmville in facebook and i only have this question when using firefox.Sending,asking gifts or other things is not possible cuz i cant see the list of my friends.It doesnt appear on the page,nothing seems.

    Why?Because with another sites this never happenes but firefox never openes.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • An external source changing the page shown when a new tab is opened.

    I recently downloaded some freeware and, without permission, it installed some malware by the name of My Start by Incredibar that hijacked the home page, new tab page, default search engine, and other functions in Firefox.
    The removal of the program itself was a simple task, as was disabling and uninstalling the addon it had installed in Firefox. I thought everything was back to normal, but when I went to open a new tab the My Start site appeared instead of the default blank page.
    Will a reinstall without deleting user data solve this problem? I would rather not have to pull a full clean reinstall as I have a lot of addons with custom settings and logins.

    Did you check for the presence of a user.js file that might re-add the prefs on each start of Firefox?
    *http://kb.mozillazine.org/Preferences_not_saved

  • Dynamically changing the value in table control

    Hello Every one,
    In MD61 transaction table control am trying to change value dynamicaly i.e am trying to change value in table control automaticaly tht value to be captured and i need to show in status bar...
    Ex table control field is number: am giving 10,20,30 tht should show in status bar by adding if u enter 10 at status bar it show 10 then when u enter 20 it should add with 10 and give 30 ..
    in this way when ever u enter value in filed it should add with the status bar value.

    Hi!
    For conversion you can use the function module
    data :   w_amt         TYPE cms_dte_original_amt,
                                                                                    " Amount
                w_conv_amt    TYPE cms_dte_conv_amt,
                                                                                    " Converted amount
                w_kmein       TYPE cms_dte_original_curr,
       CALL FUNCTION 'CMS_API_CURR_CONV'
            EXPORTING
              i_original_curr = w_kmein
              i_original_amt  = w_amt
              i_result_curr   = 'INR'
              i_rate_type     = 'M'
              i_conv_date     = sy-datum
            IMPORTING
              e_conv_amt      = w_conv_amt.
    now accordingly you can move the currency and amount that is changed....
    here as you were saying that on f4 after selecting you want the other field to get the value on that currency.....
    this work can be done as here....
    in this the next field gets populated as the first field gets the value......
    refer to it.....
    https://wiki.sdn.sap.com/wiki/display/ABAP/GettingainputfieldpopulatedonenteringthevalueinoneInputfield
    Regards.

  • How can I control SMTP server list in Mail?

    I've seen a lot of discussion about e.g. deleting servers, but it often includes smug replies like "click the delete button" when there is often no such button. I have found a possible 'get around' to this particular problem by changing the server data to something that doesn't exist, save that, then select the server again from the list and hey presto, there is now a Delete button you can use. But again, that is not the full story because if that server is used as the primary server for any other account, you cannot modify the data.
    Not only that, but you CANNOT simply swap servers so that e.g. an account uses one of the other servers as its primary server. Unless I'm missing something major here, it is NOT possible to move servers. You can change the data for the server to be exactly the same as another server, but that just means you now have an identical duplicate. Once a server entry has been created, it is an independent data entity.
    So I seem to have several problems here.
    1. A server cannot be deleted if it's in use as a primary for any account.
    2. Servers cannot be moved, i.e. swapped between 'Primary' and 'Other'
    3. Simply editing the server data does not 'merge' it with any other entry that may have the exact same data.
    4. When creating an account, you cannot pick the outgoing SMTP server from the list of ones already created. Simply entering the same data as one that already exists may use that existing server, but may create a new duplicate. I have seen both of these occur and once there's a duplicate, you cannot get rid of it.
    I want 3 accounts to all use the same 'Primary' server and also have the same 'Other' server. IOW, only 2 actual servers. After the first 2 accounts are created, that's what I have. Somehow they seem to be able to 'share' the same servers. But when I create the third account and enter the same data for its SMTP server as the others use as their primary (i.e. exactly the same process as when creating the second account), for some reason it does NOT use the existing matching server and I now get a third server created. I simply cannot get around this since whatever I do, each of the duplicates is used as a primary and so cannot be deleted. If I could swap them around so that the third account was using another account as its primary, then I could delete the duplicate and all would be well, but as pointed out above, that's not possible.
    I'm hoping that I'm simply wrong about all this and it is actually possible to do what I currently believe it impossible. Can anyone explain how to actually control this server list?

    can't edit SMTP server list in Mail
    i have exactly the same problem using 10.9.4 - did you ever get a reply?

  • Why is the difference in execution speed of the function "SetCtrlVa​l" between constant and changing values so small ?

    In my large application (1 MB exe-file) I am continuously updating a lot of numeric controls with new values. Most of them do not really change their value. Within my search of improving the performance of my application I noticed, that there is only a small difference of the execution speed between a call of "SetCtrlValue" with constant values and calls with changing values. It runs much faster (25 times on my PC), if I get the actual control value with "GetCtrlVal", compare it with my new value an do a call to "SetCtrlVal" only if the current value and the new value are different.
    My questions to CVI-developers is:
    Isn't it possib
    le to do this compare within the function "SetCtrlVal"
    My question to all CVI-users is:
    Does anyone have similar tips to improve the performance of CVI applications ?
    I developed a small test application for this problem, which I can mail to interested users.

    What takes the extra time is the redraw of the control. When you call SetCtrlVal we ALWAYS redraw the control. We wouldn't want to build in functionality to check if the value was the same because that would add additional time to the SetCtrlVal in every case. If you want to do it outside of the loop you can as you have done above. You have a few options. First, keep a previous value variable for the controls that you can use to determine whether to set the control value. I.E.
    int oldVal = 0;
    int newVal = 0;
    if(newVal!=oldVal) {
    SetCtrlVal(..., newVal);
    oldVal = newVal;
    Also, if you set the value of a control through SetCtrlAttribute instead, there is no built in redraw of the control (which is what takes all the time). Using SetCtrlAttribute
    to set the value is very fast, but remember there isn't a built in redraw on the screen to display the new number.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Controlling drop down list in struts

    Hi there!
    I 've a form whereby in the form, I've 2 drop down list and data displayed in the second drop down list is depending on the data selected from the first drop down list. Both data are read from database.
    After finished selected the selection from both drop down list then I'll submitt the button.(Save, Update etc ).
    I used DispactAction to take control the buttons.
    My Question is how to do it.
    Any help pretty much appreciated. Thanks.

    Hi,
    In ur Action Class create aa ArrayList of LabelValueBean Object (use import org.apache.struts.util.LabelValueBean; )
    Eg:
    ArrayList myList  = new ArrayList();
    for( int i=0; i<10 ; i++ )
       myList.add( new LabelValueBean(  "Label of  "+ i , " value of " +i  ) );
    }put myList either in request or session
    eg
    session.setAttribute(  "DisplayList", myList  );****************************************************************
    in JSP use JSTL Tags for JSP
    eg
    <html-el:select property="listToDisplay"  style="width=200" size="1">
    <html-el:option value="-1">--Select One--</html-el:option>
    <html-el:options collection="DisplayList" property="value" labelProperty="label" />
    </html-el:select>Here "DisplayList" will be ref'ed from session scope or request scope.
    Hope this can solve ur Doubt.
    Ganesh

  • Changing value in drop-down based on selected value in another drop-down

    Hi,
    I have two drop-downs - changing value in Combo1, should cause the form to be submitted and values to be populated in Combo 2.
    Approaches i tried - 1) I am using an ActionListener. I am having a valueChange method which accepts an action event. However this appraoch is not working for me. 2) I was wondering if I could use Javacsript to catch the OnChange event , the javascript function would call an appropirate method in my ActionListener. I know in Struts its straightforward, but how do i achive the same here in JSF.
    Any tips would be helpful.
    Thanks
    PS: I already came across some threads in the forum, but could not get an answer. Also, I have a retsriction in terms of using Action LIsteners itself.

    Try using ValueChangeListener instead of ActionListener.
    Here's a working example of a ValueChangeListener. You can customize it and use it for your application.
    The JSP will look like this:
         <h:selectOneMenu value="#{globalsBean.selectedFirst}"
              valueChangeListener="#{globalsBean.changeList}" onchange="submit()">
              <f:selectItems value="#{globalsBean.first}" />
         </h:selectOneMenu>
         <h:selectOneMenu value="#{globalsBean.selectedSecond}">
              <f:selectItems value="#{globalsBean.second}" />
         </h:selectOneMenu>The globalsBean will look like this:
    public class GlobalsBean extends Bean {
         ArrayList first;
         ArrayList second;
         String selectedFirst;
         String selectedSecond;
         public GlobalsBean() {
              first = new ArrayList();
              second = new ArrayList();
              first.add(new SelectItem("1", "1"));
              first.add(new SelectItem("2", "2"));
              selectedFirst = "1";
              selectedSecond = "";
              second.add(new SelectItem("White", "White Cows"));
              second.add(new SelectItem("Brown", "Brown Cows"));
              second.add(new SelectItem("Green", "Green Cows?!?"));
         public ArrayList getFirst() {
              return first;
         public ArrayList getSecond() {
              return second;
         public String getSelectedFirst() {
              return selectedFirst;
         public void setSelectedFirst(String selected) {
               selectedFirst = selected;
         public String getSelectedSecond() {
              return selectedSecond;
         public void setSelectedSecond(String selected) {
               selectedSecond = selected;
         public void changeList(ValueChangeEvent event) throws AbortProcessingException{
              second = new ArrayList();
              String newValue = (String)event.getNewValue();
              setSelectedFirst(newValue);
              if (newValue.equals("1")) {
                   second.add(new SelectItem("White", "White Cows"));
                   second.add(new SelectItem("Brown", "Brown Cows"));
                   second.add(new SelectItem("Green", "Green Cows?!?"));
              } else if (newValue.equals("2")) {
                   second.add(new SelectItem("White/Black", "White Cows with Black spots"));
                   second.add(new SelectItem("Black", "Black Cows"));
              setSelectedSecond("");
    }Let me know how it works out for you.
    CowKing

  • How To dynamically change values in custom form

    Hi,
    Requirement is to change values in custom form dynamically that are passed by Global variables through standard form .
    I have used forms personalization to call custom form and passing some parameters to custom form using global variables.
    Now i have to change values displayed in custom form(already opened) when user moves from one record to another record.
    I cannot change the standard form.Only i have write logic in custom form that dynamically changes values as user moves from one record to another in standard form.
    Global variables values will be different for each record.
    Pls let me know how i can achieve this.
    Regards
    Udit

    Udit,
    Your question should be posted to the Enterprise Business Suite (EBS) forum. This forum is dedicated to non-EBS forms development.
    Craig...

  • How to change a field to mandatory in custom list form in SharePoint designer 2010?

    I need to create a custom form for a list, e.g. custom edit form. several fields are not mandatory by default, but in the custom edit form I need to make them mandatory. Is there a way to do that in SPD 2010?

    Hi,
    Thank you for sharing this with us, and it will help others who have met with this issue.
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • How can I generate variable frequency in different time with NI USB 6229?!

    Hello,   I have NI USB 6229, and I want to have VI which;   in this VI I have to firstly generate a initial frequency togive it to a circuit, after that according to the results that I am reading from circuit I have to make some delay in the same fre

  • I'm going to Spain and Italy in a week or so and wondered about taking my iPad 3. What do I need to do?

    I'm going to Spain and Italy in a week or so and wondered about taking my iPad 3. What do I need to do to be able to use it in those countries?

  • French & German on Nano

    My original iTunes files show up with the French or German along with accent marks. But, the non-English is getting scrambled in the transfer to both my Nano and Classic. Some times it's only the accent marks that don't move over and other times the

  • Maintenance plans for Backward counter

    Is it possible for having a preventive maintenance plan for a measurement point that counts backwards? Your inputs on this will be appreciated!

  • Email failure

    Hello. I have just set up my HP 8600. This notion of eprinting is new to me, but I got everything connected through HP Connected I have tried to send emails to my printer, but each time, it fails, and I get this message: This is an automatically gene