See active canvas

Dicas do Oracle Forms Builder - Blocos, Itens, LOV, Canvas, Triggers, comandos, PLL, d2kwutil, FMB, Alert, menus, etc
Post Reply
User avatar
bessa_lucas
Rank: Programador Sênior
Rank: Programador Sênior
Posts: 55
Joined: Fri, 17 Oct 2014 3:02 pm
Lucas Bessa
Analista de Sistemas

lucas.bessa@obers.com.br
lucas.bessa.ti@gmail.com

Hello everyone

I need to check which canvas is active.
I have a main screen that opens another window.

I need to handle when it clicks the DELETE button on the toolbar and is on the second window it will make a update null only in the fields of the second window.
All because the first and second window are in the same block and table. So if you're on Monday and tighten the delete it removes the whole line, which I do not want to happen.

You could understand:?
Marina
Rank: Estagiário Júnior
Rank: Estagiário Júnior
Posts: 2
Joined: Mon, 14 Dec 2015 4:26 pm

Hi Bessa_lucas

To know the canvas that is active, you can use the command:

Select all

Get_Item_Property( :system.cursor_item, ITEM_CANVAS );
This command searches the Canvas that is located the item with focus currently.
User avatar
bessa_lucas
Rank: Programador Sênior
Rank: Programador Sênior
Posts: 55
Joined: Fri, 17 Oct 2014 3:02 pm
Lucas Bessa
Analista de Sistemas

lucas.bessa@obers.com.br
lucas.bessa.ti@gmail.com

Marina,

Thanks for the help. And to see the active block?
User avatar
tiago_pimenta
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 213
Joined: Wed, 29 Jun 2011 9:49 am
Location: Barretos / SP

Luke,

The marina has already given the path of the stones ... Open the Forms Help and look for "System", I'm sure you'll find it how to get the active / current / current block.


Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests