Related Items

rss

Posted by hello_world - Nov 7 ’14 at 11:48

Hi,

I have a strange issue with adding related items to my forms. If I add related item and configure it to enable inline edit / quick edit, right now it's  not rendered in that way. I always get the old style and edit is available only in modal window. But these that I have with inline editing when I hit "stop" to save changes my data disapear from grid, after I refresh site they are in.

If someone can help with this, I really don't have any idea what is going on.

Thanks in advance !

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 19 days
    #1 by Dmitry Kozlov Nov 10 ’14 at 04:37

    Hi,

    Thank you for the question. It seems that you haven't filled-in the lookup column in quick edit mode and so all new items disappear from the parent form after refreshing.

    How did you turn on quick edit mode for the related items?

  • hello_world
    Member
    Member for: 7 years 1 month 1 day
    #2 by hello_world Nov 11 ’14 at 09:21

    [#1]: Hi,

    Adding:

    I open form in form designer, drop the related items control, add source, enable editing, render set to client, also list that I attach like a related item have enabled inline editing, so I really don't know what is the problem. I get the "+ New" button above the list, but there is no Edit button, and I can't get editable grid.

     

    If you can give me steps for proper way of adding new related items that needs to have inline editing enabled, and  explain me that issue with lookup field, because I edit existing item in grid and after I hit stop, all items disappear so I didn't add new one. Thanks !

     

     

  • hello_world
    Member
    Member for: 7 years 1 month 1 day
    #3 by hello_world Nov 11 ’14 at 11:11

    After I hit ''stop'' there is POST request to inplview.aspx, and I get response but there are no items, just empty JSON object. Right now list that I have use parent ID like a lookup field. So I have a form which contains related items and that related items have parent ID for  lookup field. I set up that through FormsDesigner, I select Related Item, and then in Data Source properties i checked ''Filter by lookup field'' and chose it from dropdown below checkbox.

     

    Thanks.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 19 days
    #4 by Dmitry Kozlov Nov 12 ’14 at 03:58

    [#2]: Related items control doesn't support inline editing because inline editing doesn't work in context of other lists. But as I understood, you encountered the issue with inline editing in a list view, not in the form, am I right? Because, as I said, forms don't support inline editing.

    Does the form work properly now?

  • hello_world
    Member
    Member for: 7 years 1 month 1 day
    #5 by hello_world Nov 12 ’14 at 04:33

    [#4]: Hi,

    Here is example of what I really have. There is a list of employees and list of departments, in departments edit form I have a related item control which list all empoyees that belongs to current department (there is a lookup column which use ID of department value). Everything is fine, they are listed properly, but when I hit the Stop button inside that related item there is no items anymore, they are saved but I can see it only if I refresh the page. That problem I have with related items that are already inside departments edit form.

    Second problem that I have is that I can't add new related item and configure it to be inline editable. I can add another related item list inside departments edit form, but I can't enable inline editing for it. If that doesn't work at all, I'm wondering what is the best approach to avoid this problem.

    Thanks.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 19 days
    #6 by Dmitry Kozlov Nov 12 ’14 at 04:41

    [#5]: Sorry, I'm a bit confused with the following:

    Everything is fine, they are listed properly, but when I hit the Stop button inside that related item...

    The Stop button is available in inline editing mode only. So I don't understand how you can click it if forms do not support inline editing for related items.

    Could you provide a screenshot of your Edit form?

  • hello_world
    Member
    Member for: 7 years 1 month 1 day
    #7 by hello_world Nov 12 ’14 at 04:58

    [#6]: Hi, here is screenshot, sorry I hide columns and labels, but the main thing is visible. I don't really know how this related items is added, this is old stuff, I just need to fix some  bugs on site, but I stuck here, and after you said that editable related item can't be part of edit form I'm wondering how is this added. I'm not able to add for example new related items in this form and enable inline editing.

    Related item inside edit form

    Thanks.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 19 days
    #8 by Dmitry Kozlov Nov 13 ’14 at 04:10

    [#7]: Hello,

    Yes, you're right, quick edit mode is not supported in forms. So, I'd recommend to remove the current control, add it via Forms Designer by following instructions:

    http://formsdesigner.blogspot.com/2013/08/how-to-create-forms-with-related-items.html

    And use the related items without quick edit functionality.

     

  • hello_world
    Member
    Member for: 7 years 1 month 1 day
    #9 by hello_world Nov 13 ’14 at 04:19

    [#8]: Ok, thanks for help and recommendation. I'll add all in this way.

    Is there a plan to enable this in next releases of form designer ? I think it would be really nice to have that ability.

    Thanks.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 19 days
    #10 by Dmitry Kozlov Nov 14 ’14 at 03:05

    [#9]: Yes, it's very useful functionality, so we will consider its implementation in future version.

Displaying 1 to 10 of 13 messages
Previous12