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

  • Hi Mariusz

    It seems like the users are missing a can see permission on the UID_Department attribute. This is why it's getting displayed as hidden.

    HTH
    Carsten
  • Hi Carsten,
    But when I click Change button I can browse Departments, and name of selected Department is visible in IT Shop. The user has the same permission like for "IsExternal" which I can pre-populate with true or false.
    I have tried to assign View permission to the UID_Department column in the Designer (for CCCViewRole) - the same. The role VI_4_ALLMANAGER has also View permission for this column.
    Mariusz
  • Hi Mariusz

    Do you get correct results while debugging the case in Web Designer? What authentication module are you using in the web portal and the web designer?

    Carsten
  • 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:

  • The string "Select UID_Department..." has more than 38 characters, and I assume that this is no valid UID for a department.
    Try
    from User select UID_Department
  • Thanks!
    Now it's working!
    Mariusz