It reads all the records in the table, although I indicate the key to bring only 1 record. #5396
Answered
by
patriciomh1965
patriciomh1965
asked this question in
Help
Replies: 2 comments 2 replies
-
When you call To fix the issue, you might want to use |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks for your help, I will implement it. Atte.-
El mié, 27 ene 2021 a las 6:55, Edward (<[email protected]>)
escribió:
… Correct, using TaMaeUbicacionesRiesgoService.Retrieve will do a trip the
database and fetch only this one record.
var d = BaseDatos.TaMaeUbicacionesRiesgoService.Retrieve({
EntityId: item.MseNumeroSeguro // or whatever your Id field is for this type}, response => {
this.form.SomeField.value = response.Entity.SomeField;
this.form.SomeForeignKeyId.value = Q.toId(response.Entity.SomeForeignKeyId);
// you can do anything in the response, really});
Good luck!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5396 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKCDGGVOYG2MQ4MA47PUDZ3S37PJDANCNFSM4WRV47BA>
.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
patriciomh1965
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Community
I have a reading problem in the XYZGrid. I am reading a table to obtain 1 record, the data obtained is transferred to a form. But it brings me all the records in the table, which is why it takes a long time to open the form.
I would appreciate the help you can offer me. Atte.-
Next I show you the image and the classes:
XYZGrid :
namespace SegurosMAPC.BaseDatos {
HERE IS THE READING TO THE TABLE :
_ END READING:_
}
XYZRow
namespace SegurosMAPC.BaseDatos.Entities
{
using Serenity;
using Serenity.ComponentModel;
using Serenity.Data;
using Serenity.Data.Mapping;
using System;
using System.ComponentModel;
using System.IO;
}
Beta Was this translation helpful? Give feedback.
All reactions