In my Flex Application I am receiving Unicode result from back end ( web service) an displaying it in Flex Label component
Eg. Response string = [\u8868\u7af9\uff5eFulfillment~~~~ja]
I am binding response to label component
When I am displaying it in label its not showing me Japanese character .
Storing this information in properties file works
Eg.
Result.properties
Res=[\u8868\u7af9\uff5eFulfillment~~~~ja]
In side flex component
define a metadata tag for Result.properties file
call it in Label component as resourceManager.getString(‘Result’,,’Res’)
This show the japaness data in UI
Please provide me with suitable guidance
You can find a pretty good article and sample solution of that problem here: http://www.savage7.com/index.php/2009/08/adobe-flex-3-how-to-create-localized-ui-component-control/
It's bigger than one would have imagined, but it gives you flexibility for future localization changes.
Related
I've already tried setting android attributes like contentdescription by creating a custom element and setting the attribute on the renderer using the control.
Control.ContentDescription = ((MyEntry)e.NewElement).ContentDescription;
Is there a way to do it on the XAML rather than custom renderer?
Another, how can I set the android:id attribute? I've tried it change it on custom render but I think it's not working.
Sidenote: I'm using a RealWear device which can generats a script which has the UI elements of the page. The UI elements will contain the id attribute if it exists.
Hello and welcome to StackOverflow.
you can't add Android descriptions to xamarin forms elements.
Xamarin forms abstracts the ui to a non-native format (xaml) and converts the abstract definition of an element to a native one. However this happens "under the hood" and therefore you don't have direct access to that from xamarin.forms.
What you could do is, if you really need an element with a set id, you can either find a way to hack in your id using a custom renderer or you create and embed native elements.
For the latter please see the following microsoft article, which is a bit too much to include within this answer: https://msdn.microsoft.com/en-us/magazine/mt790186.aspx
I have a .aar file component which has the below functions.
1) Open camera
2) Open gallery
3) Return a string which is given as input
4) Open a new view which displays the passed input string.
I have created an Android binding library for this and referenced in Xamarin Forms Android. I am able to perform the first three operations correctly. But when i call the fourth function, I am getting a dark colour background with actionbar containing projectName.Android text. This actually should show a white colour view with the passed input string as label.
The input params for this method is Context and string. I am passing the correct context because i am getting the correct output from the other three methods. Also when this same .aar library is binded in a native android app, it is showing all methods properly. Can anyone help me whether I am doing anything wrong?
I can share the .aar file/binding library dll/sample code, if required.
I got the answer. We need to add a JavaDocs folder at the Binding project and copy the JavaDoc files obtained while building the native component to this folder. Then need to add the index.html present in the folder and need to set the build action to JavaDocIndex. Now this binding needs to be build and refer to the android project which will display the view also while calling the method.
I am developing a web application in which we have generated labels with barcode. Now we need to read these labels during packing stage.
I understand that Barcode scanners work as keyboard entry so I have created a View with text box to read the barcodes from labels. When I scan any label its reading barcode and automatically directing to some search page.
View
<td>
#Html.TextBoxFor(model => model.StyleNumber)
#* <input type = "text" style="border:0px;" value = "" />*#
</td>
There are 2 issues :
Automatically append row with a text box with for each label
Not to direct to some other page and have all the scanned labels on the same page to be read and used for further processing.
I have tried a lot but didn't find anything concrete. Please advise.
I'd like to suggest to move in this direction:
Obtain technical specification of barcode reader
Barcode should add some "begin and ending char" before and after the barcode read
Example if you barcode in 123456 reader can add 123456/n
where /n is new line or something else
You can monitor keydown of text field and monitor when text change and you detect ending character, at this point you can submit the form that contain your textbox. You can use javascript/Jquery
http://www.aaronkjackson.com/2011/02/quick-tip-use-jquery-to-submit-a-textbox/
This example if the first that I've found but it can be improved for example sumitting a form without button
You can perform barcode validation on server side
At this point you can process barcode on server side and return void from controller method. Y
You can improve solution providing some better user experince for example validating barcode client side or hide the text control or submit data using jquery insted of form like this:
How to send data in jquery.post to mvc controller which use ViewModel as parameter?
Pay attention on setting focus over control otherwise if user ckick mouse out of text control the text read form barcode reader isn't inserted into textbox.
I think that could be possibile develop some ActiveX but this is more invasive solution
HTML5 is your answer. But it will work in HTML5 compatible browser only. If you are targeting older version of browser you need to create Activex which is pretty old and not secure.
There is a jquery plugin for reading QR and Barcode which is worth looking into it.
http://dwa012.github.io/html5-qrcode/
Another way is doing capturing it on mobile devices with HTML5
http://www.html5rocks.com/en/tutorials/getusermedia/intro/
There is a paid option also.
http://www.visionsmarts.com/products/barcode-shell.html
There is this magical To-Address field in yahoo mail , which you can type-in the names and shows you an auto-complete list , click on the names and then a block shows up in the field , each block has a tiny x mark and you can just delete the names from the field and all remaining block shift to left to fill it's place !
how can i achieve this behavior for a address field in my application , with minimal effort on asp.net ?
plus : i mainly looking for a .net component which is preferably free to use , the commercial one's are appreciated .
Rather than a .NET component, take a look at some client side plugins. TagIt, for JQuery, is a good one for doing just what you are talking about doing. Here is a demo: http://webspirited.com/tagit/
You can also wire up a web service and retrieve values from the server based on the input the user has entered (auto complete functionality). It's definitely one close to what you are referring to.
If I generate a REST service call with the Data/Services tab and execute it, Flex messes up my url parameters.
I have entered two parameters, key and getAllDescendants, and this is the url Flex calls:
/edumatic3/trunk/services/service.svc/rest/GetNodeByKey?0=1&1=false&getAllDescendants=false&key=1
Notice the 0=1 and 1=false...
Is this normal behavior? All code has been generated by Flex. I could off course write my own code but since Flex generates it, I taught it would work (;-)).