cancel
Showing results for 
Search instead for 
Did you mean: 

Changing data browse button behaviour with UI

Former Member
0 Kudos

Can I change the behaviour of the data browse button's on the document's window?, so instead of using DocNum field use the DocEntry?

Please help!

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi José,

On a user field you can!

Just change the BrowseBy property to the ID of the form field you want to browse by. Please note that the field you're browsing by exists on the form a is visible. I suggest you put the DocEntry field as Enabled=False and with width = 1. You can set the BrowseBy property on the XML form


...
						<item uid="DocEntry" type="16" left="65" tab_order="0" width="1" top="5" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Código do Bónus" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                            <AutoManagedAttribute></AutoManagedAttribute>
							<specific TabOrder="0">
								<databind databound="1" table="@ADAT_BONUS" alias="DocEntry"></databind>
							</specific>
						</item>
...
...
				<ChooseFromListCollection>
					<action type="add">
						<ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"></ChooseFromList>
						<ChooseFromList UniqueID="CFL0" ObjectType="4" MultiSelection="0" IsSystem="0"></ChooseFromList>
						<ChooseFromList UniqueID="CFL1" ObjectType="4" MultiSelection="0" IsSystem="0"></ChooseFromList>
					</action>
				</ChooseFromListCollection>
				<DataBrowser BrowseBy="DocEntry"></DataBrowser>
				<Settings Enabled="1" MatrixUID="mtx_BONUS" EnableRowFormat="0"></Settings>
			</form>
		</action>

Regards,

Vítor Vieira

Answers (0)