Issue with StructuredProperty that didn't has style

Hi,

During exploration of possibilities to my previous post Question about dynamic bindings I try to use StructuredProperty to solve my problem.
During test of this StructuredProperty based on the “StructProp“ widget from usecase lib, I have create my own property with this parameters:
javascript

/** 
 * @cfg {Number} value=0
 * Defines the data source of the row.
 * @bindable
 * @not_projectable
 * @iatStudioExposed
 * @iatCategory Data
 */

/**
 * @cfg {String} componentName=''
 * Defines the component name of the row.
 * @not_projectable
 * @iatStudioExposed
 * @iatCategory Behaviour
 */

/**
 * @cfg {String} attributeName=''
 * Defines the attribute name of the row.
 * @not_projectable
 * @iatStudioExposed
 * @iatCategory Behaviour
 */

When I build widget I get an error:

Running “sass:widgetsDefault” (sass) task
Fatal error: Error: Undefined mixin.
╷
3 │   @include widgets_debug_StructProp_TestStruct.base
│   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
C:\\WD\\6.4.0\\data\\wwwRoot\\BRVisu\\widgets\\debug\\StructProp\\meta\\TestStruct\\TestStruct_default.scss 3:3  root stylesheet
\[2025-09-09T18:02:23.978Z\] exit, code=3

I don’t know if it’s a bug or a wrong usage, if someone has an idea?

For version I use WDTC 6.4.0 and mappView 6.3.2.

Regards,
Florent

Hello @florent.boissadier ,

And where is this “widgets_debug_StructProp_TestStruct.base“ defined? Or is it imported from somewhere?
Thanks.

Hi Patrik,

The toolkit generated a folder “TestStruct” in meta folder, where it generated theses files:

  • TestStruct_base.scss
  • TestStruct_default.scss

The error is related to “TestStruct_default.scss” that include the “TestStruct_base” that should be in the “TestStruct_base.scss” file. But “TestStruct_base.scss” is an empty file.

Here is the TestStruct_default.scss file content:

@use "TestStruct_base.scss" as widgets_debug_StructProp_TestStruct;
.widgets_debug_StructProp_TestStruct_style_default {
  @include widgets_debug_StructProp_TestStruct.base
}

If I compare to the usecase StructProp widget the “meta/ValueRow” there is more file:

  • ValueRow_Styles.xsd
  • ValueRow.type

But in my case I didn’t have style to apply, so I didn’t create these files and I didn’t want to have stylable properties in my StructuredProperty.

Maybe It’s mandatory but I feel like it’s more like a bug or I missed something :confused:

Hope this is more clear :sweat_smile:

Just to make a little UP. Does anyone have any ideas?

Hm, I’m sorry, but it looks like there is no bigger expert than you at the moment :wink:

1 Like

Yes I see that :sweat_smile:
Hopefully, a developer might see this post :sweat_smile: