Base solution for your next web application
Open Closed

Power Tools "Parent Menu Position" #12299


User avatar
0
ips-ad created

Hi,

I'm struggling with setting up two new entities correctly, e.g.:

  1. Entity A "Coworker", menu position "Root" (which is actually "main" in the json file) Main menu -> Coworkers
  2. Entity B "CoworkerOrganizationUnit" should be placed under "Coworker" Main menu -> Coworkers -> CoworkerOrganizationUnit

Entity A is fine, B is not. Both entities share the same namespace "Persons". Entity B is fullaudited and has only 2 navigation properties (lookup tables for CoworkerId and OrganizationUnitId), no other properties.

What do I have to set as custom parent menu position, tried different things like "main>coworkers", "coworkers", "main>persons>coworkers" - but all that ends in weird folder structures and/or faulty code... Using Power Tools 4.5.3.

Thanks upfront!


1 Answer(s)
  • User Avatar
    0
    ips-ad created

    ..some additional findings/bugs in the tool:

    • When adding more than 3 display properties, it generates like
                                               PersonDisplayProperty = string.Format("{0} {1} {2} {3}", s1 == null || s1.Vorname == null ? "" : s1.Vorname.ToString()
                               , s1 == null || s1.Nachname == null ? "" : s1.Nachname.ToString()
                               , s1 == null || s1.ABnr == null ? "" : s1.ABnr.ToString()
                               , s1 == null || s1.VNr== null ? "" : s1.VNr.ToString()
                               ),
    

    This fails, because string.Format takes max. 3 arguments, need to adjust it to string.Format("...", new object[]{ ...}) instead.

    • using IPSweb.Exporting; is missing in the appService
    • _personOrganizationUnitTestId = ; id is missing in generated test

    No big deals, but I thought I'd share these so that you can fix it in a next version :-)