to upload images of chemical structures to a SharePoint library. When I initially select the image using the
correctly. However, after submitting the form with
(left and right sides are cut off). I tried chaning every possible setting on AddPicture1 and Image1 but nothing works. Any ideas how to solve this?
- Struktura_DataCard1:
Control: TypedDataCard@1.0.7
Variant: ClassicLargePicture
Properties:
DataField: ="crc89_test"
Default: =ThisItem.Struktura3
DisplayName: =DataSourceInfo([@Naročila],DataSourceInfo.DisplayName,Struktura3)
Height: =140
Required: =false
Update: =Image1.Image
Width: =824
X: =0
Y: =3
Children:
- DataCardKey1:
Control: Label@2.5.1
MetadataKey: FieldName
Properties:
AutoHeight: =true
BorderColor: =RGBA(0, 0, 0, 1)
Color: =App.Theme.Colors.Darker10
FontWeight: =FontWeight.Bold
Height: =34
Size: =11.7
Text: ="Struktura"
Width: =(Parent.Width - 60) * 0.4
Wrap: =false
X: =26
Y: =10
- Image1:
Control: Image@2.2.3
MetadataKey: FieldValue
Properties:
BorderColor: =If(IsBlank(Parent.Error), Parent.BorderColor, Color.Red)
DisplayMode: =Parent.DisplayMode
Height: =AddPicture1.Height
Image: =If(IsBlank(AddPicture1.Media), Parent.Default, AddPicture1.Media)
Tooltip: =Parent.DisplayName
Width: =AddPicture1.Width
X: =AddPicture1.X
Y: =AddPicture1.Y
- AddPicture1:
Control: AddMedia@2.2.1
MetadataKey: AddPicture
Properties:
Height: =150
TabIndex: =5
Width: =634
X: =160
Y: =10
- ErrorMessage1:
Control: Label@2.5.1
MetadataKey: ErrorMessage
Properties:
AutoHeight: =true
BorderColor: =RGBA(0, 0, 0, 1)
Color: =RGBA(168, 0, 0, 1)
FontWeight: =FontWeight.Semibold
Height: =10
Live: =Live.Assertive
PaddingBottom: =0
PaddingLeft: =0
PaddingRight: =0
PaddingTop: =0
Size: =14
Text: =Parent.Error
Visible: =Parent.DisplayMode=DisplayMode.Edit
Width: =Parent.Width - 60
X: =30
Y: =Image1.Y + Image1.Height
- StarVisible1:
Control: Label@2.5.1
MetadataKey: FieldRequired
Properties:
Align: =Align.Center
BorderColor: =RGBA(0, 0, 0, 1)
Color: =App.Theme.Colors.Darker30
Height: =DataCardKey1.Height
Text: ="*"
Visible: =And(Parent.Required, Parent.DisplayMode=DisplayMode.Edit)
Width: =30
Wrap: =false
Y: =DataCardKey1.Y