#silverstripe IRC Log

IRC log for 14 August 2016

All timestamps are in UTC.

1: [00:00:02] * ss-helper quit (Remote host closed the connection)
2: [00:00:16] * ss-helper has joined #silverstripe
3: [01:05:05] * hewp has joined #silverstripe
4: [01:08:34] * pweh quit (Ping timeout: 252 seconds)
5: [01:39:55] * hewp quit (Ping timeout: 252 seconds)
6: [01:43:01] * gelignite_ has joined #silverstripe
7: [01:46:45] * gelignite quit (Ping timeout: 265 seconds)
8: [01:57:20] * gelignite_ quit (Quit: http://bit.ly/1kso8Ta)
9: [01:57:42] * gelignite has joined #silverstripe
10: [01:59:21] * keroberos quit (Ping timeout: 276 seconds)
11: [02:07:35] * keroberos has joined #silverstripe
12: [02:28:12] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
13: [02:46:33] * hewp has joined #silverstripe
14: [02:46:35] * micmania1 has joined #silverstripe
15: [02:50:52] * micmania1 quit (Ping timeout: 250 seconds)
16: [03:24:25] * hewp quit (Ping timeout: 252 seconds)
17: [06:19:11] * pweh has joined #silverstripe
18: [06:33:10] * hewp has joined #silverstripe
19: [06:34:43] * pweh quit (Ping timeout: 252 seconds)
20: [07:13:14] <Firesphere> Hello world. Anyone awake?
21: [07:49:11] * micmania1 has joined #silverstripe
22: [07:53:54] * micmania1 quit (Ping timeout: 260 seconds)
23: [08:09:52] * hewp quit (Ping timeout: 252 seconds)
24: [08:18:05] * hewp has joined #silverstripe
25: [09:11:37] * darjusIT has joined #silverstripe
26: [09:25:49] * spronka has joined #silverstripe
27: [10:26:14] * hewp quit (Read error: Connection reset by peer)
28: [10:37:20] <Firesphere> Loads of silence :(
29: [10:37:34] <Firesphere> Well, "screw you guys, I'm going home!"
30: [11:10:32] <darjusIT> :D
31: [11:10:34] <darjusIT> ?
32: [11:24:47] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
33: [11:29:05] * Azure quit (Ping timeout: 250 seconds)
34: [11:38:32] * Azure has joined #silverstripe
35: [11:58:41] * gelignite has joined #silverstripe
36: [13:05:57] * micmania1 has joined #silverstripe
37: [13:10:31] * micmania1 quit (Ping timeout: 250 seconds)
38: [15:37:52] * Azure quit (Ping timeout: 240 seconds)
39: [15:54:07] * Azure has joined #silverstripe
40: [17:30:23] <ss-helper> SilverStripe Fluent issue for Turkish language - http://stackoverflow.com/questions/38944754/silverstripe-fluent-issue-for-turkish-language
41: [18:01:04] * pixelboy has joined #silverstripe
42: [18:03:09] <pixelboy> hey guys, i have a front end form where i need to save an extra randomised string to the $data generate by a function in the controller. Since it's not a input field how can I attach that to the $data obj so i can later save in like the other fields
43: [18:25:34] <darjusIT> pixelboy you mean hidden input value?
44: [18:26:54] <pixelboy> darjusIT, not quite, just wanted to add another associate value to the $data var that is later processed in doInquiryForm($data, $form) but i see it's just an associate array so i added one using $data['OrderID'] = $this->generateRandomString();
45: [18:29:47] <darjusIT> as you saving some object with write(), you can make hidden input name="generete_string" value="1" and in beforeWrite function if generete_string = 1 do some stuff
46: [18:30:48] <darjusIT> if I correctly understood what you need :)
47: [18:33:07] <pixelboy> darjusIT, not sure is matches what i'm trying, these are the two functions http://pastebin.com/uNGbNh8d
48: [18:33:54] <pixelboy> darjusIT, i'm saving the object using $form->saveInto($enquiry = CustomOrder::create()); and when i'm dumping the $data i can see the $data['OrderID'] = $this->generateRandomString(); added a value but i does not seem to save to the database
49: [18:34:12] <pixelboy> darjusIT, so i'm guessing there's a reason despite being in $data, it does not pass :/
50: [18:34:45] <darjusIT> pixelboy, you can add it to form
51: [18:34:55] <darjusIT> in function where you making form
52: [18:35:38] <pixelboy> darjusIT, how do you add a hidden field with a value that can't be changed in the form ?
53: [18:35:43] <darjusIT> HiddenField::create('OrderID')->setValue( $this->generateRandomString())
54: [18:36:02] <pixelboy> darjusIT, nice, let me try that :D
55: [18:36:26] <darjusIT> if custom form dont forget to call field
56: [18:36:47] <darjusIT> in template file
57: [18:37:25] <pixelboy> darjusIT, call field ? this is the form with the hidden field added http://pastebin.com/4rZ9Bd4q
58: [18:37:30] <pixelboy> darjusIT, looks good ?
59: [18:38:03] <darjusIT> yes
60: [18:38:05] <darjusIT> good
61: [18:38:40] <pixelboy> darjusIT, sweet it gets saved :D thank you
62: [18:38:44] <darjusIT> I mean your form is with custom template file or you using SS default form html :)
63: [18:38:49] <darjusIT> no problem :)
64: [18:38:55] <darjusIT> glad to help
65: [18:43:45] * pixelboy quit (Quit: Leaving)
66: [19:08:14] * micmania1 has joined #silverstripe
67: [19:08:14] * ss-helper quit (Ping timeout: 260 seconds)
68: [19:12:40] * micmania1 quit (Ping timeout: 258 seconds)
69: [19:13:51] * ss-helper has joined #silverstripe
70: [20:30:27] <ss-helper> Displaying search results on a separate page - http://stackoverflow.com/questions/38933640/displaying-search-results-on-a-separate-page
71: [20:35:10] * pixelboy has joined #silverstripe
72: [20:37:31] <pixelboy> hey guys, if i'm trying to get all the objects name 'Potato' is the function 'function getPotatoes(){ return Potato::get() } declared in the controller of the page good? i tried it and it's said the method 'fortemplate' does not exist on 'DataList
73: [21:01:22] * Hailwood has joined #silverstripe
74: [21:29:24] * micmania1 has joined #silverstripe
75: [21:39:49] * micmania1 quit (Quit: micmania1)
76: [21:51:24] * micmania1 has joined #silverstripe
77: [22:10:28] * spronk has joined #silverstripe
78: [22:16:10] * DanaeNZ has joined #silverstripe
79: [22:20:00] * UncleCheese has joined #silverstripe
80: [22:20:44] * spronk quit (Quit: bleep bleep bloop bloop)
81: [22:31:16] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
82: [22:33:54] * UncleCheese has joined #silverstripe
83: [23:16:39] * pixelboy quit (Quit: Leaving)
84: [23:17:32] <DanaeNZ> anyone played around with custom GridField filters before?
85: [23:17:53] <DanaeNZ> I've got one here I didn't make but it isn't saving the data in the correct GridField state
86: [23:24:52] * spronk has joined #silverstripe
87: [23:31:41] <darjusIT> pixelboy, what do you need/

These logs were automatically created by ss-log on irc.freenode.net.