Page 1 of 1

Campo EDIT que sea un campo de otra Base de datos

Posted: Tue Mar 30, 2010 11:41 am
by JALMAG
Hola amigos, estoy realizando un programa de Comunidades de Propietarios, donde un campo de propietario es la Comunidad a la que pertenece, la cuestión es que en Clipper se podia hacer que un campo fuera el campo de otra base de datos. ¿Es esto posible en HMG?

Muchas gracias amigos.

English:

Dear friends, i am a program of Communities of Owners, where a field of owner is the Community which belongs to, the question is that in Clipper could make a field outside the field of another database. Is this possible in HMG? Thank you friends.

Re: Campo EDIT que sea un campo de otra Base de datos

Posted: Tue Mar 30, 2010 12:30 pm
by esgici
Hola JALMAG

Sorry, I don't understood your question. Probably translation lack :(

Could you send a small example on how Clipper "make a field" ?

Saludos, regards

--

Esgici

Re: Campo EDIT que sea un campo de otra Base de datos

Posted: Tue Mar 30, 2010 12:42 pm
by JALMAG
esgici wrote:Hola JALMAG

Sorry, I don't understood your question. Probably translation lack :(

Could you send a small example on how Clipper "make a field" ?

Saludos, regards

--

Esgici
Me explico mejor, En Clipper, se podia realizar que un campo de una base de datos fuera el campo de otra base de datos. Osea, imaginemos que estoy creando una factura, hay un campo que es el cliente, la pregunta es ¿Cómo podria hacer que ese campo desplegara los clientes para seleccionarlo directamente en un scroll?.

He cojido este ejemplo en Clipper, es parecido...

This is an example of a nested READ using a GetList and
lexical scoping:

#include "inkey.ch"
//
// Local to this function only
LOCAL GetList := {}
LOCAL cName := SPACE( 10 )
//
CLS
SETKEY( K_F2, { || MiscInfo() } ) // Hot key to special READ
//
// Get object added to getlist
// works on local getlist
@ 10, 10 SAY "Name" GET cName
READ
//
RETURN NIL

/***
* MiscInfo() ---> NIL
*/FUNCTION MiscInfo()
//
LOCAL GetList := {} // Local to this
LOCAL cExtraInfo := SPACE( 30 ) // function only
//
// Get object added to getlist
// works on local getlist
@ 12, 10 SAY "Note: " GET cExtraInfo
READ
//
RETURN NIL

English ¿...?

I explain me better, In Clipper, to carry out that a field of a database was the field of another database. Imagine that am creating a bill, there is a field that is the client, the question is How to do that that field spread clients to select it directly in a scroll?.

I have this example in Clipper, is similar...

Re: Campo EDIT que sea un campo de otra Base de datos

Posted: Tue Mar 30, 2010 1:14 pm
by Rathinagiri
If I understand correctly,

You are creating an invoice. An invoice can be for one client. We have the client details in another dbf file. You want to select a client from customer data file from a list of customers. Isn't it?

If that is the problem, we have combo box, listbox and grid for this.

Re: Campo EDIT que sea un campo de otra Base de datos

Posted: Tue Mar 30, 2010 1:52 pm
by esgici
rathinagiri wrote:If I understand correctly,

You are creating an invoice. An invoice can be for one client. We have the client details in another dbf file. You want to select a client from customer data file from a list of customers. Isn't it?

If that is the problem, we have combo box, listbox and grid for this.
Hi

Yes, I agree.

Regards, saludos

--

Esgici

Re: Campo EDIT que sea un campo de otra Base de datos

Posted: Tue Mar 30, 2010 4:06 pm
by esgici
Hola JALMAG

Please take a look at a nice project of our friend Sudip.

I hope that it will be useful for you.

Regards, saludos

--

Esgici

Re: Campo EDIT que sea un campo de otra Base de datos

Posted: Tue Mar 30, 2010 9:04 pm
by JALMAG
[quote="esgici"]Hola JALMAG

Please take a look at a nice project of our friend Sudip.

I hope that it will be useful for you.

Regards, saludos

--

Esgici[/quote

Muchas gracias Esgici, parece que es muy interesante.
Regards.

English:
Thank you very much Esgici, seems that it(he,she) is very interesting.
Regards.