Displaying 14 results from an estimated 14 matches for "customerid".
Did you mean:
customer_id
2018 Feb 25
4
reshaping column items into rows per unique ID
Hi All
I have a datafram which looks like this :
CustomerID DietType
1 a
1 c
1 b
2 f
2 a
3 j
4 c
4 c
4 f
An...
2006 Feb 14
6
[newb] Find vs Find :all question
...by doing this:
<%for detail in @order.orderDetails %>
item #: <%=detail.itemId%><br>etc etc
<%end%>
However, not all customers have orders, so it sometimes would return
RecordNotFound error.
So, i changed it to:
@order = Order.find(:all, :conditions => ["customerId = ?",
params[''customerId'']])
which still works. But, now i cannot access the orderDetails the same
way, it says:
undefined method `orderDetails'' for []:Array
Have no clue what I''m doing wrong.
Does just plain old find return something different than fin...
2018 Feb 25
0
reshaping column items into rows per unique ID
Hi Allaisone,
If you want a data frame as the output you will have to put up with a
few NA values unless each Customer has the same number of diet types:
a1df<-read.table(text="CustomerID DietType
1 a
1 c
1 b
2 f
2 a
3 j
4 c
4 c
4 f&quo...
2008 Sep 08
1
ActiveRecord::StatementInvalid Error
...lladdress.rhtml where line #3 raised:
Mysql::Error: #42000You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near ''and enabled=''1'''' at line 1: select * from
addresses where typeid=2 and customerid= and enabled=''1''
Extracted source (around line #3):
1: Select Customer Address<br />
2:
3: <%=collection_select "address", :id, Address.find_by_sql("select *
from addresses where typeid=#{params[:id]} and
customerid=#{session[:customerid]} and enabled=...
2018 Feb 25
0
reshaping column items into rows per unique ID
...people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Sun, Feb 25, 2018 at 4:59 AM, Allaisone 1 <allaisone1 at hotmail.com> wrote:
> Hi All
>
> I have a datafram which looks like this :
>
> CustomerID DietType
> 1 a
> 1 c
> 1 b
> 2 f
> 2 a
> 3 j
> 4 c
> 4...
2005 Sep 22
6
Autocomplete - setting a second value?
...ion, and need a way to grab a second
value from the ajax request... an example would probably speak better:
This is my HTML:
<input name="CustomerName" id="CustomerName" type="text" />
<div id="CustomerList"></div>
<input name="CustomerID" id="CustomerID" type="hidden" />
<script>new
Ajax.Autocompleter(''CustomerName'',''CustomerList'',''crmLookup.aspx'',
{});</script>
And this is my ajax response:
<ul class="acList">
<...
2018 Feb 25
1
reshaping column items into rows per unique ID
...ol] + 1
}
> df2
# CustId a b c f j
# 1 1 1 1 1 0 0
# 2 2 0 0 0 0 0
# 3 3 1 0 0 0 1
# 4 4 0 0 2 1 0
The dataframe df2 will have a column for the CustId and one column for each
unique diet type.
Each row is a unique customerId, and each entry contains the number of
times the given diet type occurred for that customer.
I hope that helps,
Eric
On Sun, Feb 25, 2018 at 7:08 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
> I believe you need to spend time with an R tutorial or two: a data frame
> (presuma...
2007 Feb 01
1
Dial option G - Passing parameters?
...use Dial w/ the G option:
Dial(Zap/g9/${agentext}|60|mG(Agent_Xfer^s^1)
Customer hears MOH while the Dial app gets the "agent" on the line
My destination context looks like this:
[Agent_Xfer]
exten => s,1(Customer),Meetme({$ConfRoom}|qM)
exten => s,2(Agent),Macro(Connect_to_agent,${Customerid},${ConfRoom})
Customerid and ConfRoom are channel variables that are set in the
Originate action and at the start of the dialplan processing,
respectively.
The idea is to put the customer in a conference room, listening to MOH,
until I can get an agent on the line. (This part works pretty well.)...
2006 Aug 02
0
Need help with SOAP and .NET
...factory =
SOAP::WSDLDriverFactory.new("http://ws.melissadata.com/dqws/address.asmx?WSDL")
soap = factory.create_rpc_driver
soap.default_encodingstyle =
SOAP::EncodingStyle::ASPDotNetHandler::Namespace
for client in @clients
soapResponse = soap.doSingleRecord(:CustomerID => mycustid,
:Action => "Request",
:Timeout => 10,
:Version => "1.0",
:City => client.city,...
2010 Jun 05
1
Problem with GROUP()
...testlocal-2669'
[Jun 5 16:06:26] -- Hungup 'IAX2/testlocal-2669'
So am I using the GROUP()-function the wrong way ??
I'd like to count the number of simultaneous calls of one particular
customer (which may have several SIPaccounts). To identify each group, I
simply use the customerID...
Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100605/70f94512/attachment.htm
2006 Mar 14
4
has_one
...s.id = ''theprimarykeyfororder'' and
cardTypes.id = ''blah''
I don''t want the cardTypes.id = ''theprimarykey" part in there.
Any help is greatly appriciated. My Order model is below:
class Order < ActiveRecord::Base
set_primary_key "customerId"
belongs_to :account
has_many :orderStatuses, :finder_sql =>
''SELECT name '' +
''FROM orderStatuses ors '' +
''WHERE ors.id = "#{status}" LIMIT 1''
has_many :cardTypes, :foreign_key => ''id'', :...
2009 Jul 15
1
RODBC results from stored procedure
Short of uploading a SQL server database, I don't think I can make this
example reproducible, but I hope it's not so complicated as to require
reproducibility....
I'm using RODBC to get data from Microsoft SQL Server.
I can call a parametrized stored procedure without a problem and the proc
does indeed execute successfully. However, even though the proc returns the
results I found
2005 Jan 23
0
How to debug core-file
...tmp2 = "\e[1;35;40mSIP/000b82027e34-0205\e[0;37;40m", '\0'
<repeats 38 times>
tmp3 =
"\e[1;35;40mzap/g1/00551138856342|120|rtS(10883)\e[0;37;40m\000accountcode:102190|UserID:3456|src:33225075|srcip:217.157.177.77|ConnectPrice:30|PeakPrice:60|RateID:55|CustomerID:30001|DestNameInt:Brazil_S?o"...
#7 0x08078c74 in ast_pbx_run (c=0x43a45fa8) at pbx.c:1879
digit = 0 '\0'
exten = '\0' <repeats 255 times>
pos = 0
waittime = 1180700108
res = 0
#8 0x080804e1 in pbx_thread (data=0xfffffffc) at...
2006 Jul 27
1
Update second pulldown menu based on first menu selection?
I know I''ve seen this somewhere on this board and just can''t search it
anymore.
I have three relational tables: clients, projects, and tasks. Currently
I''m working on customizing the ''new/edit'' task _form. So far I have it
listing clients in a pulldown menu so I can assign the new task to a
client. I''d like to have a second pulldown select