How can I show the "loading"-spinner animation in SAP Commerce Cloud/Hybris Backoffice? - sap-commerce-cloud

How can I show and hide the default "work in progress"-spinner animation in SAP Commerce Cloud Backoffice via Java?
Is there an existing method for this?

You can use the following :
To display the spinner :
Clients.evalJavaScript("zAu.cmd0.showBusy();");
To hide the spinner :
Clients.evalJavaScript("zAu.cmd0.clearBusy();");

Related

How to create a pop up in hybris backoffice?

I am trying to create a popup message in the Backoffice PCM. In particular, from within the editor area of a product. From the editor a user can click on the assortment view or compare view buttons on the side toolbar to change screens (redirect).
I want to give the user a popup to inform them that any changes will be lost.
Any ideas on how to accomplish this?
I have tried to create my own widget and wiring my custom widget to the ootb pcmbackoffice-toolbar but have not been successful.
It's possible to display a simple popup via the ZK framework (the framework used by Backoffice). From the backoffice code you can open a popup like this:
import org.zkoss.zul.Messagebox;
public void someMethod() {
// do some actions...
Messagebox.show("Some Messagetext", "Info", Messagebox.OK, Messagebox.INFO);
}

Hybris SmartEdit : Rotating Images component not displaying any fields under content tab

I am using 6.4 version of Hybris. Added a banner carousel using Rotating Images component (assigned 3 banners to rotating images component).
This component is allowing to edit banners through WCMS edit mode, but in smart edit not displaying any editable fields under content section.
Can you anyone please help me with this ?
The rotating banner component is not editable even in Hybris 6.7, something SAP has to bring in next set of Smartedit fixes

Selector field displaying as free text acumatica mobile

I am trying to display WorkflowStage property as selector field just like in web application as screenshot below.
And this is the code that I have added in the xml file.
But still it gets rendered as a textbox field in mobile (free text) like this.
What is missing here?
As of right now, Acumatica mobile apps do not support Tree Selectors used in various screens inside Acumatica. Adding Workflow Stage as a text box field is the only possible way to add such fields on a mobile device.

Issue after editing Search Properties in coded UI?

We are using coded ui test using visual studio 2010.We are testing .Net 4.0 windows application.
Here is an scenario.
We have an windows app which has a button named submit and we have recorded a workflow which clicks on submit.
Now when we generate code using coded ui the serach criteria for the button is based on its name (display name of button).
If tommorrow developer changes the button's text to submit1 , our scripts fail.
We tried using "controlName"[name given to the control and not the display name] property in search criteria instead of Name , but it does not work.
We get following error - "The playback failed to find the control with the given search properties"
Related problem happens to me also. I solved it by sending the Focus to the UI control before using that control.
Try this.
this.UIAssettePresentationsWindow2.UINOWindow.UINOButton.SetFocus();

how to add radiobutton for a category in editor part sharepoint

how to add radiobutton for a category in editor part sharepoint??
for dropdownlist, textbox ,checkbox we can use enum,string or int,bool but if i want to add radiobutton,radiobuttonlist or any other control in a particular category then how can add it.?
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.custompropertytoolpart.aspx
By creating a custom toolpart you have complete control over how your toolpart behaves.
Creating a Web Part with a Custom Tool Part

Resources