Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Falha no GetFieldsByType em condição única #1

Closed
GShalon opened this issue Apr 9, 2021 · 1 comment
Closed

Falha no GetFieldsByType em condição única #1

GShalon opened this issue Apr 9, 2021 · 1 comment

Comments

@GShalon
Copy link

GShalon commented Apr 9, 2021

Buenas,

Quando o primeiro campo do banco está marcado como FbIgnoreGet, ao retornar a lista de campos para o Search, inicia a string com "," (virgula), gerando exception. Quando além do guiid adicionei o phone no FbIngnoreGet, duplicou o campo name.

[FieldJSONBind('guuid'), FbIgnorePost, FbIgnorePut, **FbIgnoreGet]**
[FieldDataSetBind('guuid',ftString,False,0,'Código')]
[ComponentBindStyle(COLOR_BACKGROUND, FONT_H6, FONT_COLOR3, FONT_NAME)]
EditCodigo: TEdit;

Exemplo de retorno para esse método no Zero To Hero: ',name,phone,occupation,balance,birthdate,lasttransaction,cpf,cnpj'

Com dois campos com ignoreGet: ',name,name,occupation,balance,birthdate,lasttransaction,cpf,cnpj,'

function TBind4D.GetFieldsByType(aType : TTypeBindFormJson) : String;
var
aAttr : FieldJsonBind;
begin
for aAttr in RttiUtils.Get(FForm) do
Result := Result + aType.This.GetJsonName(aAttr.Component) + ',';
Result := Copy(Result, 1, Length(Result) -1);
end;

Grato!

bittencourtthulio added a commit that referenced this issue Apr 10, 2021
Falha no GetFieldsByType em condição única #1
@bittencourtthulio
Copy link
Collaborator

Corrigido na versão 1.0.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants