How can I add custom text to Shippo generated labels? - fedex

I would like to add a custom field to the shipping label generated by Shippo to identify the physical package. Is there any way to add custom text to the shipment label using the API?
I'm specifically looking at the Shipment, Transaction Create API call.

Yes, there is a way to add custom fields to shipping labels. There are two parameters that can be passed to create transaction, when creating a Shipment which will be printed on the label.
reference_1
reference_2
Shippo allows the max length of the field at 50 characters, but some carriers may truncate at around 30. So print a test label.

Related

JIRA Labels with fixed set of values

We have labels in JIRA. This "labels" is predefined field and not a custom field as I observed.
The labels are auto-complete fields and any value can be assigned to it.
I want these labels to pick values only from a set of values. Is there a way to do this?
Also, is it possible that the set of values can be uploaded from a list/excel/csv?
The easiest way to do this would be to add a custom field with your required settings (a single value or maybe a multi-pick selection).
I use the Jira Cloud solution and I'm not aware of any way to import values into custom fields. If you have a local installation and have a developer to help you might be able to find a way to import them but I'm guessing it might be easier/faster to do it manually even if there are a hundred or so.

How to bind list of TextField to binder(FieldGroup or BeanFieldGroup)?

I have requirement like following.
In page for Employee record entree there are 3 types of field Name, Phone Numbers and Address. User can enter 1 name and 1 address per employee but he can add multiple phone numbers by using multiple text field.
Initially there will be only 1 text field for phone number but user can add more text field using button. So text fields for phone numbers can increase and decrease.
For this requirement it was easy to bind name and address, since there will only 1 entry. But for phone numbers I have to use list and I am unable to bind list of text fields to list of strings.
you have to write a CustomField<List<String>> for this. Implement the abstract methods and then override (get|set)InternalValue read and spread the values into list of textfields (e.g. on set remove all textfields, add one for each item in the list and add an additional one for new ones and some add-button). then you can use this field to bind to your list.

Lotus Notes: display fields values in different rows in column

I have a number field called Days and an editable names field called Names ( which allows multiple values ).
Let say that Days=1 and Names=Mike/Rock, Tom/Rock, Dean/Rock.
I want to display them in a column view like this:
1
Mike
Tom
Dean
I tried it with #NewLine, but no luck for me.
I also created a computed (hidden) field test with the following formula as default value:
#Text(Days)+#NewLine+#Implode(#Name([CN];Names);#NewLine)
It seems to be the wanted form for me, but when I just put test in a column default value, it shows nothing.
I appreciate your time.
Try to set your test field to #text(days):Names. This should create a multi-value field (as opposed to a single string which your test formula produces).
Then, set the multi-value separator of the column style to Newline, and adjust the number of rows to match the expected number of values.
In a view we get only one row for one document. Multiple values are therefore shown in one row only with multi value separator.
Eclipse view may perhaps help.

Generating values for dropdown ONLY for 'C' of CRUD

When choosing 'Add' in CRUD, how best to generate a list of choices to pick from a dropdown?
For U/update - just display what's there...
The field contents starts with a letter, followed by five numeric digits:{A-I,K-N,Z}#####
Each letter has a different 'max' value for the numeric part.
So when adding a new record, I'd like to offer a listbox with one of each letter and that letter's highest numeric value + 10.
So, if the max 'A' as A00120, and max 'B' B00030 (etc) the listbox would have A00130 and B00040.. etc
Save the user having to figure out which is 'next' when generating a new record.
? Thanks,
Mark
This time I'll not be able to come up with ready to use solution, but I must say - everything is possible with ATK4. You just have to customize and extend it to fit your needs :)
Speaking about your question above - I guess you have to split it in multiple parts.
First part is about how to show select box on Create and readonly or disabled field on Update. I guess you can make some custom Form field or pin some action to existing Form Field hook. Not sure exactly what's better in this case.
Second one is about data structure. I believe that this field actually should be 2 fields in DB and maybe (only maybe) merged together in ATK model with addExpression() just for user interface needs to display these 2 fields as one field easily in UI. Maybe such concatenated field will be useful also for searching, but definitely not as only one field stored in DB. Imagine how hard it'll be for DB engine to find max value if such field. Store it like type = letter, num = number and then search like SELECT max(num)+10 FROM t WHERE type='A'
Finally Third part is about how to generate this next number. I read your question 3 times and came to conclusion that actually you don't have to show this +10 numeric value in UI at all if it's hardly predefined anyway. Actually that'll not work correctly if this will be multi-user system which I guess it will. Instead just show simple select box with letters {A-I,K-N,Z} and calculate this next value exactly before inserting data in DB. That can be done using models insert hook. This will be much more appropriate solution and will be better for UI and also more stable because calculated in model not incorrectly in UI part.

Add conditions of carriage to the FedEx label

In order to pass FedEx certification for the shipment API, they requested the label to have conditions of carriage.
Here is exact response from the FedEx representative:
The labels you forwarded still did not have any Conditions of carriage on them . this is what it should look like on the second part of the label (note this is a ss of a Spanish version)
Attached example was a copy of the text from here:
http://www.fedex.com/mx/services/nacional_terms.html
I also noticed that different services might have a different terms and conditions, so, wondering how should we handle it on our side? Should it be a custom text specified through CustomerSpecifiedDetail or is there is a way we could use some defaults?
The presence of the Conditions of the Carriage on the Label depend on the LabelStockType(see FedEx xml guide) tag.
For example:
PAPPER_LATTER - will produce a labels without terms and conditions on it;
PAPER_8.5X11_TOP_HALF_LABEL - will produce the labels with terms and conditions on it.

Resources