Displaying 20 results from an estimated 1000 matches similar to: "How to has_one/belongs_to association only return the objects unassociated in combobox?"
2012 Jan 24
4
:locals does not pass var in rails 3.1.0 partial view
Here is code in form.html.erb for partial view. Local var :sid was
defined as the id of the record and it should be passed into the
partial view standards.html.erb as a local var.
<% @rfq.standards.each do |r| %>
<p><%= render :partial => ''standards'', :locals => { :f =>
f, :sid => r.id } %></p>
<% end %>
Here is the
2007 Mar 21
0
[909] branches/wxruby2/wxwidgets_282/doc/textile/combobox.txtl: Correct disambiguated method names in methods listing
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2011 Sep 30
1
Related combobox
hello,
i have 3 comboboxes, i want to load 2nd combobox based on the
value selected in 1st combobox. and 3rd combobox should be loaded
depending on the value selected in the 2nd combobox.
i have used observe field for 2nd and third combobox , it works
for the first combobox but not the second one.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
2007 Apr 29
0
[989] branches/wxruby2/wxwidgets_282: Fix a crasher with misdirected ComboBox#GetSelection method on GTK; clearer
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2003 Mar 27
0
R TclTk iwidgets::combobox
Thanks Peter,
I've started a new R session (in Windows) and managed to get
both ways working now :
### THIS WORKS !!! ###
library(tcltk)
tclRequire("IWidgets")
tt<-tktoplevel()
combo <- tkwidget(tt,"iwidgets::combobox")
tkpack(combo)
### AND THIS WORKS TOO !!! ###
tt<-tktoplevel()
win <- .Tk.subwin(tt)
2011 Oct 06
0
initial value in ComboBox tkwidget
Hello,
I took me very long to find out how to set the initial value in the combobox
widget in tk (see the example below). My question is now : Why does
"textvariable" has to be a tclVar while "values" can be a normal vector? My
next question is: How could I have known this much earlier? Is there a
documentation for the tcl/tk usage in R? I know a lot of website with
example.
2006 Aug 09
1
tk combobox question
Hello!
The IWigdets::combobox has an option "selectioncommand" to specify a procedure
which is called when an item in the combobox is selected.
Does ComboBox from Bwidgets have an equal option or is there a simple method to
do thi? I haven't found one but i would like to use Bwidgets instead of Iwidgets.
Another question which should not be a problem, but at the moment I just
2012 Aug 26
1
to clear combobox value....
As i m using tcltk package for GUI designing ttkcombobox command helped me in
creating combobox...
but, i need to create an application where after i click on *"clear all"*
button the values in combobox should be cleared,
but i am not knowing what should be written in the command function of a
button, so that the selected value of combobox should be cleared or come
back to its default
2009 Feb 18
3
Validation and ComboBox
I''m trying to make a ComboBox that can be typed into but only accepts
entries that are already in the drop-down list. I hoped a combination of
the CB_DROPDOWN style and a TextValidator with the FILTER_INCLUDE_LIST
would make that happen, but the validator seems to be ignored. Is that
combination supposed to do what I want? If so, please review the code
below and let me know where my
2007 Mar 21
0
[906] branches/wxruby2/wxwidgets_282: Wx::ComboBox API 2.6 -> 2.8, plus some doc corrections
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2006 May 28
0
Fill a combobox with image paths
That, i have a bunch of images on my public/images/items folder and i
want to be all listed on a combobox so when i select one image from the
combo it be displayed inside a <div> tag, i dont know if its easier get
the physical path or have a table with the image paths.
also i have a list of items with name, description and image assigned so
im looking also in how i can edit the items to
2007 May 02
0
Selected value in a combobox
I''m using ActiveScaffold.
In the file house_helper.rb I have written the code:
def house_form_column(record, input_name)
...
list = House.find(:all, :include => ''city'')
new_list=...
...
list do |element|
if record = element.name
selec=element.id
end
end
select_tag ''X'',options_for_select(new_list, selected=selec),
2007 Dec 14
0
combobox and m:n relation
Hi,
i have a project and a task. both have a m:n relation to each other. I
made a scaffolding and want to insert a combobox in the task new view
Code : ruby - fold - unfold
<label for="project_name_ger">Poject</label><br/>
<%= select "task[projects_id][]", "project_id",
Project.find(:all).collect {|c| [c.name_ger,
2009 Oct 19
1
Combobox population by means of JQuery and Ajax.
This is the view municipalities.js.erb I have:
<% list_opt = options_from_collection_for_select(@municipalities, :id,
:name) %>
<% puts list_opt %> #ok! list_opt contains the options
$(''#municipality_id'').html(''<%= list_opt %>'');
and this is the combobox in the view:
...
Comune <select id="event_municipality_id"
2008 Jun 17
0
setvalue of a combobox
if I wanted to set the value of a combobox
tt <- tktoplevel()
box <- tkwidget(tt,"ComboBox",values=c(1,2,3))
tkgrid(box)
tcl(box,"setvalue","first")
does anybody know how I would access an index other than the first? as second, and numbers do not work..
thanks in advance
Andreas Posch
2008 Jan 13
1
Combobox
Hi,
I''ve got a little problem with the comboboxes. I want to provide a
search where the user enters a word into the combobox and the program
runs a mysqlsearch and returns the result in the comboboxlist. While
the user enters a searchword or moves up or down within the list, it
is necessary that the list opens itself without a manual click on the
button. That''s
2009 Dec 16
0
Regarding Combobox
We have taken a combobox and filled in with names of states. we want
that after selecting name of state, state id should be pass to same
page.
Thank you.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from
2006 Apr 23
5
ComboBox patch files
The following two files correct problems with the ComboBox
implementation. You will also need my typemap.i.patch file
(forthcoming) in order for the void * typemap to work properly (I think).
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2010 Jun 16
0
:wrapper_tag, :wrapper_class options (and more) with simple_form and Rails 2.3 ?
Hi,
I''m making my first Rails project and I''m using the simple_form gem
(version 1.0) with a Rails app (version 2.3.5). simple_form repository
v=1.0
Is there any way to implement the nice
options :wrapper_tag, :wrapper_class, :wrapper_error_class ? Or maybe
I''m missing something? :-D
Thank you for your advices
Fro_oo
ps : I can''t change my Rails gem and
2012 Jan 06
1
How to pass a field from simple_form as a hidden div value
Hi folks
Im trying to pass a value to my hidden div using simple_form but im
not sure how to do this, was wondering if anyone could help me with
this. Here is my view using simple_form
<%= f.label "First name" %>
<%= f.text_field :first_name %>
<%= f.label "Last name" %>
<%= f.text_field :last_name %>
<%= f.input :full_name, :as =>