19
Views
12
Comments
[Image Picker] Getting undefined error for MABS9
Question
image-picker
Mobile icon
Forge asset by Aj..
Application Type
Mobile

Getting undefined is not an object (evaluating 'window.imagePicker.getPictures')  error when trying to use the plugin. We recently upgraded MABS to 9.0

2023-01-25 05-43-21
Murugan S S

Hi Balaji, 


Please try with demo application then implement your requirements I would request.  

UserImage.jpg
Balaji Chandran

Hi,

We implemented the solution according to demo application only. Earlier it was working until MABS8.1. Now after upgrading to 9 it's not working.

2023-01-25 05-43-21
Murugan S S

Hi Balaji, 

I would request remove the existing image picker config and implementation and try new config and implementation again. If not working please share the POC OML with error .

UserImage.jpg
Balaji Chandran

Hi Murugan,

Can you try generating the demo app in MABS9 and let me know if you are facing the same issue as I cannot share my oml details here due to sensitivity?

2023-01-25 05-43-21
Murugan S S

 Hi Balaji, 


Sure, Am already doing, Will update you

2023-01-25 05-43-21
Murugan S S

Hi Balaji, 

FYI, 


It's recommended to update all supported plugins to the latest version available on the Forge. If you're upgrading from MABS 8, all plugins should already be compliant. From MABS 7 or previous, it's MANDATORY to upgrade to the latest version. 

2023-01-25 05-43-21
Murugan S S
UserImage.jpg
Balaji Chandran

Hi Murugan,

Yes, thats why i posted here to get an update from the plugin owner to get new version according to MABS release notes. FYI, please note that this plugin needs to be updated according to MABS9 and not our application.

2023-01-25 05-43-21
Murugan S S

Hi Balaji, 


No issues in code level, Generating Android App will update you once done. 


Thanks

Murugan S S

2023-01-25 05-43-21
Murugan S S

hi balaji, 


Hope are you getting os_mabs_gen_50000 error. 

Need to raise support case no issues in our code level. FYI, https://success.outsystems.com/support/errors/mabs_errors/os_mabs_gen_50000/ 


AndroidBuildLog.txt
2023-01-25 05-43-21
Murugan S S

Hi Balaji, 

Here the solution, try and let me know if you are facing any issues.

  1. Open the Image Picker Application in your Service Studio
  2. Go to Data tab -> Resources -> Right-click in the imagePicker.zip and download it
  3. Unzip it
  4. Search for plugin.xml
  5. Locate the "<resource-file src="src/android/Library/res/values/themes.xml" target="res/values/themes.xml"/>”
  6. Change the “target="res/values/themes.xml"/>” to something different like “themes-custom.xml”
  7. Save the xml file
  8. Zip the imagePicker folder
  9. Import the imagePicker.zip to the Resources in Service Studio
  10. Publish the App
  11. Generate the App
UserImage.jpg
Balaji Chandran

Hi,

Getting error "undefined is not an object (evaluating 'window.imagePicker.getPictures') " again. Is there any change to do with plugin?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.