Why cannot the below code find cookie?
Hi,
Please see the following code in the aspx.cs file:
public bool IsShow()
try
string strAppFloatCnt = string.Empty;
if (System.Web.HttpContext.Current.Request.Cookies["appFloatCnt"] != null)
strAppFloatCnt = System.Web.HttpContext.Current.Request.Cookies["appFloatCnt"].Value;
int appFloatCnt = 0;
if (!string.IsNullOrEmpty(strAppFloatCnt))
appFloatCnt = Convert.ToInt32(strAppFloatCnt);
DateTime expires = DateTime.Now.AddDays(60);
if (appFloatCnt < 5)
if (System.Web.HttpContext.Current.Request.Cookies["appFloatCnt"] == null)
HttpCookie cookie = new HttpCookie("appFloatCnt");
cookie.Value = (appFloatCnt + 1).ToString();
cookie.Expires = expires;
System.Web.HttpContext.Current.Response.Cookies.Add(cookie);
else
System.Web.HttpContext.Current.Response.Cookies["appFloatCnt"].Value = (appFloatCnt + 1).ToString();
System.Web.HttpContext.Current.Response.Cookies["appFloatCnt"].Expires = expires;
return true;
else { return false; }
catch (System.Exception ex)
return false;
And then I called this method in the aspx file like the following way:
<input type="hidden" id="hiddenIsShowAppFloat" value="<%=IsShow()%>" />
Each time I refresh this page in Google Chrome, System.Web.HttpContext.Current.Request.Cookies["appFloatCnt"] always return NULL. Why?
Where should I edit the above code so that System.Web.HttpContext.Current.Request.Cookies["appFloatCnt"] can return the correct value instead of always NULL?
(I am using VS 2012. Operating system is Windows 7 Professional.)
Please help to sort out this problem. Thank you.
QQ
Please use the ASP.NET forums for ASP.NET related questions:
http://forums.asp.net
Similar Messages
-
hi i am receiving "exact fetch returns more than requested number of rows oracle error". but i am not able to locate the error in the below code. Any help would be appreciated!!!
CREATE OR REPLACE PROCEDURE load_scene_collection_item (
--pdname VARCHAR2,
-- LOCATION TO ADD/CHANGE below!!!
pITEM_TYPE_ID INTEGER,
pSCENE_COLLECTION_ID INTEGER,
pCOLLECTION_ITEM_NAME VARCHAR2,
pCOLLECTION_ITEM_DESC VARCHAR2,
pDEFAULT_COORD_X NUMBER,
pDEFAULT_COORD_Y NUMBER,
pDEFAULT_COORD_Z NUMBER,
pDEFAULT_WIDTH NUMBER,
pDEFAULT_HEIGHT NUMBER,
pDEFAULT_ROTATION INTEGER,
pDEFAULT_ALPHA INTEGER,
pfname VARCHAR2) IS
src_file BFILE;
dst_file BLOB;
lgh_file BINARY_INTEGER;
BEGIN
src_file := bfilename('BUSINESSBLOBSIMAGES', pfname);
-- insert a NULL record to lock
Insert into SCENE_COLLECTION_ITEM
( ITEM_TYPE_ID,
SCENE_COLLECTION_ID,
COLLECTION_ITEM_NAME,
COLLECTION_ITEM_DESC,
COLLECTION_ITEM_IMAGE,
DEFAULT_COORD_X,
DEFAULT_COORD_Y,
DEFAULT_COORD_Z,
DEFAULT_WIDTH,
DEFAULT_HEIGHT,
DEFAULT_ROTATION,
DEFAULT_ALPHA,
CREATE_USER,
CREATE_DATE)
Values ( pITEM_TYPE_ID, pSCENE_COLLECTION_ID, pCOLLECTION_ITEM_NAME, pCOLLECTION_ITEM_DESC, EMPTY_BLOB(),
pDEFAULT_COORD_X,
pDEFAULT_COORD_Y,
pDEFAULT_COORD_Z,
pDEFAULT_WIDTH,
pDEFAULT_HEIGHT,
pDEFAULT_ROTATION,
pDEFAULT_ALPHA,
sys_context('USERENV', 'OS_USER'),
sys_extract_utc(systimestamp))
RETURNING COLLECTION_ITEM_IMAGE INTO dst_file;
-- LOCATIONs(2) TO ADD/CHANGE above!!!
-- lock record
SELECT COLLECTION_ITEM_IMAGE
INTO dst_file
FROM SCENE_COLLECTION_ITEM
WHERE ITEM_TYPE_ID = pITEM_TYPE_ID
AND SCENE_COLLECTION_ID = pSCENE_COLLECTION_ID
AND COLLECTION_ITEM_NAME= pCOLLECTION_ITEM_NAME
AND COLLECTION_ITEM_DESC= pCOLLECTION_ITEM_DESC
AND pDEFAULT_COORD_X = DEFAULT_COORD_X
AND pDEFAULT_COORD_Y = DEFAULT_COORD_Y
AND pDEFAULT_COORD_Z = DEFAULT_COORD_Z
AND pDEFAULT_WIDTH = DEFAULT_WIDTH
AND pDEFAULT_HEIGHT = DEFAULT_HEIGHT
AND pDEFAULT_ROTATION = DEFAULT_ROTATION
AND pDEFAULT_ALPHA = DEFAULT_ALPHA
FOR UPDATE;
-- LOCATION TO ADD/CHANGE above!!!
-- open the file
dbms_lob.fileopen(src_file, dbms_lob.file_readonly);
-- determine length
lgh_file := dbms_lob.getlength(src_file);
-- read the file
dbms_lob.loadfromfile(dst_file, src_file, lgh_file);
-- update the blob field
UPDATE SCENE_COLLECTION_ITEM
SET COLLECTION_ITEM_IMAGE = dst_file
WHERE ITEM_TYPE_ID = pITEM_TYPE_ID
AND SCENE_COLLECTION_ID = pSCENE_COLLECTION_ID
AND COLLECTION_ITEM_NAME= pCOLLECTION_ITEM_NAME
AND COLLECTION_ITEM_DESC= pCOLLECTION_ITEM_DESC
AND pDEFAULT_COORD_X = DEFAULT_COORD_X
AND pDEFAULT_COORD_Y = DEFAULT_COORD_Y
AND pDEFAULT_COORD_Z = DEFAULT_COORD_Z
AND pDEFAULT_WIDTH = DEFAULT_WIDTH
AND pDEFAULT_HEIGHT = DEFAULT_HEIGHT
AND pDEFAULT_ROTATION = DEFAULT_ROTATION
AND pDEFAULT_ALPHA = DEFAULT_ALPHA
-- LOCATION TO ADD/CHANGE above!!!
-- close file
dbms_lob.fileclose(src_file);
END load_scene_collection_item;
Thanks in advance!!!!Hi PaulHorth,
Thanks for the quick reply.
Actually, i am getting error while updating the records.
below is the error message:
Error starting at line 1 in command:
exec load_scene_collection_item(3,15,'2 Lane 4way Stop','4 Way Stop Intersection with 2 lanes in each direction',0,0,0,400,517,0,1,'2 Lane 4way Stop.PNG');
Error report:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "DP_OWNER.LOAD_SCENE_COLLECTION_ITEM", line 55
ORA-06512: at line 1
01422. 00000 - "exact fetch returns more than requested number of rows"
*Cause: The number specified in exact fetch is less than the rows returned.
*Action: Rewrite the query or change number of rows requested -
Why is the below IMAP code failing?
Hi,
Can any one point me whats wrong in the below code? It always gives no message found devoid of pressence of messages.
mailStore.connect(username, password);
inbox = mailStore.getFolder("inbox");
inbox.open(Folder.READ_WRITE);
IMAPFolder imapInbox = (IMAPFolder)inbox;
Flags flg = new Flags(Flags.Flag.RECENT);
SearchTerm newMess = new FlagTerm(flg, true);
System.out.println(imapInbox.getMessageCount());
Message[] mails = imapInbox.search(newMess);
if(mails.length == 0) {
System.out.println("No Messages Found");
} else {
System.out.println(mails.length + "Mails found");
}Thanks,
Harish SrinivasanAgain, see the debugging section of the FAQ. The protocol trace will be very helpful.
-
Please optimize the below code!!!!urgent
friends,
i know that cluster tables cannot be joined with transparent tables....
however i need performance improvement for the following code....
if possible is there a way to join bkpf or bseg to improve performance....can we create view foe bkpf and bseg if yes then how.....
please modify the below code for improvement in performance.
START-OF-SELECTION.
SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
WHERE bukrs = p_bukrs AND "COMPANY CODE
gjahr = p_gjahr AND "FISCAL YEAR
budat IN s_budat. "POSTING DATE IN DOC
IF sy-subrc = 0.
SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
i_bseg FOR ALL ENTRIES IN i_bkpf
WHERE bukrs = i_bkpf-bukrs AND "COMPANY CODE
belnr = i_bkpf-belnr AND "A/CING DOC NO
gjahr = i_bkpf-gjahr AND "FISCAL YEAR
hkont = p_hkont. "General Ledger Account"
IF sy-subrc = 0.
SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
i_bseg1 FOR ALL ENTRIES IN i_bseg
WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
belnr = i_bseg-belnr AND "A/CING DOC NO
gjahr = i_bseg-gjahr. "FISCAL YEAR
ENDIF.
ENDIF.
IF NOT i_bseg1[] IS INITIAL.
LOOP AT i_bseg1.
IF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'S'.
v_sumgl = v_sumgl + i_bseg1-dmbtr.
ELSEIF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'H'.
v_sumgl = v_sumgl - i_bseg1-dmbtr.
ELSEIF i_bseg1-hkont NE p_hkont .
IF i_bseg1-shkzg = 'H'.
i_bseg1-dmbtr = - i_bseg1-dmbtr.
ENDIF.
i_alv-hkont = i_bseg1-hkont.
i_alv-dmbtr = i_bseg1-dmbtr.
APPEND i_alv.
v_sumoffset = v_sumoffset + i_bseg1-dmbtr.
ENDIF.
ENDLOOP.
regards
Essam.([email protected])Hi ,
<b>Pls use for all entries as below to join these two tables :</b>
For pool and cluster table you can create secondary index and you can use select distinct, group for pool and cluster table. You can use native SQL statement for pool and cluster table.
see the query for Bseg table :
example :
*Code to demonstrate select command
*Code to demonstrate select into internal table command
TYPES: BEGIN OF t_bkpf,
* include structure bkpf.
bukrs LIKE bkpf-bukrs,
belnr LIKE bkpf-belnr,
gjahr LIKE bkpf-gjahr,
bldat LIKE bkpf-bldat,
monat LIKE bkpf-monat,
budat LIKE bkpf-budat,
xblnr LIKE bkpf-xblnr,
awtyp LIKE bkpf-awtyp,
awkey LIKE bkpf-awkey,
END OF t_bkpf.
DATA: it_bkpf TYPE STANDARD TABLE OF t_bkpf INITIAL SIZE 0,
wa_bkpf TYPE t_bkpf.
TYPES: BEGIN OF t_bseg,
*include structure bseg.
bukrs LIKE bseg-bukrs,
belnr LIKE bseg-belnr,
gjahr LIKE bseg-gjahr,
buzei LIKE bseg-buzei,
mwskz LIKE bseg-mwskz, "Tax code
umsks LIKE bseg-umsks, "Special G/L transaction type
prctr LIKE bseg-prctr, "Profit Centre
hkont LIKE bseg-hkont, "G/L account
xauto LIKE bseg-xauto,
koart LIKE bseg-koart,
dmbtr LIKE bseg-dmbtr,
mwart LIKE bseg-mwart,
hwbas LIKE bseg-hwbas,
aufnr LIKE bseg-aufnr,
projk LIKE bseg-projk,
shkzg LIKE bseg-shkzg,
kokrs LIKE bseg-kokrs,
END OF t_bseg.
DATA: it_bseg TYPE STANDARD TABLE OF t_bseg INITIAL SIZE 0,
wa_bseg TYPE t_bseg.
*Select FOR ALL ENTRIES command
SELECT bukrs belnr gjahr bldat monat budat xblnr awtyp awkey
UP TO 100 ROWS
FROM bkpf
INTO TABLE it_bkpf.
IF sy-subrc EQ 0.
* The FOR ALL ENTRIES comand only retrieves data which matches
* entries within a particular internal table.
SELECT bukrs belnr gjahr buzei mwskz umsks prctr hkont xauto koart
dmbtr mwart hwbas aufnr projk shkzg kokrs
FROM bseg
INTO TABLE it_bseg
FOR ALL ENTRIES IN it_bkpf
WHERE bukrs EQ it_bkpf-bukrs AND
belnr EQ it_bkpf-belnr AND
gjahr EQ it_bkpf-gjahr.
ENDIF.
<b>Pls reward pts if found usefull :)</b>
regards
Sathish -
In application code I have the below code.
IF v_service_variant NOT IN(0,1,2,3,4) THEN --Checking whether existing service variant is applicable in 21Cn Fibre.
v_service_variant := 3; --If not making it as a standard service
UPDATE sspt_sessions_table SET service_variant = v_service_variant WHERE sess_id=v_sess_id; --Updating sspt_sessions_table
SELECT DECODE(service_variant_id, 0, 'None', 1, 'Loadbalancing', 2, 'Failover',3, 'BGP4', 4, 'Backup') INTO l_service_variant --To get the service variant name
FROM sspt_maj_resilience WHERE service_variant_id=v_service_variant;
UPDATE sspt_prquote_details SET service_variant = l_service_variant WHERE ftip=l_ftip AND sess_id=v_sess_id; --Updating sspt_prquote_details
COMMIT;
END IF;
Then the statements inside the if condition are not being executed. At the same time if I am replacing NOT IN with IN only and making changes to get if condition true then it is going inside the IF condition.... Could anyone please help me on this950474 wrote:
In application code I have the below code.
IF v_service_variant NOT IN(0,1,2,3,4) THEN --Checking whether existing service variant is applicable in 21Cn Fibre.
v_service_variant := 3; --If not making it as a standard service
UPDATE sspt_sessions_table SET service_variant = v_service_variant WHERE sess_id=v_sess_id; --Updating sspt_sessions_table
SELECT DECODE(service_variant_id, 0, 'None', 1, 'Loadbalancing', 2, 'Failover',3, 'BGP4', 4, 'Backup') INTO l_service_variant --To get the service variant name
FROM sspt_maj_resilience WHERE service_variant_id=v_service_variant;
UPDATE sspt_prquote_details SET service_variant = l_service_variant WHERE ftip=l_ftip AND sess_id=v_sess_id; --Updating sspt_prquote_details
COMMIT;
END IF;
Then the statements inside the if condition are not being executed. At the same time if I am replacing NOT IN with IN only and making changes to get if condition true then it is going inside the IF condition.... Could anyone please help me on thishow can we reproduce what you report?
while "not working" may be 100%, it is also 100% devoid of any actionable detail.
what results when it is not working?
how would working results supposedly appear?
How do I ask a question on the forums?
SQL and PL/SQL FAQ -
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu -
Required clarification for the below code:
Hi All,
For one of my requiremnet, i found one solution which worked as expected.. But i was not able to understand the logic.. Can any one explain me the below
syntax what exactly the meaning for the below code:
Code:
SELECT NULL
FROM apex_application_page_ir_cond cond
WHERE cond.application_id = v('APP_ID')
AND cond.page_id = v('APP_PAGE_ID')
AND cond.condition_type = 'Filter'
AND cond.condition_enabled = 'Yes'
AND cond.report_id = (SELECT report_id
FROM apex_application_page_ir_rpt
WHERE application_id = v('APP_ID')
AND page_id = v('APP_PAGE_ID')
AND application_user = v('APP_USER')
AND report_type = 'SESSION'
AND TO_CHAR (session_id) = v('SESSION')
AND report_name IS NULL))
For your refernec i have enclosed the link also
URL : Re: Interactive_Report with Search Bar only
Thanks,
Anoo..Anoo,
Two things. First, it makes things a lot easier if you put "{code}" (no quotes) around your SQL when you post it:
SELECT rowid "EDIT", attr_code,ATTR_ATCL_CODE "Atcl Code", attr_description, attr_atcl_code,
attr_abbreviation,
attr_include_short_desc "Include short desc",
attr_include_long_desc "Include long desc",
attr_attr_type "AttrType", rowid "DELETE"
FROM t_new WHERE EXISTS (SELECT 1 FROM APEX_APPLICATION_PAGE_IR_COND WHERE APPLICATION_ID = :APP_ID AND PAGE_ID = :APP_PAGE_ID AND CONDITION_ENABLED = 'Yes'
AND APPLICATION_USER = :APP_USER) ORDER BY attr_description;Though the spacing still needs work, it's a little easier to read.
Second, your query's exist clause just checks for an enabled condition, without checking the condition type. Without checking, I'd guess that either APEX creates at least one internal condition, or that your IR has a default condition on it (other than a filter). Try adding the condition_type constraint to your where clause to see if that fixes it.
Also, I noted that you don't have the extra code for getting the report_id. It shouldn't be necessary, since there's currently only support for one IR per page, but you asked what the differences are.
-David -
Performance for the below code
Can any one help me in improving the performance for the below code.
FORM RETRIEVE_DATA .
CLEAR WA_TERRINFO.
CLEAR WA_KNA1.
CLEAR WA_ADRC.
CLEAR SORT2.
*To retrieve the territory information from ZPSDSALREP
SELECT ZZTERRMG
ZZSALESREP
NAME1
ZREP_PROFILE
ZTEAM
INTO TABLE GT_TERRINFO
FROM ZPSDSALREP.
*Preparing Corporate ID from KNA1 & ADRC and storing it in SORT2 field
LOOP AT GT_TERRINFO INTO WA_TERRINFO.
SELECT SINGLE * FROM KNA1 INTO WA_KNA1
WHERE KUNNR = WA_TERRINFO-SALESREP.
SELECT SINGLE * FROM ADRC INTO WA_ADRC
WHERE ADDRNUMBER = WA_KNA1-ADRNR.
IF NOT WA_ADRC-SORT2 IS INITIAL.
CONCATENATE 'U' WA_ADRC-SORT2 INTO SORT2.
MOVE SORT2 TO WA_TERRINFO-SORT2.
MODIFY GT_TERRINFO1 FROM WA_TERRINFO.
APPEND WA_TERRINFO TO GT_TERRINFO1.
CLEAR WA_TERRINFO.
ENDIF.
CLEAR WA_KNA1.
CLEAR WA_ADRC.
ENDLOOP.
ENDFORM. " RETRIEVE_DATAHi
The code is easy so I don't think you can do nothing, only u can try to limit the reading of KNA1:
FORM RETRIEVE_DATA .
CLEAR WA_TERRINFO.
CLEAR WA_KNA1.
CLEAR WA_ADRC.
CLEAR SORT2.
*To retrieve the territory information from ZPSDSALREP
SELECT ZZTERRMG
ZZSALESREP
NAME1
ZREP_PROFILE
ZTEAM
INTO TABLE GT_TERRINFO
FROM ZPSDSALREP.
SORT GT_TERRINFO BY SALESREP.
*Preparing Corporate ID from KNA1 & ADRC and storing it in SORT2 field
LOOP AT GT_TERRINFO INTO WA_TERRINFO.
IF KNA1-KUNNR <> WA_KNA1-KUNNR.
SELECT SINGLE * FROM KNA1 INTO WA_KNA1
WHERE KUNNR = WA_TERRINFO-SALESREP.
IF SY-SUBRC <> 0.
CLEAR: WA_KNA1, WA_ADRC.
ELSE.
SELECT SINGLE * FROM ADRC INTO WA_ADRC
WHERE ADDRNUMBER = WA_KNA1-ADRNR.
IF SY-SUBRC <> 0. WA_ADRC. ENDIF.
ENDIF.
ENDIF.
IF NOT WA_ADRC-SORT2 IS INITIAL.
CONCATENATE 'U' WA_ADRC-SORT2 INTO SORT2.
MOVE SORT2 TO WA_TERRINFO-SORT2.
* MODIFY GT_TERRINFO1 FROM WA_TERRINFO.
APPEND WA_TERRINFO TO GT_TERRINFO1.
CLEAR WA_TERRINFO.
ENDIF.
ENDLOOP.
ENDFORM. " RETRIEVE_DATA
If program takes many times to upload the data from ZPSDSALREP, you can try to split in sevaral packages:
SELECT ZZTERRMG ZZSALESREP NAME1 ZREP_PROFILE ZTEAM
INTO TABLE GT_TERRINFO PACKAGE SIZE <...>
FROM ZPSDSALREP.
SORT GT_TERRINFO BY SALESREP.
*Preparing Corporate ID from KNA1 & ADRC and storing it in SORT2 field
LOOP AT GT_TERRINFO INTO WA_TERRINFO.
IF KNA1-KUNNR <> WA_KNA1-KUNNR.
SELECT SINGLE * FROM KNA1 INTO WA_KNA1
WHERE KUNNR = WA_TERRINFO-SALESREP.
IF SY-SUBRC <> 0.
CLEAR: WA_KNA1, WA_ADRC.
ELSE.
SELECT SINGLE * FROM ADRC INTO WA_ADRC
WHERE ADDRNUMBER = WA_KNA1-ADRNR.
IF SY-SUBRC <> 0. WA_ADRC. ENDIF.
ENDIF.
ENDIF.
IF NOT WA_ADRC-SORT2 IS INITIAL.
CONCATENATE 'U' WA_ADRC-SORT2 INTO SORT2.
MOVE SORT2 TO WA_TERRINFO-SORT2.
* MODIFY GT_TERRINFO1 FROM WA_TERRINFO.
APPEND WA_TERRINFO TO GT_TERRINFO1.
CLEAR WA_TERRINFO.
ENDIF.
ENDLOOP.
ENDSELECT.
Max -
Why is the dot in find my iPhone purple?
Why is the dot in find my IPhone purple?
On the map where my phone is. The dot is normally green
-
Why is the option to reject cookies non-existent on 3.6.8
Why is the option to reject cookies non-existent on 3.6.8? On all previous versions I could reject the bad cookies and now you take a great feature away, WHY?
On Tools > Options > Privacy, is "Firefox will:" set to "Use custom setting for history" so that you can see all of the options available? See: http://support.mozilla.com/en-US/kb/Options+window+-+Privacy+panel#Use_custom_settings_for_history
-
I want to run the below code for zone_id 1 to 12. How will I do that ?
Kindly help me on this.
DECLARE
CURSOR c1 IS SELECT item FROM [email protected];
CURSOR c2(tmp_item VARCHAR2) IS
SELECT location FROM rpm_zone_location WHERE zone_id = 1
MINUS
SELECT DISTINCT location from rpm_clearance WHERE item = tmp_item AND reset_ind = 1 and location in
(select location from rpm_zone_location where zone_id=1);
BEGIN
FOR i IN c1
LOOP
FOR j IN c2 (i.item)
LOOP
INSERT INTO RMS12.RPM_CLEARANCE
(CLEARANCE_ID,
CLEARANCE_DISPLAY_ID,
STATE,
REASON_CODE,
LOC_EXCEPTION_PARENT_ID,
PARENT_EXCEPTION_PARENT_ID,
CLEARANCE_RESET_ID,
RESET_IND,
ITEM,
DIFF_ID,
ZONE_ID,
LOCATION,
ZONE_NODE_TYPE,
EFFECTIVE_DATE,
OUT_OF_STOCK_DATE,
RESET_DATE,
CHANGE_TYPE,
CHANGE_AMOUNT,
CHANGE_CURRENCY,
CHANGE_PERCENT,
CHANGE_SELLING_UOM,
PRICE_GUIDE_ID,
VENDOR_FUNDED_IND,
FUNDING_TYPE,
FUNDING_AMOUNT,
FUNDING_AMOUNT_CURRENCY,
FUNDING_PERCENT,
SUPPLIER,
DEAL_ID,
DEAL_DETAIL_ID,
PARTNER_TYPE,
PARTNER_ID,
CREATE_DATE,
CREATE_ID,
APPROVAL_DATE,
APPROVAL_ID,
LOCK_VERSION)
SELECT
RPM_CLEARANCE_SEQ.Nextval,
'reset:'||CLEARANCE_DISPLAY_ID,
'pricechange.state.approved',
REASON_CODE,
LOC_EXCEPTION_PARENT_ID,
PARENT_EXCEPTION_PARENT_ID,
CLEARANCE_RESET_ID,
1,
ITEM,
DIFF_ID,
null,
c2.location,
0,
null,
OUT_OF_STOCK_DATE,
null,
CHANGE_TYPE,
CHANGE_AMOUNT,
CHANGE_CURRENCY,
CHANGE_PERCENT,
CHANGE_SELLING_UOM,
PRICE_GUIDE_ID,
VENDOR_FUNDED_IND,
FUNDING_TYPE,
FUNDING_AMOUNT,
FUNDING_AMOUNT_CURRENCY,
FUNDING_PERCENT,
SUPPLIER,
DEAL_ID,
DEAL_DETAIL_ID,
PARTNER_TYPE,
PARTNER_ID,
CREATE_DATE,
'RMS12',
APPROVAL_DATE,
'RMS12',
LOCK_VERSION
from rpm_clearance where zone_id=1 and item = j.item;
END LOOP;
COMMIT;
END LOOP;
END;It might be a good idea to post this again using the "code" button so that it's properly formatted. Take your time so that it's as accurate as possible. And don't forget to say at what point as the program executes this eligibility is being considered.
-
Why is the captcha code a question mark?
In Safari Version 7.1 (9537.85.10.17.1), a retailers website has a "Contact Us" page and requires a captcha code to be entered at the bottom. The problem I have is that there is no captcha code below the the sentence: "Please enter the following code into the box provided:" There is a blue square with a white question mark in it and a sound icon next to that. I have set all extensions to allow tracking cookies, enabled pop-up windows, and set cookies to never be blocked but I cannot get a code. The same problem exists in Firefox and Chrome. What can I do? Thanks for any suggestions.
If it happens on all browsers, there's nothing you can do. It's a problem on the retailers website.
-
Why does the bar code look "chubby" when I save to PDF?
Hi, I'm designing a book cover for a client in Illustrator, and it has a bar code on the back of it. When I save the file as an .ai or a .png or .jpeg, it appears fine. But when I save the file as a .pdf (which my client will be viewing, and for print), the bar code looks like the lines have gotten bigger or run together! It's really weird...no matter which preset I use, it appears like this (I've attached a screenshot). I've also tried the "flatten transparency" and converting the numbers to outlines, but they still tend to distort when the pdf is viewed.
Any suggestions on how to fix this, or why this might be happening? It scares the client when they see it....
The lines in the picture are MUCH thicker than the actual bar code, and some appear to have blended together.Hi Mike,
In the Preferences area of Adobe Reader, go to the Page Display tab, and
make sure that "Enhance thin lines" is unchecked. That seemed to solve
most of my problems with the type! Hope that works for you too!
Laci Morgan -
Why is the Error Code 0x8002006E While Burning the Disc?
Hey there! I don't seem to get through this Issue. I was trying to burn content to a Disc and it failed with the error code 0x8002006E, while the process was almost complete. I came across a few forums and nothing helped much to resolve this problem. Is there someone who knows the exact cause? Is this is a known-issue or anything already being addressed by Apple? Or a work-around to get this resolved? because i also read (did not try) that no third-party applications, as an alternative, solved this Issue. Disappointed! Help!
Model: iMac (21.5-inch, Mid 2011)
OS: Lion OS X 10.7.4
I have the latest software updates and Firmware updates installed.
Thank you,
Sivarama Krishnan (kvsrkrishnan)
<Edited by Host>I found this article excerpt:
The few solution that where found where by calling at Apple and get technical support. There are a few solutions that might work.
The first one would be Go to users > your computer name / user name > library > Preferences > com.apple.finder.plist and delete this file. Also it’s advised to keep the burn speed at 8x.
The second solution found that Apple technical support gave is to unplug everything, including the AC power cord and then remove the battery. Press the power button for 10 seconds without replacing the battery or attaching the AC power cord and after the 10 seconds are up replace the battery. After the battery is in slot hold down the following keys with the left hand: Option + Apple (command) + R and with the right hand hold down the following keys: P + Power Button. You will need to hold all 5 of these buttons at the same time until you hear both sets of startup chimes Release all of the 5 buttons after you hear the two startup chime sounds.
Hope this helps -
Why has the option to delete cookies on quit been eliminated from preferences in Firefox 12
The "Privacy" preferences panel no longer offers the option to delete cookies on quit, as it did in Ffx 6, the version I updated from. Has this option been moved elsewhere? Has it been eliminated? If it has been eliminated, what is the last version that offers it? Could you please give me a '''specific, working''' URL where I can download the latest version that allows setting a "delete on quit" policy for cookies.
If Firefox puts the user first, why are your "updates" dumming down on user-settable options, especially one as important as an easy and convenient way to prevent cookies from hanging around till the next ice age. I realize I can manually delete cookies, but this is a pain in the rear, especially since I am missing most of my fingers. All those extra strokes that the ten fingered world dismisses as trivial really add up when you have only 2.5 fingers and one eye.Your image shows "Firefox will Remember History".
It has a dropdown arrow which usually shows -
"Firefox will Never Remember History" and, what you need,
"Firefox will Use Custom Settings". This opens a range of options.
Is this pair of dropdown arrows not working?
Maybe you are looking for
-
Relocated iPhoto to external hard drive - now need to delete old library.
I have relocated my iPhoto library to my external hard drive. I did this due to space issues on my internal hard drive. Now I need to delete my iPhoto library on my internal hard drive to give me more memory. What is the best, easiest, and safest way
-
How do I paste a table from Numbers or Excel into Ibook Author exactly as the original?
I am new to iMac and Ibook Author. I am writing a statistical paper in Ibooks Author. I have Chapter heading, now section heading and body. I want to paste a table from numbers or excel into my iBook as this has the results of my analysis. As part o
-
Automatic output of a Schemafile from DB-Content
Hello everybody, is it possible to generate Schemas automatically from DB-Content? I choose a table and the schema-processor generates a schema from the table-definition and an xml-file with the content? Thanks a lot Andy
-
Motif libraries for Suse 6.2
My Oracle developer 6i for Linux will not install on Suse 6.2 because I am missing some Motif libraries. libXm.a and some others. Has anyone installed the developer 6i on Suse If so perhaps you could help me get the Motif libraries. Any help is appre
-
What a fiasco. Ordered a house move on line and it was actioned against the wrong date. Quickly contacted BT and was assured the date will be amended and my existing service would not be disconnected. Guess what, BT Infinity cancelled, been trying