Displaying 9 results from an estimated 9 matches for "id_value".
Did you mean:
gid_value
2010 Nov 12
1
SEXPs and slots
Hello,
I've created this class:
setClass("example",
representation (
size = "numeric",
id = "character"
)
)
Suppose I create a new instance of this class:
> x <- new("example", 4, "id_value")
This creates an S4 object with two slots. Am I correct in thinking that
slots are "filled" by SEXPs?
Thanks, Patrick
[[alternative HTML version deleted]]
2008 Sep 06
0
Tab control using FXRuby
...new(amain, LAYOUT_FILL_X|LAYOUT_FILL_Y)
addr= FXMatrix.new(main, 2,MATRIX_BY_COLUMNS|LAYOUT_CENTER_X)
# addr
FXLabel.new(addr, "First Name" ,
nil,LABEL_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y)
fld1= FXDataTarget.new("")
fld1a=FXTextField.new(addr,20, fld1, FXDataTarget::ID_VALUE,
FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y)
fld1a.connect(SEL_COMMAND) do
puts "fld1 contains #{fld1.value}"
main.setPosition(-10, -10)
end
FXLabel.new(addr, "Surname" , nil,LABEL_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y)
fld2= FXDataTarget.new("")
FXTextField.ne...
2010 Nov 15
1
SEXP and slots
...ter"
)
)
fx <- cxxfunction( signature(x = "example"),
'
S4 obj(x) ;
obj.slot( "size" ) = 10 ;
obj.slot( "id" ) = "foo" ;
return obj ;
', plugin = "Rcpp" )
str( fx( new("example", size=4, id="id_value") ) )
But as Martin says, it all depends on what your goal is: getting the job
done or learn about the internal C API.
Romain
> Martin
>
>>
>> Thank you,
>>
>> Patrick
>>
>>
>> On Fri, Nov 12, 2010 at 4:36 PM, Martin Morgan <mtmorgan <...
2011 May 11
2
Issue with Arel::SelectManager and insert Method
Hello,
Arel::SelectManager (arel 2.0.9) uses following statement to insert a
new record:
@engine.connection.insert im.to_sql, ''AREL'', primary_key_name,
primary_key_value
But in DatabaseStatements insert ist defined as:
insert(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)
Actually, Arel::SelectManager does not use the sequence name. This
leads to issues for instance with
activerecord-jdbc-adapter and Oracle, when you use sequence names
ignoring rails conventions.
Is it possible to fix this issue?
Regards
Dieter
--
You received this m...
2005 Dec 28
2
How write input form (layout/controller) so I can enter Id
I reformulate my needs. How I can write (layout/controller) so I can
read value of Id from the new form when creating new record.
With following structure:
CREATE TABLE words (
id INTEGER PRIMARY KEY,
word VARCHAR(40)
);
I want enter new records like:
id=47812, word=''pes''
id=1382, word=''krough''
id=67145, word=''brum''
--
2008 Nov 11
3
FXTextField and number of digits after decimal point
...e decimal point from a YAML file.
The number is injected into a FXTextField with the following code:
@value_sel = FXDataTarget.new(@value.to_s)
@value_value = FXTextField.new(@matrix_mem_value, 20, at value_sel,
:opts =>TEXTFIELD_NORMAL|JUSTIFY_RIGHT, :selector =>
FXDataTarget::ID_VALUE)
where @value is the number as read from the YAML file.
If I use a TEXTFIELD_NORMAL, I get all the digits after the decimal
point, but then it becomes difficult to test if the user entry
thereafter will be correct.
I I use a TEXTFIELD_INTEGER, like below, I get only three digits
after the...
2007 Aug 08
25
Problems with RESTfully generated helpers
I am using helper the RESTfully generated helper methods in my views.
My routes are nested so the helpers appear to need arguments passed to
them, but it works without arguments. Say for example I have pages and
comments. If I do page_comments_path without parameters, it works.
However, when I run the rspec test, it fails and tells me i''m missing
parameters. I tried to pass
2006 Sep 04
2
how to? link_to with a rel="tag"
i want my html output to look like this:
<a href="/path/to/page/" rel="tag">link text</a>
how do i tell the link_to method that i need: rel="tag"?
thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send
2006 Feb 22
5
Optional Include Relationship
I did some searches in the mailing list and on the web but I can''t
seem to find the answer to this, but it''s pretty much a noob question.
I have a Product object
class Product < ActiveRecord::Base
has_many :product_identifications
has_one :product_identification_item_number
has_one :product_identification_product_code
end
the product_identifications is using