how can I input multi line string in yii? - text

I want to make a yii program to add some name to my database at once.
so I need an input field that can get multi line/ multi row. so I can input some name, and then input to databases. how can I do that? how can I make text field (this is default field from yii) to get multi line input string? or do i need to use other than text field?

It is called textarea, after the appropriate HTML tag.
CActiveForm::textArea()
CHtml::textArea()

Related

Adding multiple fields for the same template in Data Catalog using python

I have a tag template in data catalog with name 'data check' and i need to add multiple fields to this template using python code by reading from a text file
the text file consists the following
name,age,salary
ricky,23,20k
ricky,25,25k
ricky,30,30k
rishab,22,30k
rishab,23,40k
rishab,29,35k
i need to add these fields to the tag template "data check" in data catalog. need help
tried reading the text file and tried adding these lines to the template, but facing errors
Error: 409 Template.ricky already exists for the second line for ricky and so on...
I assume that you have CSV file and the first line in your file is header, and consecutive lines contain data to be put in tags.
The tag template is reusable specification of a tag. In your example, you could have tag template data check with 3 fields: name of type String, age of type Int and salary of type string. Here is example Python script for creating tag template. Names for tag templates must be unique within the project, and this is probably the reason you get error when trying to create it (you have multiple lines with ricky name that you use as a tag template name).
You can't store data (such as ricky,23,20k) in tag template. Tag template only says what is the schema of tag. Tag is actual application of tag template with some data filled in (e.g. name=ricky, age=23, salary=20k). To create Tag you must have an Entry in Data Catalog, on which the tag will be created. On one Entry you can create only one tag using the same tag template.
To sum up, CSV header of the file corresponds to Tag Template, and each consecutive line corresponds to Tag. There is no explicit information in the file that could be used to specify entry (you can't use name column because names of entries must be unique). For each data line and Tag you need to create a separate Entry.

Azure Search Service documents fields verses Index fields

I am trying to understand how Azure Search Service works. If you have a comma delimited file that contains 4 fields, do you have to create an Index that contains all four fields? If you don't care about one of the fields in the comma delimited file, can you just not include it in the Index definition? When you upload the data (using code) will Azure Search Service just ignore the additional field, throw an error, or create a new field in the index?
If you have a comma delimited file that contains 4 fields, do you have
to create an Index that contains all four fields?
Not really.
If you don't care about one of the fields in the comma delimited file,
can you just not include it in the Index definition?
Yes, you can certainly do that. If you really don't care about the field then you can simply skip that field during the import process. You don't really have to create a field for that as well.
Yet another option would be to include the field and set its attribute in such a way that you are not able to perform any searches on that field. For example, you can set this field's searchable and filterable attributes to false but set retrievable attribute to true so that you can at least see this in your search results. More about field attributes can be found here: https://learn.microsoft.com/en-us/rest/api/searchservice/create-index#bkmk_indexAttrib.

Reading multiple values in a PDF417 barcode

I have a PDF417 barcode that contains multiple values delimited by a semicolon. How can I get Kofax 10 to read those values as two separate index fields? I've created my index zone:
Is this done only through a script, or is there some setting I can use?
Any help would be greatly appreciated.
Thanks,
Jason
You read the code into a field (no need to assign it to two fields). Create a document validation script that gets the value of the field during the Document PreProcess event and copies the required parts to the fields of your choice. You need to use the Validation module in this case.

OR query in eWAM - picker

So in a picker in eWam / wynsure the field usually gets passed directly to some sort of OQL statement.
Hence, if I want to search for a field whose value ends in "asdf", I enter "%asdf" into the picker field.
My question is thus: from the picker, is there anyway to specify 'I want all entries that end in "asdf" OR "qwer"'?
If not, I would recommend that this become a feature as it would be very useful to be able to enter all that right in the text field.
There is currently no way to search multiple strings in a single field beyond using wildcards. One can do this easily by creating multiple fields in the picker.
Alternatively one could customize the picker as follows:
use a presearch string (that the user fills out),
parse that string for some element (like a pipe),
Break the string up and put each part in to off screen search variables.
You are still using multiple fields, but the user get's a different experience. Keep in mind the dangers of parsing out the user input, using something like or would work out very badly splitting up words, & could show up in a company name...

create a search field on BlackBerry-KeywordFilterField

I want to create a search field, and I've found KeyworldFilterDemo on samples of Blackberry. But consists of a single text input field(top) and a list of selectable String elements. Is there any way to create that the list be a graphical components that contains a lot of information such us name email....
if any one types a caracter it displays all names started with it.

Resources