
Announcements
I came across this code to add a specific search base to a website: https://www.agrian.com/labelcenter/inst.cfm , and I would really like to add it to my app. It looks like the code provided is javascript and I know PowerApps doesn't use that. However, I have seen some people find other ways to either use or translate the javascript to work for PowerApps (??). I'm new to this so I'm not sure if it's possible to add the search bar from this website to my app. The only information they provided is the following:
Below are the instructions needed to add the Agrian Label Search to your website. It describes the changes that need to be made to your website's HTML. If you do not have access to make these changes or if you do not know how to make these changes, send the instructions to your webmaster. If you have questions, please call us at (559) 437-5700.
1) Include the following where you would like the search box to appear:
<script language="javascript" src="https://www.agrian.com/labelcenter/labelsearchframe.js">
</script>
I've seen it MIGHT be possible using a model-driven app instead of canvas, but I've never made a model-driven app so I'm not sure how or if that's true and I don't want to spend time on a new app if there's an easier or other solution. Please let me know! Also, I'm new to this so a more thorough explanation would be appreciated. Thank you!
I don't know if you can add javascript to a model driven or not. I don't believe you can in a canvas app, at least not by design.
Would this not be a viable way to search their database for you? (Place on a button or other clickable control)
Launch("https://agrian.com/labelcenter/results.cfm?s="&labelSearch.Text, {}, LaunchTarget.New)