Tabular Block's Checkbox Issue [message #678259] |
Thu, 21 November 2019 00:20 |
ANASKABIR
Messages: 15 Registered: November 2019
|
Junior Member |
|
|
i have a tabular block's checkbox.. i want to check one checkbox at a time .. if i check another checkbox previous checkbox will uncheck automatically. can i do that ??
|
|
|
|
Re: Tabular Block's Checkbox Issue [message #678333 is a reply to message #678326] |
Mon, 25 November 2019 03:20 |
cookiemonster
Messages: 13962 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
IF :global.row_set IS NULL THEN
:global.row_set := :system.trigger_record;
LOOP
first_record;
IF :system.current_record != :global.row_set THEN
uncheck checkbox;
END IF;
EXIT WHEN :system.last_record = TRUE;
next_record;
END LOOP;
go_record(:global.row_set);
:global.row_set := NULL;
END IF;
You need the IF to avoid an infinite loop, since changing a check-box in when-checkbox-changed will fire when-checkbox-changed.
[Updated on: Mon, 25 November 2019 03:20] Report message to a moderator
|
|
|