OpenNTF/org.openntf.nsfodp

Elements with same aliases are not imported correctly

Closed this issue · 0 comments

When elements have the same aliases, ODPCompiler result contains only one design element per alias. This is not that common in modern XPages apps, but for classic Notes web apps this is a standard way of programming.

I have eg.:

  • Forms
    • Notes HomePage | HomePage
    • Web HomePage | HomePage
  • Views
    • (checksum)
    • checksum

Result in NSF after build:

  • Web HomePage | HomePage
  • checksum

(The view configuration is probably not correct, but it works in Notes, so I mention it here too. )

I ran the build with a debugger and all dxl files/elements were processed, no error was reported by DXL importer. I suspect that it's related to DXLImporter flags as the help states

CAUTION:

If multiple elements share a name or alias, Replace_Else_Create and Replace_Else_Ignore will have unpredictable results. If there is at most one matching design element in the output database, whichever incoming element is the last one processed will replace all previously processed matching elements. If there are multiple matching design elements in the output database, there is no way to predict which one will be replaced. These options should only be used when there is at most one element with the same name or alias.