Seleccionar una opción del botón [Copiar a...]
AnsweredCómo puedo seleccionar dentro de una macro en la función Activate(), una opción del menú del botón [Copiar a]? la información del elemento es lo siguiente:
Ya intenté con Activate($[$3.1.1]) y click($[$3.1.1]) y en ninguna de ellas funciona.
-
Official comment
Hola José,
Este botón, para SAPB1 se considera como un Combobox, por lo que para seleccionar en automático una opción, deberás utilizar el comando Set();
Por ejemplo, en la macro el comando sería de esta manera:
Set($[$10000329.0.0]|Factura de proveedores);
-
Muchas Gracias Yaremi.
Todo funcionó correctamente.
Saludos
-
Is there something special that needs to be done to make this work. I have been trying to do exactly this on a multi-button on the Project and Subproject screens. We would like to eliminate the first choice of the "Add New Subproject" multi-button and force only the second choice - "Add Subproject from Template". I tried both setting it to the words and setting it to the value (P or T when queried after the click) with no luck.
(¿Hay algo especial que se necesita hacer para que esto funcione? He estado intentando hacer exactamente esto en un multi-botón en las pantallas del proyecto y del subproyecto. Quisiéramos eliminar la primera opción del multi-botón "Añadir nuevo subproyecto" y forzar sólo la segunda opción - "Agregar subproyecto de plantilla". Traté de establecer a las palabras y establecer el valor (P o T cuando se consultó después del clic) sin suerte.)
-
Hi Scott,
Does this answer you problem?
Thanks,
Thomas
-
Thanks Thomas, but I don't think so as the Set command has just never worked for me. It just never changes the multi-button. I will try a bit more but don't quite understand how it applies.
-
Thomas,
I'm beginning to think the "Add New Subproject" / "New Subproject from Template" multi-button on the Project and Subproject screens is unique within SBO. I can find no other multi-button that works in the same way - that is, to change the function of the button without actually activating that button. All of the others I find activate when a choice is selected like the "You can also..." buttons.
This is also why some of what you outlined in the linked note doesn't apply I think. Changing the option does not activate or open anything but it changes what does open when the button is pressed.
No luck at all in changing the default action of the button using a rule as we would like. Any other possibilities?
Thanks,
Scott -
Hello Scott,
Can you try using a B1 Validation system? A multibutton is like a Combobox, so try that when it has a new value, if they select the option, get an error message saying that they're not allowed.
-
Yes, I was able to prevent the use of the Default setting on the multi-button and present an error. Of course, having an default option on the screen that can't be used is not a great UX but it may be the best we can do. Best would be to set the button to the desired value and never show the user the choice that is not applicable.
-
Hi Scott,
I discussed about this with the development, and it seems this button is not the same type as the other multi-buttons just as you guessed. The bad news is that we don't support this button at the moment.
Development will try to look into this and see if we can support it in the future.
If/when supported, the correct macro will be:
Set($[$234000175.0.0]|T);
Click($[$234000175.0.0]);
Thanks,
Thomas
-
Thanks, Thomas, for looking into this further. You guys are the best!!
Please sign in to leave a comment.
Comments
10 comments