[U2] java encoding problem

2007-08-13 Thread chuchi
Hi all,

I'm using asjava.jar and I have some problems encoding latin data.
I'm using cp858 charset to encode the data. In Unix all works fine but
in windows not. I'm encoding the String:

C!C)C-C3C:CC   C
CCC1Cb,

If I encode this string with cp858, all works fine if the java
application is in unix, but if I execute the same code in a Windows I
cannot see the C and b, characters. The Universe server is in a Unix
machine.

Can you help me?

Thanks a lot,
Chuchi
 
Pulse para ir al sitio web  
JesC:s Barbero RodrC-guez
Departamento de AnC!lisis y ProgramaciC3n - Desarrollo tecnolC3gico
Zoco Gran Santander, 1B* Planta b  39011 PeC1acastillo b  Santander b  
ESPACA

Tel.: +34 902 233 323 b  Fax: +34 902 234 280




AVISO LEGAL: Este mensaje contiene informaciC3n destinada exclusivamente
al usuario de destino, pudiendo contener informaciC3n confidencial o
protegida legalmente. Si, por un error de envC-o o transmisiC3n, ha
recibido este mensaje y usted no es el destinatario del mismo, por
favor, notifique de este hecho al remitente y no use, informe,
distribuya, imprima, copie o difunda este mensaje bajo ningC:n medio .
Cualquier opiniC3n en C)l contenida, es exclusiva de su autor y no
representa necesariamente la opiniC3n de Quiter Servicios InformC!ticos,
S.L.

LEGAL WARNING: This e-mail and any attachment, contain information
intended solely for the addressee and may contain confidential
information or legally protected data. If you are not the intended
recipient, please notify the sender and do not use, disclose,
distribute, copy, print or rely on this e-mail under any circumstances.
The views and opinions expressed are the authorE=s own and do not
necessarily reflect those of Quiter Servicios InformC!ticos, S.L.   
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Logged user list

2007-07-11 Thread chuchi
Thank you very much for your help!

in Unix, PORT.STATUS only show the users with the same name but this is
my requeriment.

Thanks again.


El miC), 11-07-2007 a las 16:05 +1000, Ray Wurlod escribiC3:

 Assuming this is UniVerse on UNIX, you have the PORT.STATUS command in the UV 
 account, and you have ipcs -m | grep aceb at the operating system level.
 
 If it's Windows-based UniVerse you still have PORT.STATUS.  The equivalent of 
 ipcs is shrdump, but you don't have an equivalent for grep.  So you need your 
 own mechanism for parsing out the aceb entries.
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
 

 
Pulse para ir al sitio web  
JesC:s Barbero RodrC-guez
Departamento de AnC!lisis y ProgramaciC3n - Desarrollo tecnolC3gico
Zoco Gran Santander, 1B* Planta b  39011 PeC1acastillo b  Santander b  
ESPACA

Tel.: +34 902 233 323 b  Fax: +34 902 234 280




AVISO LEGAL: Este mensaje contiene informaciC3n destinada exclusivamente
al usuario de destino, pudiendo contener informaciC3n confidencial o
protegida legalmente. Si, por un error de envC-o o transmisiC3n, ha
recibido este mensaje y usted no es el destinatario del mismo, por
favor, notifique de este hecho al remitente y no use, informe,
distribuya, imprima, copie o difunda este mensaje bajo ningC:n medio .
Cualquier opiniC3n en C)l contenida, es exclusiva de su autor y no
representa necesariamente la opiniC3n de Quiter Servicios InformC!ticos,
S.L.

LEGAL WARNING: This e-mail and any attachment, contain information
intended solely for the addressee and may contain confidential
information or legally protected data. If you are not the intended
recipient, please notify the sender and do not use, disclose,
distribute, copy, print or rely on this e-mail under any circumstances.
The views and opinions expressed are the authorE=s own and do not
necessarily reflect those of Quiter Servicios InformC!ticos, S.L.   
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] Logged user list

2007-07-10 Thread chuchi
Hi all,

I have some problems getting the users currently logged into the
system. If I launch a LISTU command, in some operating systems I cannot
see the user names, only the ids. There are any way to get the user name
list in TCL, basic or any operating system commnad?

Regards,
Chuchi
 
Pulse para ir al sitio web  
JesC:s Barbero RodrC-guez
Departamento de AnC!lisis y ProgramaciC3n - Desarrollo tecnolC3gico
Zoco Gran Santander, 1B* Planta b  39011 PeC1acastillo b  Santander b  
ESPACA

Tel.: +34 902 233 323 b  Fax: +34 902 234 280




AVISO LEGAL: Este mensaje contiene informaciC3n destinada exclusivamente
al usuario de destino, pudiendo contener informaciC3n confidencial o
protegida legalmente. Si, por un error de envC-o o transmisiC3n, ha
recibido este mensaje y usted no es el destinatario del mismo, por
favor, notifique de este hecho al remitente y no use, informe,
distribuya, imprima, copie o difunda este mensaje bajo ningC:n medio .
Cualquier opiniC3n en C)l contenida, es exclusiva de su autor y no
representa necesariamente la opiniC3n de Quiter Servicios InformC!ticos,
S.L.

