Why this won't work ?
I want to select the last item Items (where the cursor is at)
Try this :-
/RadDocking/DocumentHost/RadsplitContainer/Items/RadPaneGroup[last()]
Hope it will help you :)
Related
The question i want to ask is inside the attachment, please help me out for the solution
Solution I found using the SELECT DISTINCT
How can I dropUnique the column a_b from z table?
If it would be just column a, we can do this:
$table->dropUnique('z_a_unique');
I've tried:
$table->dropUnique('z_a_b_unique');
But obviously it didn't work.
Thanks for your help in advance!
dropUnqiue() will drop index, not the column. You need to use dropColumn() after dropUnique():
$table->dropColumn('a_b');
Actually, the answer is in the question, sorry guys, it works like this:
$table->dropUnique('z_a_b_unique');
And solved my problem
Can somebody explain me how to properly sort "[Arrivals] group" by Count(SearchDate)] for particular "Departure" in this Matrix?
I tried this fx in Row Group Sorting Properities, but it didn't work.
[Count(SearchDate)]
Then I tried specify which column I would like to sort, but same problem.
=Count(IIF(Fields!Departures.Value = "PRG", 1, 0))
After deeper inspection I found that I am able to sort "[Arrivals] group" only by [Count(SearchDate)] but not grouped for particular "Departure".
After a advice in MSDN forum I tried this fx:
=IIF(Fields!Departures.Value = "PRG", Count(Fields!SearchDate.Value), 0)
In first view result looks good but only for the first couple of records.
When I tried pivot table in SQL server everything looks fine:
SELECT * FROM (SELECT Arrivals, Departures, SearchDate FROM Destination WHERE SearchDate > '2016-03-01T00:00:00' AND SearchDate < '2016-03-28T14:03:46') as a
PIVOT (COUNT(SearchDate) for Departures in (PRG, LON)) as PivotTable
Order by PRG Desc
I spent a lot of time and tried a lot of solution but I have realy no idea how to solve it.
Thank you very much for your help, Petr.
I faced the same problem before. Try using this expression:
=COUNT(
IIF(
Fields!Departures.Value="PRG",
COUNT(Fields!SearchDate.Value),
Nothing
)
)
It could be a pain since depending on the dataset number of rows it increases the report processing time causing poor performance, it works though.
Let me know if this helps.
I need a php function that can randomly select one row that has a unix time date field (like 2011-11-12 or 2011-12-24) that indicates the row was created within the last two weeks from a mySQL table and return the id of that said row.
I don't know how do this. Honestly, I would like someone to hand me the code, but I don't like that because most people don't like that.. and their reasons make sense, but if someone would show me the code, then please do, thus can someone at the least point me in the right direction? Thank you.
You can get the date by using date and strtotime:
$date = date('Y-m-d', strtotime("-2 weeks"));
Then the query would look something like this:
SELECT * FROM table WHERE date_field >= '$date' ORDER BY RAND() LIMIT 1;
ORDER BY RAND() gives you a random row.
strtotime: http://us3.php.net/manual/en/function.strtotime.php
Hope this helps. :)
Please help me!I dont know why i cant solve this simple problem.
I wanna read my sequence that I made it in my database and add it to my text Item.
any idea?(with code plz)
right know I write a cursor and call my sequence by a select from it but i dont know what should I do after it :(
In Forms if you want to enter the value of a sequence into an item (named :BLOCK.ITEM) this would work:
SELECT your_sequence.nextval INTO :BLOCK.ITEM FROM DUAL;