As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
hello good days I would like to know how to get the length of a string with a example very thanks good dayThis message has been edited. Last edited by: Kerry,
Both the method and examples are in the documentation which you access by clicking the help button in developers studio.
Alternativly search for the word length in the forum using the search tab you will find 789 items to look at where you will almost certainly find what you need
hello in the documentation use CAMPO/I10=lenght(NAME); BUT I WANT THAT THE FIELDLS GT 10 ARE EDIT FIELD... ELSE THAT ARE GOOD YOU UNDESRTAND
IN SPANISH YO QUIERO CALCULAR EL LARGO DEL CAMPO PARA QUE CUANDO EL CAMPO SEA MAYOR QUE 10 SE PUEDA EDITAR Y PONER ... Y SI ES MENOR QUE 10 SOLO SE VEA EL CAMPO Y no se como hacerlo mucahas gracias
Do you mean that you want to apply an EDIT to those fields that are greater than 10 characters in length? If so then just apply an EDIT mask of 10 chars or use SUBSTR.
En español
¿Quiere decir que desea aplicar un EDIT a los campos que son más de 10 caracteres de longitud? Si es así entonces solo se aplica una máscara de EDIT, de 10 caracteres o el uso SUBSTR.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
hello tony . example DEFINE FILE H_BEBENE CAMPO/I10=LENGHT(ENTIDAD_TRASLADO); IF CAMP0 GT 10 THEN GOTO EN ELSE SAL; -EN ENTIDAD_TRASLADO/A100=EDIT(ENTIDAD_TRASLADO,'9999999999...$$$$$$$$$$'); -SAL END VALUE OF ENTIDAD_TRASLADO RESULT CEPAIM ... CRUZ ROJA ... LA CALLE ... MINISTER HOLA ADIOS...
I WANT
CEPAIM CRUZ ROJA LA CALLE MINISTER HOLA ADIOS... PLEASE YOU CAN HELP ME THANKS
Firstly, you are trying to use field values (CAMPO) with dialogue manager which is not correct.
Secondly, LENGTH is maintain syntax and NOT reporting. ARGLEN is the reporting alternative(ish).
Thirdly you could use the result of CAMPO in a SUBSTR function
TABLE FILE CAR
PRINT MODEL
COMPUTE MODEL_LEN/I10 = ARGLEN(24, MODEL, 'I10');
COMPUTE NEW_MODEL/A24 = SUBSTR(24, MODEL, 1, MODEL_LEN, MODEL_LEN, NEW_MODEL);
BY MODEL
IF RECORDLIMIT EQ 10
END
This is all quite basic coding - have you had any traning?
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
EXPERTOMAD - I will try to translate what Tony said in Spanish, lastly try to get some training. Lo primero que necesita es una cuestión cuadro de mando contra el auto de archivo (como ejemplo). la sintaxis de archivo de la tabla de coche a continuación, imprimir el modelo y calcular su longitud utilizando la sintaxis de la ARGLEN y SUBSTR usuario por escrito subrutinas: COMPUTE MODEL_LEN/I10 = ARGLEN(24, MODEL, 'I10'); COMPUTE NEW_MODEL/A24 = SUBSTR(24, MODEL, 1, MODEL_LEN, MODEL_LEN, NEW_MODEL); ordenada por el verbo objeto. en este ejemplo es: modelo seguido por fin en una línea por sí mismo por último, tratar de obtener algún tipo de formación