LEGAL WARNING: This e-mail and any attachment, contain information
intended solely for the addressee and may contain confidential
information or legally protected data. If you are not the intended
recipient, please notify the sender and do not use, disclose,
distribute, copy, print or rely on this e-mail under any circumstances.
The views and opinions expressed are the authorE=s own and do not
necessarily reflect those of Quiter Servicios InformC!ticos, S.L.   
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] Triggers

2006-11-28 Thread chuchi
Hi all!!

Someone know if exists triggers in Universe??

Thanks all!!
 
Pulse para ir al sitio web  
JesC:s Barbero RodrC-guez
Departamento de AnC!lisis y ProgramaciC3n - Desarrollo tecnolC3gico
Zoco Gran Santander, 1B* Planta  b   39011   PeC1acastillo  b   Santander  b 
ESPACA

Tel.: +34 902 233 323 b  Fax: +34 902 234 280



AVISO LEGAL: Este mensaje contiene informaciC3n destinada exclusivamente
al usuario de destino, pudiendo contener informaciC3n confidencial o
protegida legalmente. Si, por un error de envC-o o transmisiC3n, ha
recibido este mensaje y usted no es el destinatario del mismo, por
favor, notifique de este hecho al remitente y no use, informe,
distribuya, imprima, copie o difunda este mensaje bajo ningC:n medio .
Cualquier opiniC3n en C)l contenida, es exclusiva de su autor y no
representa necesariamente la opiniC3n de Quiter Servicios InformC!ticos,
S.L.

LEGAL WARNING: This e-mail and any attachment, contain information
intended solely for the addressee and may contain confidential
information or legally protected data. If you are not the intended
recipient, please notify the sender and do not use, disclose,
distribute, copy, print or rely on this e-mail under any circumstances.
The views and opinions expressed are the authorE=s own and do not
necessarily reflect those of Quiter Servicios InformC!ticos, S.L.   
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] gtk and intercall

2006-07-27 Thread chuchi
Hi all again,

Thanks all for the responses to my lock record doubt. I have another
problem... I'm developing a linux application with GTK. When i launch
and ic_read with a main program without GTK all works fine but, if i
launch the same code with a GTK GUI, i have problems with the encoding
(gtk returns gtk_utf8_validate error). Using gtk, when i try to split a
record, don't found the separator I_FM... ?Any idea?

This is the sample code:

//Abrimos sesisn

session_id = ic_opensession(xhost, xusuario, xpassword, xcuenta, code,
NULL);
if (code != 0){
fprintf(stderr, Failed to open session. Code = %d\n, code);
}

//Abrimos el fichero UP
long id_fichero;
long nombre_len;
long flag = IK_DATA;
long status_func;
nombre_len = strlen(fichero);
ic_open (id_fichero, flag, fichero, nombre_len, status_func,
code);
printf(Status of function: %d \n,status_func);
if (code != 0){
fprintf(stderr, Failed to open file. Code = %d\n, code);
return;
}

flag = IK_READU;
nombre_len = strlen(registro);
//Leemos el fichero 
//TODO Habra que cambiarlo para leerlo secuencial porque si es muy
grande no cabe en el buffer

ic_read(id_fichero,flag,registro,nombre_len,buffer,tam_buffer,leido,status_func,
 code);
if (code != 0){
fprintf(stderr, Failed to read record. Code = %d\n, code);
long code2;
ic_close(fichero,code2);
return;
}


//
int field = 1;
printf(Size of record = %d\n, *leido);
printf(Record contents:\n);
printf(Field %02d: , field);
int i=0;
for (i=0; i *leido; i++)
{
unsigned char ch = buffer[i];

if (isprint(ch))
putchar(ch);
else if (ch == I_FM)
{
field++;
printf(\nField %02d: , field);
}
else
printf(\n%02x\n, ch);
}
putchar('\n');
/



ic_close(id_fichero,code);
if (code != 0){
fprintf(stderr, Failed to close file. Code = %d\n, code);
return;
}

Thanks again!!!
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] lock records

2006-07-26 Thread chuchi
Thanks all for your answer.

I understand the issue, one phantom process only for lock management.
But i don't know how to create and communicate with this phantom
process.

Could you explain a little bit or give me an example or URL?

Thanks



El mar, 25-07-2006 a las 13:09 -0400, Results escribis:
 Chuchi,
 Don't have the session lock them. Send the lock requests to a 
 persistant phantom. It can do the locks and unlocks. You'd set it up 
 like this:
 
  File: LOCK.QUEUE
   Program: ACQUIRE.LOCK - which asks the Phantom to lock an item by 
 putting the details in the LOCK.QUEUE file.
   Program: RELEASE.LOCK - which asks the Phantom to unlock an item 
 by putting the details in the LOCK.QUEUE file.
   Program: READ.THROUGH.LOCK - which asks the Phantom to read the 
 locked item by putting the details in the LOCK.QUEUE file.
 
   Best of luck.
 
 chuchi wrote:
 
 Hi all,
 
  I want to lock a record from UniObjects in the server until i unlock by
 hand. My problem is that when lock a record and close session or app
 ends, Universe unlock this record. Do you know if I can do it??
 
 Thanks all!!
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] lock records

2006-07-25 Thread chuchi
Hi all,

I want to lock a record from UniObjects in the server until i unlock by
hand. My problem is that when lock a record and close session or app
ends, Universe unlock this record. Do you know if I can do it??

Thanks all!!
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/