This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Problem open form from action

brueegg - Friday, January 7, 2011 7:20 AM:

Hello,

I'm trying to open a new form from an action. This is a general action with now relationship to an item. So you can call this action all the time.

What I want to do is, put some default values to the user item. Because a standard user doesn't see his own item, I wanted to call a seperate form to manage his values.

I'm able to load the form an save some values to the user item. But I'm not able to have some text field with a search form attached.

If I press the ... button, an script error appears. I also tried to call the user form, but there is the same problem.

Does anybody have an advice?

Thanks a lot



Ronan - Friday, January 7, 2011 8:41 AM:

Have you tried debugging it in IE or in Visual Studio?

What is at the mention line "354" of this javascript method?



JensRollenmueller - Monday, January 10, 2011 2:40 PM:

Hello,

I think there is an other way quite simple to resolve your problem without programming.

  1. Just get the Form (user form) with all the information.
  2. Do an save as for this form "usersettingsform"
  3. modify your form (delete fields, set fields to enabled ...)
  4. now attach the new form "usersettingsform" to the item type "user" (within the views tab)
    AND use a created identity of the current user (create your own one).

Thats all.

The normal ItemType "user" could not be modified by the admin user. I don't know how, but I think there is an easy way to attach the new form for the item type user,

Regards Jens



brueegg - Friday, January 7, 2011 8:56 AM:

Yes I did, but I'm not the master programmer.

The error ist:

system$5D27800922664C9EBD83F58724CD99BD$OnF2Down(event.srcElement.parentNode)

 

the whole error code is:

<input type="image" id="5D27800922664C9EBD83F58724CD99BD_img" align="absmiddle" height="12" width="16" border="0" unselectable="on" src="../images/Icons/other/12x16_elipsis.gif" style="cursor:hand;" onclick = "var curInputEl = document.getElementById('5D27800922664C9EBD83F58724CD99BD_input');
if (curInputEl != document.activeElement && !curInputEl.disabled) curInputEl.focus(); system$5D27800922664C9EBD83F58724CD99BD$OnF2Down(event.srcElement.parentNode)"/>

I don't know what is missing.



brueegg - Tuesday, January 11, 2011 2:07 AM:

Hi Jens

Thanks for the advice.

I thought about this way too and I also tried it, but the problem is, that the user is only allowed to see and modify his own user. I probably can filter these items with a program  and ask the current user before locking.

Does anybody has another idea?

Thanks