Pessoal estou "batalhando" para que a minha grid (Forms 6i) tenha as linhas varridas e com a cor de fundo alteradas.
Já conseguiu varrer item a item a alterar a cor do item de um Form não tabular, porém de um form tabular alguém sabe ou pode indicar onde consigo informações (e também exemplos) de como alterar a cor de toda a linha?
Alterar cor dos registros de uma grid
-
- Moderador
- Mensagens: 1177
- Registrado em: Qui, 15 Out 2009 10:28 am
- Localização: Recife
olha cara posso estar enganado faz tempo que não mexo no forms, mas acho que isso é uma propriedade do bloco, alguma propriedade que você associa um VISUAL_ATRIBUTE.
Veja ai:
Current Record Visual Attribute Group
Veja ai:
Current Record Visual Attribute Group
-
- Rank: DBA Sênior
- Mensagens: 323
- Registrado em: Qui, 21 Set 2006 10:21 am
- Localização: Barala - TT
Isso eu nunca fiz no Forms, você sabe se tem como eu selecionar cada linha de uma grid com uma cor (dependendo do valor de um campo)?
Aproveitando, eu tentei um loop para varrer todos os registros da grid, assim como eu faço para varrer os itens em um bloco não tabular, você sabe se teria que funcionar igual, pois eu não consegui iterar linha a linha.
Aproveitando, eu tentei um loop para varrer todos os registros da grid, assim como eu faço para varrer os itens em um bloco não tabular, você sabe se teria que funcionar igual, pois eu não consegui iterar linha a linha.
-
- Moderador
- Mensagens: 1177
- Registrado em: Qui, 15 Out 2009 10:28 am
- Localização: Recife
no POST-QUERY ou quando você estiver carregando o bloco, você pode setar o atributo visual que você quiser de acordo com a condicao, deixa eles já previamente criados no form, e então vai setando de acordo com a condição.
set_block_property(
Description
Specifies the named visual attribute used when an item is part of the current record.
Applies to form, block, item
Set Form Builder, programmatically
Refer to Built-in
n GET_FORM_PROPERTY
n SET_FORM_PROPERTY
n GET_BLOCK_PROPERTY
n SET_BLOCK_PROPERTY
n GET_ITEM_PROPERTY
n SET_ITEM_PROPERTY
Required/Optional optional
Usage Notes
This property can be set at the form, block, or item level, or at any combination of levels. If you specify named visual attributes at each level, the item-level attribute overrides all others, and the block-level overrides the form-level.
Note that if you define a form-level Current Record Visual Attribute, any toolbars in the form will be displayed using that Current Record Visual Attribute. You can avoid this by defining block-level Current Record Visual Attributes for the blocks that need them instead of defining them at the form level. If you wish to retain the form-level Current Record Visual Attribute, you can set the block-level Current Record Visual Attribute for the toolbar to something acceptable.
Current Record Visual Attribute is frequently used at the block level to display the current row in a multi-record block in a special color. For example, if you define Vis_Att_Blue for the Emp block which displays four detail records, the current record will display as blue, because it contains the item that is part of the current record.
If you define an item-level Current Record Visual Attribute, you can display a pre-determined item in a special color when it is part of the current record, but you cannot dynamically highlight the current item, as the input focus changes. For example, if you set the Current Record Visual Attribute for EmpNo to Vis_Att_Green, the EmpNo item in the current record would display as green. When the input focus moved to EmpName, EmpNo would still be green and EmpName would not change.
- dr_gori
- Moderador
- Mensagens: 5024
- Registrado em: Seg, 03 Mai 2004 3:08 pm
- Localização: Portland, OR USA
- Contato:
Thomas F. G
Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered
Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered
pyro escreveu:sabe se tem como eu selecionar cada linha de uma grid com uma cor (dependendo do valor de um campo)?
SET_ITEM_INSTANCE_PROPERTY
-
- Moderador
- Mensagens: 1177
- Registrado em: Qui, 15 Out 2009 10:28 am
- Localização: Recife
mas aí tem que fazer pra todos os itens um por um.. não tem como fazer pra linha inteira de uma vez??
-
- Informação
-
Quem está online
Usuários navegando neste fórum: Nenhum usuário registrado e 18 visitantes