Print Page | Close Window

External Element Doubt

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: http://www.metacase.com/forums/forum_posts.asp?TID=894
Printed Date: 19.Apr.2024 at 00:00
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: External Element Doubt
Posted By: cmorais
Subject: External Element Doubt
Date Posted: 08.Aug.2018 at 12:30
I think it's a silly doubt, but I can't figure out yet.

So, I have a list of itens in a text file... I wish I could load it as a itens for a object.

As in "Volvo, ford, VW, FIAT", and when I create a new "Car" object, I can choose the "manufacturer" attribute from a list from this external file.

I looked all the external element property element, but I can't find a way to do this...

Is it possible?



Replies:
Posted By: stevek
Date Posted: 08.Aug.2018 at 12:42
You can do that by using a String data type with a http://www.metacase.com/support/55/manuals/mwb/Mw-2_6_4.html#Heading527" rel="nofollow - Fixed List widget, choosing http://www.metacase.com/support/55/manuals/mwb/Mw-2_6_4.html#Heading525" rel="nofollow - Edit as Text for the values, and paste (or File | Insert File...) the file contents (which should be one per line). If you want to change the set of available values, just repeat.

If you want the set of values to be read on the fly each time the user is filling in such a property, you can use a http://www.metacase.com/support/55/manuals/mwb/Mw-2_6_4.html#Heading535" rel="nofollow - SOAP Fixed List widget. You can then code whatever you want for the web service, e.g. to read a text file, fetch something from a database, grab some JSON from a REST service on the net etc.

( http://www.metacase.com/support/55/manuals/mwb/Mw-2_6_4.html#Heading523" rel="nofollow - External Element widgets are for something different: their value is a URL or file name, so a model element can refer to an external file, and the modeller can easily open the target from the popup menu.)


Posted By: Marros
Date Posted: 28.Nov.2018 at 11:52
Hi Steve, are you using the SOAP Fixed List widget yourself? Did you encounter any issues with it?

-------------
I think https://www.muscleandfitness.com/features/feature-gear/best-anti-snoring-devices/" rel="nofollow - these devices are the best solution to snoring so check them out.


Posted By: stevek
Date Posted: 28.Nov.2018 at 12:35
Sure, no problems here. Drop me a PM if you're having issues - most often it's just a question of the settings of the SOAP framework at the other end. 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net