Jump to content

Recommended Posts

Posted

When clicking on item 1 in the list of triggers I need to change the image and the tip, this would be in the Triggers event

Example
if AButtonId = 0 then
start
  if Campo.Triggers [0] .ImageIndex = 0 then
  start
    Field.Triggers [0] .ImageIndex: = 1;
    Campo.Triggers [0] .Hint: = 'Check False';
  end
  other
  start
    Field.Triggers [0] .ImageIndex: = 0;
    Field.Triggers [0] .Tip: = 'Check True';
  end;
end;

Posted
9 minutes ago, picyka said:

start

start?

what is it?

can you show the working code that compiles without errors?

Posted

I'm sorry, I don't have the code here, but to sum up, I need to change the data of a Triggers in rumtime, something like this:

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  UniDBLookupComboBox1.JSInterface.JSCall('getTriggers().t1.setImageIndex', [0]); //t1, t2, t3, ...
  UniDBLookupComboBox1.JSInterface.JSCall('getTriggers().t1.setHint', ['Test']); //t1, t2, t3, ...
end;

 

Posted
1 hour ago, picyka said:

I'm sorry, I don't have the code here, but to sum up, I need to change the data of a Triggers in rumtime, something like this:


procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  UniDBLookupComboBox1.JSInterface.JSCall('getTriggers().t1.setImageIndex', [0]); //t1, t2, t3, ...
  UniDBLookupComboBox1.JSInterface.JSCall('getTriggers().t1.setHint', ['Test']); //t1, t2, t3, ...
end;

 

Hi,

You can't change image of trigger in runtime. You should add 2 triggers and hide-show them.

Please Check

 

Posted
6 minutes ago, Hayri ASLAN said:

Hi,

You can't change image of trigger in runtime. You should add 2 triggers and hide-show them.

Please Check

 

Hummm .. I will try.

Posted
I was unable to do what I need, attached a picture of the field. When I click on trigger 1 I need to change its color, and also change a new property in the component called property CheckExcept: Boolean

Anexo.jpg

Posted
5 hours ago, picyka said:

I was unable to do what I need, attached a picture of the field. When I click on trigger 1 I need to change its color, and also change a new property in the component called property CheckExcept: Boolean

Hello,

Can you make a simple testcase!?

Posted
5 hours ago, Sherzod said:

Hello,

Can you make a simple testcase!?

Good morning, in summary, I need a component where, I can filter more than one record storing in a list (it is important that the remotequery works) I need that component to have a checkBox next to it, so that the user can be checking the option , this markup will take effect in sql, example

if component.CheckedExcept then
  Sql.Add (true)
else
  Sql.Add (False)

I like to customize my components, this gives a lot of agility in development.

Posted

Attached is an example, I select more than one record, I can click on the red ball, which will change the color and will change an internal property, this one is in angularJs.

anexo.jpg

Posted
5 minutes ago, Hayri ASLAN said:

Hi,

You can achieve this with the link i sent. Have you tried it?

Good morning, yes, I just don't have the test here, but as I did.

I put two items on Triggers,

item0 = visible true

item1 = visible false

clicking on item0 would make it visible false and item1 visible true,

but that gives error.

Posted
On 12/3/2020 at 8:41 AM, picyka said:

Attached is an example, I select more than one record, I can click on the red ball, which will change the color and will change an internal property, this one is in angularJs.

anexo.jpg

It wouldn't meet my reality,

I need an indicator inside the field, even a checkbox would do.

Just look at the attached images.

Posted
3 minutes ago, Hayri ASLAN said:

So you want to add this triggers to UniTagField component?

I really liked CheckCombobox, but RemoteQuery doesn't work, I will use this component in large tables.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...