I wanted to get a tally (so I can in the end just see how many people if any don't use _ in field names) of who uses _ and who does not on private field names.
Hi All,
In Jira is it possible to send an update email only on changing a specific field, rather than any field. If so, please advise how to do so.
Thanks
I am creating a domain class named HOLIDAY in grails.I need to have a year dropdown in my Holiday year field. Hear is my domain:-
class Holiday extends CategoryMaster {
String holidayName
Date startDate
int year
Date dateCreated
static constraints = {
holidayName(blank:false,nullable:false)
}
}
I need to a year dropdown in year field, Should it come dynamically from a domain method that will discard the month & day and reflect only year in that dropdown adding +50 -50 to that?... How can I get it?
I know the following is not possible because it has to be an int
enum GroupTypes
{
TheGroup = "OEM",
TheOtherGroup = "CMB"
}
From my database I get a field with incomprehensive codes (the OEM and CMB's). I would want to make this field into an enum or something else understandable. Because the target is readability the solution should be terse.
What other options do I have?
I have a task to create class Encapsulation, with fields in available encapsulation sections. Then I must create an application showing all allowed and forbidden methods of fields access.
What are the encapsulations sections in c++ ? And what methods apart from object.field or *object-field are there anyway ?
Hi,
acyally i am wiorking on key mapping but the problem is that
when i press tab/down button it navigate to the next input field
tab has key of 9 and
down has key of 40
but to goto the previous input field (shift+tab)what is the javascript key code for that.
Thanks.
Hi,
I have to convert an incoming String field into a BigDecimal field that would represent a valid amount of money, for example:
String amount = "1000";
BigDecimal valid_amount = convert(amount);
print(valid_amount.toString())//1000.00
What is the right API to use convert a String into a valid amount of money in Java (eg: apache commons library)?
Thanks in advance,
I have an ASP.NET page which utilizes jQuery for an autocomplete-type scenario. The jQuery tucks the actual selected values into a hidden field it creates on the fly, but for some reason I cannot get the value of that standard HTML field on postback by calling Request.Form["HiddenFieldName"]. I can see it by ordinal in the Request.Form object, but if I add/remove controls it will break. Any suggestions?
I have an activity with two edittext controls. I am calling the requestFocus on the second edittext field since by default the focus goes to the first edittext control. The focus appears to be in the second edittext field (the second one gets the highlighted border), but if we try to enter any characters using the hardware keyboard the text appears in the first edittext control. Any ideas why it would be happening?
so, I read from DB binary field i.e. 'field1' to var Buf1, and then do something like:
unpack_from('I', Buf1, 0)
so, all is ok. but question is how can I ini Buf1 without going to DB? I can get value from DB manually and init my var statically, but how? in DB field 'field1' I see something like '0x7B0500000100000064000000B80100006'. and how can I init valid binary buffer from it?
Is it possible to increase the length of the Title column for a site above the 255 characters.
My requirement is that I use a field that is longer than the maximum 255 chars but because the Title column is a required field I need to enter something in it. Rather than enter garbage just because I have to, I would like to use it. If not, then my current thoughts for a workaround will be make a copy of the first 255 chars of a seperate column that I am able to make longer.
Hi All,
I'm trying to define the DisplayPattern of a custom field to do as follow. It's a simple text field used in document libraries, but i want the text entered to be displayed as a link to the document in the list view.
<URL Cmd="Display"> gives me the display form, but I want the link to actually download/open the document...
I can't for the life of me figure this one out...
Thanks for your help!
Most of the Android users use the GO SMS app, and the iPhone users use their normal messaging app (Android rocks). Now, whenever a user types a message and presses the send button, the message's edit text field sets a glossy green background, also the green colored background comes floating at the back of the edit text field. How do they do it?
(I have been searching this for a while, but was unable to find an answer.)
UPDATE [TABLE] SET [FIELD]=0 WHERE [FIELD] IS NULL
[TABLE] is an Oracle database table with more than 700 million rows. I cancelled the SQL execution after it had been running for 6 hours.
Is there any SQL hint that could improve performance? Or any other solution to speed that up?
I am aware of the MySQL Date_Format function but am looking to achieve the following:
I have on column with a day date in 2 digit format (01-30). I am trying to update another date formatted field with the current year, the next month (m+1) and the day field mentioned previously.
In PHP i would do this using mktime function but this must be done using mysql calls only.
Is it possible to transform in this way?
In my mysql table a field values are as follows:
table name - "clients"
field name - "accent"
values are - "Eastern(Northern,Southern),Scottish(East Coast)"
"Eastern(South,North,Southern),Scottish(East Coast)"
If I give
select accent from clients where accent like '%north%'
if more than 100 records not in the same order. Strings with in the brackets are not in the same order means.
It will give above two values.
How should i get only second value?
Please help me, thanks.
Using python and wsgiref.handlers, I can get a single variable from a form with self.handler.request.get(var_name), but how do I iterate through all form variables, be they from GET and POST? Is it something like this?
for field in self.handler.request.fields:
value = self.handler.request.get(field)
Again, it should include both fields included in the POST and fields from the query string, as in a GET request.
Thanks in advance folks...
I've been looking all over for a simple example of how to have an action (or button) be triggered when the enter key is hit in the text field.
Should I subclass the text field? Would I need to set a delegate to call the action I need? Is there a way to catch the event in my main window controller class?
If you could even just point me to the right direction that would be great. Thanks.
Hi,
I am trying to create SQL Select that returns counts of a certain field based on a field.
So, here is what I am trying to do.
Select count(distinct id) as TotalCount, -- this will be the total of id
count(distinct id where type='A') as TotalA, -- this will be total when type='A'
count(distinct id where type='B') as TotalB -- This will be total when type = 'B'
from MyTable
Basically, TotalCount = TotalA + TotalB.
How can I achieve this in SQL Select Statement?
Thanks.
In a persistent object, If i change only one field, Is it possible to find out the changed field only through Hibernate?
I know I can get the entire old row and new row and compare.
I have a custom tableViewCell with a UITextLabel inside it.
When the cell is first displayed, the place holder is shown and then disappears when the user types something in.
What I want is to go back to the parent view, and then to the sub view again, and that the field will show the text that the user previously typed.
If I set the text field, simply with setText, the textField is not editable.
Any idea?
I have a contact form written in PHP that currently has a form field that tries to prevent spam through a calculation (3 + 1). I need that form field to have multiple calculations and at random so prevent spam.
I have set up some horizontal tabs using twitter bootstrap and I am rendering a form inside each of the tabs:
<div class="tab-content">
<div id="tab1" class="tab-pane active">
<%= render :partial => "shipdr/websites/form", locals: {:@shipdr_website => shipdr_website} %>
</div>
<div id="tab2" class="tab-pane">
Another form (not yet implemented)
</div>
<div id="tab3" class="tab-pane">
Another form (not yet implemented).
</div>
</div>
Then in shipdr/websites/form I have:
<%= simple_form_for(@shipdr_website) do |f| %>
<% if @shipdr_website.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@shipdr_website.errors.count, "error") %> prohibited this shipdr_website from being saved:</h2>
<ul>
<% @shipdr_website.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.input :name %>
</div>
<div class="field">
<%= f.input :url %>
</div>
<div class="field">
<%= f.input :api_key %>
</div>
<div class="actions">
<%= f.submit nil, :class => "btn btn-primary" %>
</div>
<% end %>
I want to move the submit button outside of the "tab-content" area so when a user clicks the submit button, all three forms area submitted. All forms will use that same model and the same action but will have different field. The idea is similar to a wizard except I am using tabs.
Does anyone have any idea how I can move the submit button outside of the form_for loop and how I can submit the three forms with a single button?
I use Rules-Module. I want to add 1 to a cck integer field on an action. Someone told me to create custom token doing this addition.
So, I installed tokenSTARTER module.
Now, how do i access the content profile (I load it in the rules chain) where needed cck field is in?