cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Recover custom widget from imported project

Recover custom widget from imported project

Sgilk
Frequent Contributor

Hello,

Is it possible to recover source code of a custom widget used in an imported WebIQ project? In the case that a project was shared without the source packages, and a change to a package is required, this would be necessary.

3 REPLIES 3

webiq-sk
Frequent Contributor

Installing a package copies the package files into the project. You can try to recover this, but this is not officially supported.

Files installed with packages are logged in .webiq/pkg-index.json.gz 

 

Sgilk
Frequent Contributor

Ok, so the package would need to be manually reassembled from the source files listed in the pkg-index.json? This doesn't seem practical. Really the packages need to be shipped with the project. Maybe a good idea as an option for future releases.

webiq-sk
Frequent Contributor

You wrote: "In the case that a project was shared without the source packages, and a change to a package is required, this would be necessary."

So trying to recover the package from the project sounds like a workaround to me. The solution would probably be to obtain the corresponding package and the problem should be solved.

Recovering package files from a project is not a valid use case for us. However, simply parsing the JSON file and copying the files should be a very short script anyway so there is an option for this edge case. I've never before heard of someone requesting this though.

Also, by not being able to configure the widget without having the package installed in WebIQ Designer you can develop a custom widget for a customer who can use it, but cannot change the configuration of the widget so this would have to be done by you, unless you ship the package to him as well. Sometimes this is a valid use-case where you want the customer to be able to modify the HMI you created for HIM to a certain point, but not for some specific custom widgets because the customer might break something by changing parameters of your custom widget.

 

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist