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

Problem with pre-populate department in IT Shop

Hi,

I'd like to pre-populate department in IT Shop (Add New Employee) with the department name of logged user. I have created copy of object (edit employee, preedit, etc). I have extended the collection and added new column in preedit object. After compiling web project  I have following behavior in IT Shop:

Do I need to set some special properties?

When I run query in Web Designer I got correct UID_Department.

mariusz

Parents
  • My mistake,

    my query was wrong - I have used getuser() (!), now I have tried toi use:

    "select UID_Department from Person where UID_Person = 'getuser()'"

    but I got:

    The property Person.UID_Department could not be set.

    Employees: Maximum length of Primary department is 38.

    I'm using following object:

Reply
  • My mistake,

    my query was wrong - I have used getuser() (!), now I have tried toi use:

    "select UID_Department from Person where UID_Person = 'getuser()'"

    but I got:

    The property Person.UID_Department could not be set.

    Employees: Maximum length of Primary department is 38.

    I'm using following object:

Children
No Data