Specifying non-editable string in settings.bundle? - iphone

I have noticed that some applications add entries into the settings.bundle that simply represent a fixed/non-editable string.
I only see these in the list, and the only one close is "Text Field" but thats editable.
Is there a way to specify this in the Root.plist ?

Indeed you have to use title instead of textField and more specifically in order to produce the example you mention use the following tips:
In settings bundle under Root.plist add a new type title
Set title value to "Version"
In the same item add a new row and set this to 'Default value'
Set Default Value to "1.1.1"
This will produce a non-editable text field with title value on the left and Default value on the right.

Instead of selecting TextField use Title

Related

How to edit a pdf generated using iReport?

I have generated this pdf using iReport. Now while viewing this pdf using document viewer, I need to edit that gross amount field and take print out. No need to saving the edited file. How is this possible?
iReports Custom Fields for columns (sum, average, etc)
Right-Click on Variables and click Create Variable
Click on the new variable
a. Notice the properties on the right
Rename the variable accordingly
Change the Value Class Name to the correct Data Type
a. You can search by clicking the 3 dots
Select the correct type of calculation
Change the Expression
a. Click the little icon
b. Select the column you are looking to do the calculation for
c. Click finish
Set Initial Value Expression to 0
Set the increment type to none
Leave Incrementer Factory Class Name blank
Set the Reset Type (usually report)
Drag a new Text Field to stage (Usually in Last Page Footer, or Column Footer)
Double Click the new Text Field
Clear the expression “Text Field”
Select the new variable
Click finish
Put the new text in a desirable position 

Adding fielddata to fixed text in report designer

Using the report-designer of Reportbuilder i want to add a long fixed text to my report with one or more included fields inside the text. Of course these fields should be filled with actual data, adjusting the text.
I remember I have done such a thing in the past, but cannot remember how. I thought you could accomplish this with a Text-field and something like 'This is the text and here {fieldname} fielddata is inserted', but that doesnt seem to work
Can anybody help?
Using reportbuilder 15.04
Response from Digital Metaphores:
Use the RichtText component! By setting MailMerge to true, you can add
datafields to text in the richtext editor
This adds the reference to the fielddata as a xml tag. Adding the fields Name from pipeline plData can be done like this:
<dbtext datapipeline='plData'>Name</dbtext>
Fill in the fixed text, then (making sure the focus is set to the text box, I.E. you have the flashing pipe cursor) right click in the place you want the data field to go, and click Create Placeholder.
In the Placeholder properties window give it a Label so you know what it is, then use the "Value" field to define what data from your datasets you want to be brought through.
You should end up with the Label you set in square brackets, like [Example] within the set text.

How to add option to dropdown but only use it for display

I need to add a label (called Title) to a dropdown in GWT. The label 'Title' can appear in the list of options but if 'Title is selected, it should not persist to the database, or just pass null instead of 'Title'. Can I do this using ValueListBox?
Disable it:
list.getElement().getElementsByTagName("Title")[0].setAttribute("disabled", "disabled");
Unless its really necessary it becomes null?

Default value/Item for SWT Combo

A would like to add default text when the drop-down menu is loaded on my view. How can I do this in SWT and JFace?
I'm guessing what you want to do is to show something in the combo when it has been added to the view (it's blank by default until something is selected or typed).
If you want to set a default text displayed until a selection has been made / until the field has been edited, e.g. - Select option -, then you can use:
Combo.setText(String string)
Note, this is not possible if the Combo is SWT.READ_ONLY
If you want to set one of the values in the drop-down as default use the select method:
Combo.select(int index)

Setting Textbox Value with Button (iPhone SDK)

What code would I use if I wanted to use a button to add a point (.) into a any selected textbox which already has a value in it. I can easily do this;
textField.text = #".";
But this only works with one text box and clears the value.
textField doesn't mean any text field it is only connected to one.
If you have many variables referencing the text fields you have. just loop (using a for loop) through them and check for the one whose editing property is set to YES.
If you want to add a fullstop to the end of the text field's text use:
textField.text = [NSString stringByAppendingString:#"."];