Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to put object name as a criteria for reverse grid #206

Closed
nicolasdemauroy opened this issue Sep 6, 2020 · 1 comment
Closed

Comments

@nicolasdemauroy
Copy link

nicolasdemauroy commented Sep 6, 2020

Error

                        class java.lang.RuntimeException during processing fieldname LINKEDTOPARENTOBJECTNAME was not found, either as external field ([LINKEDTOPARENTFORACTBUDNAME|LINKEDTOPARENTFORACTBUDNR|LINKEDTOPARENTFORACTBUDLOCATIONDOMAINID|]) or as own object field ([LINKEDTOPARENTFORACTBUDID|])
                        - org.openlowcode.server.data.DataObjectPropertyDefinition.getFieldMarker(DataObjectPropertyDefinition.java:283)
                        - org.openlowcode.server.data.DataObjectDefinition.getPropertyFieldMarker(DataObjectDefinition.java:1728)
                        - xxx.data.AllocatedbudgetDefinition.getLinkedtoparentforactbudobjectnameFieldMarker(AllocatedbudgetDefinition.java:310)
                        - xxx.page.MassiveeditPage.getContent(MassiveeditPage.java:82)
                        - org.openlowcode.server.graphic.SPageAddon.insertInternalContent(SPageAddon.java:26)
                        - org.openlowcode.module.system.page.DefaultmenuPage.getContent(DefaultmenuPage.java:69)
                        - org.openlowcode.server.graphic.SPage.getFinalContent(SPage.java:135)

Sample code

	public DataObjectFieldMarker<Allocatedbudget> getLinkedtoparentforactbudobjectnameFieldMarker()  {
		return this.getPropertyFieldMarker("LINKEDTOPARENTFORACTBUD","LINKEDTOPARENTOBJECTNAME");
	}
@openlowcode
Copy link
Owner

Probably the first time a field marker is used on:

  • a property with specific name per instance
  • an external field.

The mechanism for generating the code does not work, as the element will have the instance name of the property, but the generics name (for the property getter) will have the class name of the property.

Also, linked to parent uses "NAME" and "OBJECTNAME". Should be "OBJECTNAME" every where

@openlowcode openlowcode added this to the Solved v1.11.3 milestone Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants