Sorting not working if table linked to another table
Got a table with student marks:
Table 1 student
mark
A
98
B
79
C
82
if I copy/paste the marks to another table then sort (ascending, sort by B entire table), it is sorting as expected:
Table 2 student
Mark
B
79
C
82
A
98
if instead I go in Table 2 and enter a formula in B2 to get the mark from table 1 (=Table1::B2), fill down the cells, Table 2 will not sort correctly and output this instead!!!!:
Table 2 student
Mark
B
98
C
79
A
82
Yet another bug and it got submitted to Apple but if more users complain as well (using Provide Numbers Feedback), we might finally get Apple to release a bug-free version of Numbers that works as well as Excel for such basic tasks.
squarebox is styled in three different places
http://mljdesigns.com.au/Beaumaris%20North_2-2013/index-beaunps4.css line#513
http://mljdesigns.com.au/Beaumaris%20North_2-2013/index-beaunps4.css line#623
In the main document line#10
I do noy know if this has anything to do with your problem as I cannot fault the position of the image.
You may also want to have a look at line#104 of the main document where there is a stray ending division tag.
Similar Messages
-
Oracle equals_path condition NOT working with table and materialized view
The user i am using is xdb with dba role.
1.When i try to use the statement
SELECT PATH FROM xdb.path_VIEW
WHERE
EQUALS_PATH(res, '/home/OE/PurchaseOrders/2002')=1
the result is
/home/OE/PurchaseOrders/2002
2. When i drop the path_view and recreated it like materialized view with statement
create MATERIALIZED view path_view as
select /*+ ORDERED */ t2.path path, t.res res,
xmltype.createxml(xdb.xdb_link_type(NULL, r2.xmldata.dispname, t.name,
h.name, h.flags, h.parent_oid, h.child_oid),
'http://xmlns.oracle.com/xdb/XDBStandard.xsd', 'LINK') link,
t.resid
from ( select xdb.all_path(9999) paths, value(p) res, p.sys_nc_oid$ resid,
p.xmldata.dispname name
from xdb.xdb$resource p
where xdb.under_path(value(p), '/', 9999)=1 ) t,
TABLE( cast (t.paths as xdb.path_array) ) t2,
xdb.xdb$h_link h, xdb.xdb$resource r2
where t2.parent_oid = h.parent_oid and t2.childname = h.name and
t2.parent_oid = r2.sys_nc_oid$
then the equals_path condition STOP working !!!
3. The same experiment, but i recreate it like table
create table path_view as .... using the rest of the statement ...
Can someone help me to understand why equals_path is NOT working on table and materialized view !Thanks Jonah. I was under the impression that I already had it but seems like it has to be a direct priv - thru a role doesn't work.
I granted the reqd privs and then it worked fine. Thx for your help! -
Multi-Row insert/update/delete not working via db-link
App. Version: 2.0.0.00.49
DB: Oracle 9i, not sure about the build
Problem: Multirow Update/Insert/Delete doesn't work via db-link.
Error received: ....ORA-1460: unimplemented or unreasonable conversion requested....
Where: Tabular Form generated via Wizard
Side note: It's working properly when local table(s) is/are used, it's not working via db-link or view.
I've encountered this error with single update/insert/delete operations before, but was able to fix it via using temp-variables (v_xyz := :Px_xyz; as the proposed v('Px_xyz') was really slow with my scripts)...but with the automated DML-action I don't see a way to edit it accordingly.
Workaround found:
1a) Use local* collection on HTML-DB-Server, then write single row updates/deletes/inserts to the remote DB via DB-Link
1b) Use local* table on HTML-DB-Server, then write single row updates/deletes/inserts to the remote DB via DB-Link
* Local = on the same server that HTML-DB is running on...
So,...to my questions:
1. Can someone confirm that this is a "known feature" (aka bug)?
2. Can someone tell me if this "known feature" has been eliminated in the newer version of HTML-DB/APEX (> 2.0.0.00.49)?
Thanks.
IngoHi,
Do you have a small test case program that demonstrates this? A JDeveloper project showing what exactly is the problem when trying to use the BDB SQL JDBC driver to insert data into the BDB SQL database? What do you mean by "not working", do you get any errors, you do not get errors but you do not see the data in the database etc?
What are the versions of Java, JDeveloper, ADF and BDB SQL you are using, and on what OS?
Regards,
Andrei -
Layout adjustment not working with tables
Hi all
Why will layout adjustment not work with tables?
I am trying to re-format from A4 landscape to A4 portrait.
The text box containing the table will resize but not the table.
Any clues why this might be, I don't want to manually resize every table in the document.
Many thanks,
RobThanks Jongware,
Having resized the table and got the little red ovals, I tried various things like changing the font size etc but the best workaround I found was to select the table and change the cell inset value to 0, this got rid of all red ovals and I didn't need to change the font size.
Cheers,
Rob -
Table Sorter Not working in EP 7.01
Hi All,
The table sorter stopped working in ep 7.01.
Can anyone comment why?
Are there any notes or patches to be applied?
Thanks and Regards,
NuzhatHi Shanti,
Thanks for replying.
I am working on WD for Java.
Can you please give me your table sorter Java file?
I think there may be issues in versions.
Previous server was ep 7.00 and now when code is moved to ep 7.01 sp05 patch 1, the table sort doesnt seems to work. even though I checked all the codes are there in the new system.
Thanks and Regards,
Nuzhat -
Sorting not working inside xml format
Ok I know my title is not clear, but I have a table that is
called with a spry if, inside another spry data set, and I have
been having quite a bit of trouble with it. The sorting and even
odd would not work....(though they work on the same table with the
same source if it is not inserted within the spry data set) I
worked on it quite a while yesterday (got it updated to 1.6 )and
finally got the even/odd to work using the 'other' class from one
of your examples....that is after trying every even odd combination
I could think of....but I still can't get it to sort.
<table id="sortable" width="100%"
spry:if="'{formcriteria}'=='yes'">
<tr>
<th width="71%"
spry:sort="dsAgentForms::formname">Form Name and Description
</th>
<th width="29%" spry:sort="dsAgentForms::formnum">Form
Number</th>
</tr>
<tr spry:repeat="dsAgentForms" spry:even="dsAgentForms
other" spry:hover="rowHover">
<td height="28"><a
href="{dsAgentForms::url}">{dsAgentForms::formname}</a></td>
<td><a
href="{dsAgentForms::url}">{dsAgentForms::formnum}</a></td>
</tr>
</table>
you click on the "Forms & Applications" tab to see the
table
http://www.nmprc.state.nm.us/als2.htm
I am using DW CS3 and it is fairly easy to insert a sortable
table, but somehow, with this table being inside another spry data,
it loses its sortability.
you see in my code I am using
spry:sort="dsAgentForms::formname" and I know this is not usual,
the usual would be without the dsAgentForms:: part, but this was
just the last thing I tried before posting. I thought that maybe
because all the rest of the table needed the extra designation,
that maybe the sorting did as well....I got it........it was the syntax of the spry:sort it needed
the below instead of what I had
spry:sort="dsAgentForms formnum">
it was also the same error for the even odd, they now work
with similar syntax
thanks for the numerous examples you give us, I can get most
anything I want to try to work if I have a working example
:) -
FPM Message Manager message's HyperLink does not work in Table
Hi FPM experts,
I use FPM in my application and I want to use FPM Message Manager with hyperlink pointing to cells with errors in a table with report_bapiret2_message. The hyperlink does work when pointing on stand alone input field, but it does not work when pointing on a input field in a table.
Here is a piece of my code. What's wrong?
data is_message type bapiret2.
is_message-type = 'E'.
is_message-id = 'TEST'.
is_message-number = '1'.
wd_comp_controller->mr_fpm_message_manager->
report_bapiret2_message( is_bapiret2 = is_message
io_component = wd_comp_controller
io_element = lo_el_table_elements " point on the element in my context
iv_attribute_name = 'VALUE' ). " Name of my attribute in context
Thanks
Davy
Edited by: Davy Veilleux on Jan 4, 2009 4:19 PMAny answers to this question?
I am facing the same issue. Using FPM Message Manager with the io_element and iv_attribute parameters pointing to an element in an context node having cardinality = "0...n" does not show the hyper link.
Any Help is Appreciated. -
Logon trigger not working over DB-Link?
Hi all,
I have a serious question about accessing tables over a database link.
I have three schema:
DATA@SOURCE
INTERFACE@SOURCE
WORK@TARGET
Schema DATA has one table called T1
The INTERFACE schema has select privileges on all tables from DATA. Furthermore schema INTERFACE has a logon trigger to change the "current schema" to DATA:
CREATE OR REPLACE TRIGGER TRG_A_LOGIN_SET_SCHEMA AFTER LOGON
ON INTERFACE.SCHEMA
BEGIN
execute immediate 'ALTER SESSION SET CURRENT_SCHEMA = DATA';
END;
The WORK schema has a database link to the INTERFACE schema called INT_DB_LINK.
I am now logged into schema WORK on the TARGET database and I am executing following statement:
select a from T1@INT_DB_LINK
-> it's working
Next I execute
declare
cursor c is
select a
from T1@INT_DB_LINK
where rownum<2;
begin
for r in c loop
null;
end loop;
end;
This is not working. Error message is ORA-000942: table or view does not exist.
But why?
Can anyone help me?
Thanks in advance
PyHi all,
after a long, very long search I found what caused this strange behaviour.
The ORA- Error was not raised by the SQL-Execution-Engine but by the SQL-Parser/SQL-Validation.
As the second statement is an anonymous SQL block the Oracle Parser checks all objects dependencies before execution.
This means a connection is established from TARGET to SOURCE checking if table T1 is available. The strange thing is
that on this connection the "ALTER SESSION" trigger is not fired. So the parser does not find object T1 in schema INTERFACE.
If I create an empty table T1 in INTERFACE the anonymous block gets parsed/validated and the statement is executed. But this
time the block does a normal "connect session" and the trigger is fired. This means the statements accesses the T1 table in
schema DATA. (But T1 in INTERFACE has to be existent that parse/validation works)
I don't know if this is a bug or a feature.
To workaround this I have created private synonyms in schema INTERFACE pointing to the objects in DATA.
Thanks for your help!
Py
regarding the other qestion:
Yes, permissions are granted over a role. -
Sorting not working correctly for date field in alv report
Hi All,
My report displays many rows also containing date type fields of bldat,budat .
When I sort the report selecting field of type bldat budat the sorting is not correct for the year.
Ex:
Invoice doc dat
01-25-2011
01-21-2011
02-02-2011
10-25-2010
11-20-2010
If I use ascending then it is sorted as :
Invoice doc dat
01-21-2011
01-25-2011
02-02-2011
10-20-2010
10-25-2010
Why the sorting is not working correct for year.(2010 records should have been first).
The field wa_tab-bldat is of type char10.
It is populated as wa_tab-bldat = bsak-bldat.
Kindly suggest what can be done.The field wa_tab-bldat is of type char10
Then what it does is correct.
Refer to type datum...it will work -
Sorting not working in a report with hyperlinks
I have a report with hyperlinks for one column and I noticed that sorting is no longer working on that report. If I use another version of the same report witout hyperlinks; sorting does work fine.
I was wondering if anyone has encountered this issue before and what would be the solution.
Thanks!I didn't remove the sorts and was trying to sort again on another column.
So this is resolved.
Now another issue; when viewing this report in Interactive mode; the column with hyperlinks doesn't have the sort option when I right click on that column. The sort option does show up but it's grayed out (disabled). When I go to Edit mode; it does allow me to sort on that column.
Anyone has noticed this? -
Last_page button is not working in table control-urgent
hi all,
iam displaying the data in table control.in my pf-status i have first_page,next_page,prev_page and last_page.out of 4 buttons 3 buttons are working finr except last_page. any body can send me the code for this program.iam sending my program below.
REPORT ZMAHI_TABLE_CONTROL .
TABLES : VBAK,VBAP.
DATA : BEGIN OF ITAB OCCURS 0,
VBELN TYPE VBAK-VBELN,
ERDAT TYPE VBAK-ERDAT,
ERNAM TYPE VBAK-ERNAM,
ERZET TYPE VBAK-ERZET,
REASON(40) TYPE C,
END OF ITAB.
DATA : FILL TYPE I VALUE 1.
DATA : N TYPE I .
DATA : BEGIN OF XVALUES OCCURS 50,
BUTXT LIKE T001-BUTXT,
END OF XVALUES.
DATA : BEGIN OF XFIELDS OCCURS 50.
INCLUDE STRUCTURE HELP_VALUE.
DATA : END OF XFIELDS.
DATA : BEGIN OF SEL_VAL OCCURS 50.
INCLUDE STRUCTURE HELP_VTAB.
DATA : END OF SEL_VAL.
TABLE CONTROL DECLARATIONS------
CONTROLS : CONTROL_DATA TYPE TABLEVIEW USING SCREEN '100'.
DATA : OK_CODE TYPE SY-UCOMM,
LIN TYPE I,
LIN1 TYPE I,
LIN2 TYPE I,
LIN3 TYPE I.
DATA: LINES TYPE I,
LIMIT TYPE I VALUE 1.
DATA : LINE_COUNT TYPE I,
LINEI TYPE I,
LINEJ TYPE I,
LINE1 TYPE I,
LINE2 TYPE I,
LN1 TYPE I.
SELECTION-SCREEN : BEGIN OF BLOCK B1.
SELECT-OPTIONS : P_VBELN FOR VBAK-VBELN.
SELECTION-SCREEN : END OF BLOCK B1.
START-OF-SELECTION.
SELECT VBELN
ERDAT
ERNAM
ERZET
FROM VBAK
INTO TABLE ITAB
WHERE VBELN IN P_VBELN.
CALL SCREEN 100.
*& Module F4_HELP INPUT
MODULE F4_HELP INPUT.
FREE : XFIELDS,SEL_VAL,XVALUES.
MOVE : 'ZMAHI' TO XFIELDS-TABNAME,
'REASON' TO XFIELDS-FIELDNAME,
'X' TO XFIELDS-SELECTFLAG.
APPEND XFIELDS.
XVALUES = 'Non Trade F&F'.
APPEND XVALUES .
XVALUES = 'Non Trade Retention'.
APPEND XVALUES .
XVALUES = 'Oldbills Accnt cntmnt'.
APPEND XVALUES .
XVALUES = 'Non Trade Not claimed'.
APPEND XVALUES .
XVALUES = 'Non Trade Dispute'.
APPEND XVALUES .
XVALUES = 'Non Trade Payment Block'.
APPEND XVALUES .
XVALUES = 'N/T Subsntly Cleared'.
APPEND XVALUES .
XVALUES = 'N/T Unstld Advances'.
APPEND XVALUES .
XVALUES = 'N/T OThers'.
APPEND XVALUES .
XVALUES = 'Trade Non Receipt OF BOE'.
APPEND XVALUES .
XVALUES = 'Trade OEM Adjustments'.
APPEND XVALUES .
XVALUES = 'Trade Reject Of Material'.
APPEND XVALUES .
XVALUES = 'Trade NOt Claimed'.
APPEND XVALUES .
XVALUES = 'Trade Dispute'.
APPEND XVALUES .
XVALUES = 'Trade Payment BLock'.
APPEND XVALUES .
XVALUES = 'Trade Subsntly Cleared'.
APPEND XVALUES .
XVALUES = 'Trade Non Submission of bills'.
APPEND XVALUES .
XVALUES = 'Trade others'.
APPEND XVALUES .
CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE_EXT'
EXPORTING
CUCOL = 0
CUROW = 0
DISPLAY = ' '
FIELDNAME = 'REASON'
TABNAME = 'ZIFIOD011'
IMPORTING
SELECT_VALUE = ITAB-REASON
TABLES
FIELDS = XFIELDS
SELECT_VALUES = SEL_VAL
VALUETAB = XVALUES.
ENDMODULE. " F4_HELP INPUT
*& Module STATUS_0100 OUTPUT
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS '0100'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'CANCEL' OR 'EXIT' OR 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'NEXT_LINE'.
CONTROL_DATA-top_line = CONTROL_DATA-top_line + 1.
limit = fill - lines + 1.
IF CONTROL_DATA-top_line > limit.
CONTROL_DATA-top_line = limit.
ENDIF.
WHEN 'PREV_LINE'.
CONTROL_DATA-top_line = CONTROL_DATA-top_line - 1.
IF CONTROL_DATA-top_line < 0.
CONTROL_DATA-top_line = 0.
ENDIF.
WHEN 'NEXT_PAGE'.
CONTROL_DATA-TOP_LINE = CONTROL_DATA-TOP_LINE + LINES.
LIMIT = LIMIT + 1.
CONTROL_DATA-TOP_LINE = LIMIT.
WHEN 'PREV_PAGE'.
CONTROL_DATA-TOP_LINE = CONTROL_DATA-TOP_LINE - LINES.
LIMIT = LIMIT - 1.
CONTROL_DATA-TOP_LINE = LIMIT.
WHEN 'LAST_PAGE'.
CONTROL_DATA-TOP_LINE = FILL - LINES + 1.
WHEN 'FIRST_PAGE'.
CONTROL_DATA-TOP_LINE = 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module SCROLL_BAR INPUT
MODULE SCROLL_BAR INPUT.
DESCRIBE TABLE ITAB LINES CONTROL_DATA-LINES.
ENDMODULE. " SCROLL_BAR INPUT
thanks,
maheedhar.THi Ravi,
The code which u sent to me is not working for next page and previous page.
can u plz resend me the code.
iam sending my code below.
REPORT ZMAHI_TABLE_CONTROL .
TABLES : VBAK,VBAP.
DATA : BEGIN OF ITAB OCCURS 0,
VBELN TYPE VBAK-VBELN,
ERDAT TYPE VBAK-ERDAT,
ERNAM TYPE VBAK-ERNAM,
ERZET TYPE VBAK-ERZET,
REASON(40) TYPE C,
END OF ITAB.
DATA : FILL TYPE I VALUE 1.
DATA : N TYPE I .
DATA : BEGIN OF XVALUES OCCURS 50,
BUTXT LIKE T001-BUTXT,
END OF XVALUES.
DATA : BEGIN OF XFIELDS OCCURS 50.
INCLUDE STRUCTURE HELP_VALUE.
DATA : END OF XFIELDS.
DATA : BEGIN OF SEL_VAL OCCURS 50.
INCLUDE STRUCTURE HELP_VTAB.
DATA : END OF SEL_VAL.
TABLE CONTROL DECLARATIONS------
CONTROLS : CONTROL_DATA TYPE TABLEVIEW USING SCREEN '100'.
DATA : OK_CODE TYPE SY-UCOMM,
LIN TYPE I,
LIN1 TYPE I,
LIN2 TYPE I,
LIN3 TYPE I.
DATA: LINES TYPE I,
LIMIT TYPE I VALUE 1.
DATA : LINE_COUNT TYPE I,
LINEI TYPE I,
LINEJ TYPE I,
LINE1 TYPE I,
LINE2 TYPE I,
LN1 TYPE I.
SELECTION-SCREEN : BEGIN OF BLOCK B1.
SELECT-OPTIONS : P_VBELN FOR VBAK-VBELN.
SELECTION-SCREEN : END OF BLOCK B1.
START-OF-SELECTION.
SELECT VBELN
ERDAT
ERNAM
ERZET
FROM VBAK
INTO TABLE ITAB
WHERE VBELN IN P_VBELN.
CALL SCREEN 100.
*& Module F4_HELP INPUT
MODULE F4_HELP INPUT.
FREE : XFIELDS,SEL_VAL,XVALUES.
MOVE : 'ZMAHI' TO XFIELDS-TABNAME,
'REASON' TO XFIELDS-FIELDNAME,
'X' TO XFIELDS-SELECTFLAG.
APPEND XFIELDS.
XVALUES = 'Non Trade F&F'.
APPEND XVALUES .
XVALUES = 'Non Trade Retention'.
APPEND XVALUES .
XVALUES = 'Oldbills Accnt cntmnt'.
APPEND XVALUES .
XVALUES = 'Non Trade Not claimed'.
APPEND XVALUES .
XVALUES = 'Non Trade Dispute'.
APPEND XVALUES .
XVALUES = 'Non Trade Payment Block'.
APPEND XVALUES .
XVALUES = 'N/T Subsntly Cleared'.
APPEND XVALUES .
XVALUES = 'N/T Unstld Advances'.
APPEND XVALUES .
XVALUES = 'N/T OThers'.
APPEND XVALUES .
XVALUES = 'Trade Non Receipt OF BOE'.
APPEND XVALUES .
XVALUES = 'Trade OEM Adjustments'.
APPEND XVALUES .
XVALUES = 'Trade Reject Of Material'.
APPEND XVALUES .
XVALUES = 'Trade NOt Claimed'.
APPEND XVALUES .
XVALUES = 'Trade Dispute'.
APPEND XVALUES .
XVALUES = 'Trade Payment BLock'.
APPEND XVALUES .
XVALUES = 'Trade Subsntly Cleared'.
APPEND XVALUES .
XVALUES = 'Trade Non Submission of bills'.
APPEND XVALUES .
XVALUES = 'Trade others'.
APPEND XVALUES .
CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE_EXT'
EXPORTING
CUCOL = 0
CUROW = 0
DISPLAY = ' '
FIELDNAME = 'REASON'
TABNAME = 'ZIFIOD011'
IMPORTING
SELECT_VALUE = ITAB-REASON
TABLES
FIELDS = XFIELDS
SELECT_VALUES = SEL_VAL
VALUETAB = XVALUES.
ENDMODULE. " F4_HELP INPUT
*& Module STATUS_0100 OUTPUT
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS '0100'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'CANCEL' OR 'EXIT' OR 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'NEXT_LINE'.
CONTROL_DATA-top_line = CONTROL_DATA-top_line + 1.
limit = fill - lines + 1.
IF CONTROL_DATA-top_line > limit.
CONTROL_DATA-top_line = limit.
ENDIF.
WHEN 'PREV_LINE'.
CONTROL_DATA-top_line = CONTROL_DATA-top_line - 1.
IF CONTROL_DATA-top_line < 0.
CONTROL_DATA-top_line = 0.
ENDIF.
WHEN 'NEXT_PAGE'.
CONTROL_DATA-TOP_LINE = CONTROL_DATA-TOP_LINE + LINES.
LIMIT = LIMIT + 1.
CONTROL_DATA-TOP_LINE = LIMIT.
WHEN 'PREV_PAGE'.
CONTROL_DATA-TOP_LINE = CONTROL_DATA-TOP_LINE - LINES.
LIMIT = LIMIT - 1.
CONTROL_DATA-TOP_LINE = LIMIT.
WHEN 'LAST_PAGE'.
DESCRIBE TABLE ITAB LINES LIMIT.
CONTROL_DATA-TOP_LINE = LIMIT.
WHEN 'FIRST_PAGE'.
CONTROL_DATA-TOP_LINE = 0.
WHEN 'P--'.
CLEAR ok_code.
PERFORM paging USING 'P--'.
WHEN 'P-'.
CLEAR ok_code.
PERFORM paging USING 'P-'.
WHEN 'P+'.
CLEAR ok_code.
PERFORM paging USING 'P+'.
WHEN 'P++'.
CLEAR ok_code.
PERFORM paging USING 'P++'.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module SCROLL_BAR INPUT
MODULE SCROLL_BAR INPUT.
DESCRIBE TABLE ITAB LINES CONTROL_DATA-LINES.
ENDMODULE. " SCROLL_BAR INPUT
*& Form paging
text
-->P_0356 text
*FORM paging USING VALUE(P_0356).
FORM paging USING code.
DATA: i TYPE i,
j TYPE i.
CASE code.
WHEN 'P--'.
CONTROL_DATA-top_line = 1.
WHEN 'P-'.
CONTROL_DATA-top_line = CONTROL_DATA-top_line - line_count.
IF CONTROL_DATA-top_line LE 0.
CONTROL_DATA-top_line = 1.
ENDIF.
WHEN 'P+'.
i = CONTROL_DATA-top_line + line_count.
j = CONTROL_DATA-lines - line_count + 1.
IF j LE 0. j = 1. ENDIF.
IF i LE j.
CONTROL_DATA-top_line = i.
ELSE.
CONTROL_DATA-top_line = j.
ENDIF.
WHEN 'P++'.
CONTROL_DATA-top_line = CONTROL_DATA-lines - line_count + 1.
IF CONTROL_DATA-top_line LE 0.
CONTROL_DATA-top_line = 1.
ENDIF.
ENDCASE.
ENDFORM. " PAGING
*ENDFORM. " paging
thanks,
maheedhar.t -
CASE Statement is not working Derived table
Hi All,
in the bello SQL Statement case statement is not working in derived table. I am new to creation of derived table if any body knows plz kinldy help me out on this.
SELECT x.market, x.droprate as med1
FROM
(select upper(market_name) as market, fulldate as date_value,
(sum([Dy_LOT_DROPS_N][Dy_OB_HO_DROPS][Dy_NonRF_Drop]))/
nullif(sum(CASE WHEN (month(BBHDLY.FullDate)}>= 6 and { year(BBHDLY.FullDate)} = 2011) or {fn year(IDENSLABBHDLY.FullDate)} > 2011
THEN BBHDLY.Dy_Calls - BBHDLY.Dy_HO_CHAN_ALLOC ELSE BBHDLY.Dy_Calls END),0)*100 as droprate
from BBHDLY sla
inner join Dim mkt
on sla.bts_name = mkt.bts_name and sla.SectorID = mkt.Sector_Id
where fulldate >= GETDATE()-46
group by market_name, fulldate) x,
(select market_name as market, fulldate as date_value,
(sum([Dy_LOT_DROPS_N][Dy_OB_HO_DROPS][Dy_NonRF_Drop]))/
nullif(sum(CASE WHEN ({fn month(BBHDLY.FullDate)}>= 6 and {fn year(BBHDLY.FullDate)} = 2011) or {fn year(BBHDLY.FullDate)} >
2011 THEN BBHDLY.Dy_Calls - BBHDLY.Dy_HO_CHAN_ALLOC ELSE BBHDLY.Dy_Calls END),0)*100 as droprate
from BBHDLY sla
inner join Dim mkt
on sla.bts_name = mkt.bts_name and sla.SectorID = mkt.Sector_Id
where fulldate >=GETDATE()-46
group by market_name, fulldate) y
where x.market = y.market
GROUP BY x.droprate, x.market
HAVING
SUM(CASE WHEN y.droprate <= x.droprate
THEN 1 ELSE 0 END)>=(COUNT(*)+1)/2 AND
SUM(CASE WHEN y.droprate >= x.droprate
THEN 1 ELSE 0 END)>=(COUNT(*)/2)+1
ThanksIt looks like SQL Server or Sybase given that you're using getdate().
As such, Vinesh's comment to use decode is wrong - decode is Oracle syntax.
Looking at your statement again, I've noticed the following:
you have no { to match the first } - not sure why you're using them anyway.
you haven't given x.market a name - use x.market as market instead
use coalesce instead of nullif if you're on SQL Server. -
Content Search Web Part - Sorting not working
I recently tried the new Content Search Web Part for which i see tremendous potential. I wanted to use it to show a certain type of pages and that was not a problem (i added a url as the source where i got the pages from). I mapped the correct fields so
that it showed image, title and modified date. I then tried the advanced mode and told it to sort by the modified date, however any way I tried to apply this sort it just would not save my settings and reverted back to the default sorting. Is there anything
else you need to do to get Sorting to work?
/AndersI hadn't tried looking with REST, but that's a good suggestion.
In the interim, I found this on TechNet:
http://technet.microsoft.com/en-us/library/jj679902.aspx#BKMK_MapCPtoRefinableMP<o:p></o:p>
When you search for a crawled property, you may find two crawled properties
that represent the same content. For example, a site column of type Text named
Color will during crawl discover two crawled properties: ows_Color and
ows_q_TEXT_Color. Crawled properties that begin with either ows_r<four
letter code>, ows_q<four letter code>, or ows_taxId are automatically
created crawled properties. When you select a crawled property to map to a
refinable managed property, make sure that you don't map the automatically
created crawled property. Instead, always map the crawled property that begins
with ows_.
So clearly (as clearly as the doc makes it) I need to use ows_ArticleStartDate. I've made sure that crawled property is the one I'm using, but I'm still not seeing any effect.
As for the sorting model, that only seems to be relevant for Rank sorting, right?
M.
Sympraxis Consulting LLC -
Marc D Anderson's Blog - @sympmarc -
jQuery Library for SharePoint Web Services (SPServices) -
DDL is not working on table!
Hi all' I have a problem in one of my db schema.
All of a sudden all views and triggers vanished and one of the tables is not allowing any ddl showing that resources are busy so lock could not be acquired . Instant help is needed.
Thanks in advanceDDL will not work if there are any uncommitted transactions with changes to the table.
If you can't find the sessions and end transactions,
then SHUTDOWN IMMEDIATE to terminate all
sessions and rollback uncommitted transactions.
When you STARTUP again, your DDL should work.
Best! -
"Include Header Row in Subsequent Pages" is not working for table
Hi,
I'm using version 8.1.2.3337.1.509884.
The pagnation feature "Include Header Row in Subsequent Pages" is not working for any table in my design. ( the check-box can not be checked no matter how many times I clicking it)
I put such table already in a flow bodypage.
Any similar issue reported?
Any suggestions?
Thanks.
-VickyHi Raghu,
Appologies that I uploaded a wrong version of xdp file yesterday.
Here is the correct one.
https://acrobat.com/#d=jr0XffvBZWXd0cVhL0OQ3A
I totally understand that I have to check the checkbox "Include Header Row in Subsequent Pages".
My problem is that, although I can see that checkbox, and it's not grey-out, I can not tick it. See below screenshot, with the red-cycle mark.
You can try with above file.
Just wondering why such weird behavior happened.
-Vicky
Maybe you are looking for
-
Getting the classic "Macintosh Basics" tutorials to run in OSX (and Linux?)
Good afternoon folks, I remember WAY back in the early days that there were really good basic tutorial programs that game with your new macintosh to teach you the basics. If my memory is correct, I THINK my favourite was the earliest one, "Mouse Basi
-
How do I turn off automatic streaming of MP3 audio?
I like to download podcasts directly to my desktop so I can later transfer them to my Sansa media player. Now that I've installed Quicktime podcasts stream and play automatically in my Firefox browser window. What settings do I change to turn off aut
-
How do you apply an EQ filter to multiple clips at once?
i need to EQ a VO and rather than apply the filter to each clip serparately, is there a way to apply one filter to multiple clips at once? thanks carl
-
Hi ; When unmarshaling XML which it's encoding is "ISO-8859-9" , i couldn't get the right encoded String objects . for example my XML starting like that : <?xml version="1.0" encoding="ISO-8859-9" ?><VIEW> <TYPE>INSERT</TYPE> <TableDefinition> <Table
-
When using facetime it only displays a picture and cannot view myself talking
when using facetime it only displays a picture and cannot view myself talking. i can call out but the other person cannot view me. what am i doing wrong? how can i fix this?