SP online 365 - Unable to render the data. If the problem persists, contact your web server administrator.
Help needed urgently, i'm pulling my hair out on this one!
Using SharePoint online (365) I am trying to create an external list to a SQL table. I go through the steps in SP designer and finally create the external list but when I go to the list I get the error:
Unable to render the data. If the problem persists, contact your web server administrator.
I have read all of the posts on here to fix this and they are mainly for on premise; the powershell doesn't work with spOnline and I have added permissions into the BCS service application but nothing works. I read that it is not possible to connect
sharepoint online to an on-premise SQL database so I moved the SQL database to an azure SQL service server but I still get the same error.
I have a "test" on premise sharepoint which I have tried this on and it works fine so it must be an issue with SPonline! does anyone know how to get BCS connections to external data working in sharepoint online as external lists?
Hi,
In SharePoint online, we support:
Business Data Connectivity (BDC)
Data Source types, including Windows Communication Foundation (WCF)
SQL Server Azure connectors
I'd suggest you refer to the article below:
https://support.office.com/en-us/article/Make-an-External-List-from-a-SQL-Azure-table-with-Business-Connectivity-Services-and-Secure-Store-466f3809-fde7-41f2-87f7-77d9fdadfc95?ui=en-US&rs=en-US&ad=US
It describes about how to use SharePoint technologies to access data from a SQL Azure database without having to write code, including create an External List by using Business Connectivity Services (BCS) and Secure Store. BCS connects SharePoint solutions
to external data, and Secure Store enables user authentication for the data. By using an External List, you can display the contents of a table from SQL Azure in SharePoint Online. Users can read, edit, and update the data, all in SharePoint Online.
Regards,
Rebecca Tu
TechNet Community Support
Similar Messages
-
Hi,
I have followed the steps in the following link:
Make an External List from a SQL Azure table with Business Connectivity Services and Secure Store, but I keep receiving the following message when I try to access an external list:
"Unable to render the data. If the problem persists, contact your web server administrator"
Note: I'm using SharePoint 2013 ONLINE, and (as far as I know) I have no access to the logs & powershell.
Any body has had the same issue before?
Regards.
Note: I have tried changing my ECT's connection property (through designer 2013) to BDC Identity, but I keep receiving the following error message:
The metadata object that has Name "xxxx" has a Property with name "AuthenticationMode" and value "RevertToSelf". This value indicates that the runtime should revert to the identity of the application pool, but reverting to the
application pool is not permitted for partitioned service applications.
Saeed Fattahi .NET SpecialistTry changing the External Content’s connection
properties’ Authentication Mode to BDC identity. You will most like get an error (which I have shown below)
Below is an error you will received. Read through
the error carefully.
Launch the SharePoint 2013 Management Shell
and run the below commands
$bcsServiceApp = Get-SPServiceApplication
| where {$_ -match "Business Data Connectivity Service"}
$bcsServiceApp.RevertToSelfAllowed
= $true;
$bcsServiceApp.Update();
This Solved the problem for me. you can try
Sharepoint | TechCenter franklin -
Hi,
Please note we are using SQL Server 2008 for sharepoint. Does it matter for this issue?
Please help.
Thanks.Hi,
According to your post, my understanding is that you failed to open external list.
Please change the External Content’s connection properties’ Authentication Mode to BDC identity.
Then launch the SharePoint 2013 Management Shell and run the PowerShell commands to remove the error.
Here is a similar thread for your reference:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/69d937e6-f4a3-40e0-b57f-67cddb4ed12e/sharepoint-2013-unable-to-render-the-data-if-the-problem-persists-contact-your-web-server?forum=sharepointcustomization
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
We unable to display web part. It shows below error web part error:
Error while executing web part: System.Xml.XmlException: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at
Microsoft.SharePoint.WebControls.XmlUrlDataSource.FetchData(String requestUrl) at Microsoft.SharePoint.WebControls.BaseXmlDataSource.Execute(String request) at Microsoft.SharePoint.WebControls.BaseXmlDataSource.GetXmlDocument()
at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigatorInternal() at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator() at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXPathNavigator(String
viewPath) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)
could any one give me solution on this.
Regards
Ravi kumar
ravi sharepointHI
I got below error in that webpart.
5/28/2014 6:21 AM
w3wp.exe (0x1F04)
10176
SharePoint Foundation
Monitoring
High
Leaving Monitored Scope (EnsureListItemsData). Execution Time=38.95746526444
5/28/2014 7:04 AM
w3wp.exe (0x1F04)
10452
SharePoint Foundation
General
High
The user does not exist or is not unique.
5/28/2014 7:04 AM
w3wp.exe (0x1F04)
10452
SharePoint Foundation
Monitoring
High
Leaving Monitored Scope (DataBinding DataFormWebPart (MCH Projects View Web Part)). Execution Time=1696.60494560063
I got below logs message sharepoint log investigation tool.
Let us know any suggestions on this.
ravi sharepoint -
Hi,
When the page is submitted for approval by using SharePoint OOTB Page Approval Workflow, it takes quite long time and prompt error message as below.
"The form cannot be submitted to the Web server either because your computer is offline or because the host server is currently unavailable.
If this problem persists, contact your network administrator."
It only happens in Internet Explorer version 8 and 9. IE version below 8 is not used in environment.
But it is working in Firefox.
Please help me on how to fix this issue.
Thanks.Hi Htet,
Here are some articles with the same issue message, you can check the setting of Link Translation rule in the ISA from below.
http://sharepointontop.blogspot.com/2012/06/form-cannot-be-submitted-to-web-server.html
http://bytelab.blogspot.com/2008/03/problem-submitting-infopath-forms-using.html
http://social.msdn.microsoft.com/forums/en-IE/sharepointcustomizationprevious/thread/84be34b3-b806-49ce-a5c2-b5ad8a1ff09f
Thanks
Daniel Yang
TechNet Community Support -
Hi,
When i open my Password Reset portal then provide Username credentials in text box and click on next then asked the Securites Question Answers to me,i provide the correct Answers to the securites Question after this password reset portal asked
me New Password and Confirm Password then click on next for resetting the password then gives below Error only for 2 Users. and all other users are working fine.
An error has occurred. Please try again, and if the problem persists, contact your help desk or system administrator. (Error 3000:)
Regards
Anil KumarAnything in the event log?
-
Hi All,
This is my first post to ms exchange forum am getting Log onto incoming mail server (POP3): Your server does not support the connection encryption type you have specified. Try changing the encryption method. Contact your mail server administrator
or Internet service provider (ISP) for additional assistance. in my outlook clients, till last Sunday (12.04.15) my exchange was well & good, Monday morning suddenly the problem started like none of our outlook pop3 clients are able to communicate
with exchange (rest IMAP, SMTP & Exchange accounts are working fine). i have tried with all port no but no luck. please help me to get raid of this one.
Exchange 2013 CU6 with server 2012 Std 64Bit
Thanks,
MuraliDear All,
I have found the solution for above problem, the problem has occur due to PopProxy inactivity
please find relevant exchange management shell commends below.
1. Get-ServerComponentstate -Identity <yourmailserver.com>
Server Component State
yourmailserver.com ServerWideOffline Active
yourmailserver.com HubTransport Active
yourmailserver.com FrontendTransport Active
yourmailserver.com Monitoring Active
yourmailserver.com RecoveryActionsEnabled Active
yourmailserver.com AutoDiscoverProxy Active
yourmailserver.com ActiveSyncProxy Active
yourmailserver.com EcpProxy Active
yourmailserver.com EwsProxy Active
yourmailserver.com ImapProxy Active
yourmailserver.com OabProxy Active
yourmailserver.com OwaProxy Active
yourmailserver.com PopProxy Inactive
yourmailserver.com PushNotificationsProxy Active
yourmailserver.com RpsProxy Active
yourmailserver.com RwsProxy Active
yourmailserver.com RpcProxy Active
yourmailserver.com UMCallRouter Active
yourmailserver.com XropProxy Active
yourmailserver.com HttpProxyAvailabilityGroup Active
yourmailserver.com ForwardSyncDaemon Active
yourmailserver.com ProvisioningRps Active
yourmailserver.com MapiProxy Active
yourmailserver.com EdgeTransport Active
yourmailserver.com HighAvailability Active
yourmailserver.com SharedCache Active
2. Set-ServerComponentState -Identity <yourmailserver.com> -Component PopProxy -Requester HealthAPI
-State Active
3. Get-ServerComponentstate -Identity <yourmailserver.com>
Server Component State
yourmailserver.com ServerWideOffline Active
yourmailserver.com HubTransport Active
yourmailserver.com FrontendTransport Active
yourmailserver.com Monitoring Active
yourmailserver.com RecoveryActionsEnabled Active
yourmailserver.com AutoDiscoverProxy Active
yourmailserver.com ActiveSyncProxy Active
yourmailserver.com EcpProxy Active
yourmailserver.com EwsProxy Active
yourmailserver.com ImapProxy Active
yourmailserver.com OabProxy Active
yourmailserver.com OwaProxy Active
yourmailserver.com PopProxy Active
yourmailserver.com PushNotificationsProxy Active
yourmailserver.com RpsProxy Active
yourmailserver.com RwsProxy Active
yourmailserver.com RpcProxy Active
yourmailserver.com UMCallRouter Active
yourmailserver.com XropProxy Active
yourmailserver.com HttpProxyAvailabilityGroup Active
yourmailserver.com ForwardSyncDaemon Active
yourmailserver.com ProvisioningRps Active
yourmailserver.com MapiProxy Active
yourmailserver.com EdgeTransport Active
yourmailserver.com HighAvailability Active
yourmailserver.com SharedCache Activ
Replace yourmailserver.com with your server host name.
Thanks -
HCI error - unable to import the data because the row is duplicated in the master data
Hi, i am working on HCI while i am mapping the data from ECC to HCI target table i am getting this error :Unable to import the data because the row is duplicated in the master data .Could you please help me how to solve this
Message was edited by: Mariana MihaylovaMoved to Process Integration (PI) & SOA Middleware as per New SAP HANA Cloud Integration (HCI) content category (unfortunately, I can't edit the discussion and add the category as I'm not a moderator in this space). Perhaps Mariana Mihaylova can help.
Susmitha Yerradhodi please read and follow The SCN Rules of Engagement - in particular, the more details you provide, the better the chances of getting your question answered. (e.g. "HCI" is not a helpful subject) -
Setup is unable to store configuration data in the LDAP directory
I am attempting to install the Sun One Directory Server 5.1 on my Windows 2000 machine. At the conclusion of the installation process, I recieve these back to back pop up windows:
Error:
Setup is unable to store configuration data in the LDAP directory.
Error:
Unable to create administration server configuration.
Error:
Could not authenticate ldap connection, "Unknown error".
Error:
Unable to set ACI in Configuration Directory Server
Setup
Setup's Post-Install mode failed for the Sub Component admin belonging to the component admin. Do you want to continue.
What am I doing wrong?Hi,
Can you please send me logconv.pl code to [email protected] I am unable to find the file -
Unable to get the data from the stored procedure
Hello Folks,
I have this stored procedure and am trying to get the data from the table stage_bill but for some reason i am not sure its not pulling the data.Am a beginner in pl/sql Can any one please help to find out. I can give the code below.
create or replace procedure Load_FADM_Staging_Area_TEST(p_data_load_date date) is
-- local variables
v_start_date date;
v_end_date date;
-- cursor starting
CURSOR c_get_data
IS
SELECT
a.batch_id
,a.beginning_service_date
,a.bill_id
,a.bill_method
,a.bill_number
,a.bill_received_date
,a.bill_status
,a.bill_type
,a.change_oltp_by
,a.change_oltp_date
,a.client_datafeed_code
,a.client_id
,a.created_date
,a.date_of_incident
,a.date_paid
,a.deleted_oltp_by
,a.deleted_oltp_date
,a.duplicate_bill
,a.ending_service_date
,a.event_case_id
,a.event_id
,a.from_oltp_by
,a.oltp_bill_status
,a.review_status
,'HRI' schema_name
, sysdate Load_date
,'ETLPROCESS001' Load_user
,v_start_date as Row_Effective_Date
,null Row_End_date
from stage_bill a
where
--created_date >= to_date('20101031 235959', 'YYYYMMDD HH24MISS')
created_date >= v_start_date
and
--created_date <= to_date('20101111 235959', 'YYYYMMDD HH24MISS')
created_date <= v_end_date
and not exists
(select
b.batch_id
,b.beginning_service_date
,b.bill_id
,b.bill_method
,b.bill_number
,b.bill_received_date
,b.bill_status
,b.bill_type
,b.change_oltp_by
,b.change_oltp_date
,b.client_datafeed_code
,b.client_id
,b.created_date
,b.date_of_incident
,b.date_paid
,b.deleted_oltp_by
,b.deleted_oltp_date
,b.duplicate_bill
,b.ending_service_date
,b.event_case_id
,b.event_id
,b.from_oltp_by
,b.oltp_bill_status
,b.review_status,
b.schema_name,
b.Load_date,
b.Load_user,
b.Row_Effective_Date,
b.Row_End_Date
from STG_FADM_HRI_STAGE_BILL_TEST b)
-- cursor o/p variables
v_batch_id stage_bill.batch_id%TYPE;
v_beginning_service_date stage_bill.beginning_service_date%TYPE;
v_bill_id stage_bill.bill_id%TYPE;
v_bill_method stage_bill.bill_method%TYPE;
v_bill_number stage_bill.bill_number%TYPE;
v_bill_received_date stage_bill.bill_received_date%TYPE;
v_bill_status stage_bill.bill_status%TYPE;
v_bill_type stage_bill.bill_type%TYPE;
v_change_oltp_by stage_bill.change_oltp_by%TYPE;
v_change_oltp_date stage_bill.change_oltp_date%TYPE;
v_client_datafeed_code stage_bill.client_datafeed_code%TYPE;
v_client_id stage_bill.client_id%TYPE;
v_created_date stage_bill.created_date%TYPE;
v_date_of_incident stage_bill.date_of_incident%TYPE;
v_date_paid stage_bill.date_paid%TYPE;
v_deleted_oltp_by stage_bill.deleted_oltp_by%TYPE;
v_deleted_oltp_date stage_bill.deleted_oltp_date%TYPE;
v_duplicate_bill stage_bill.duplicate_bill%TYPE;
v_ending_service_date stage_bill.ending_service_date%TYPE;
v_event_case_id stage_bill.event_case_id%TYPE;
v_event_id stage_bill.event_id%TYPE;
v_from_oltp_by stage_bill.from_oltp_by%TYPE;
v_oltp_bill_status stage_bill.oltp_bill_status%TYPE;
v_review_status stage_bill.review_status%TYPE;
v_schema_name varchar(50);
v_Load_date date;
v_Load_user varchar(50);
v_Row_Effective_Date date;
v_Row_End_Date date;
Begin
if p_data_load_date is null then
select (sysdate - 7), (sysdate - 1) into v_start_date, v_end_date from dual;
elsif p_data_load_date is not null then
select (p_data_load_date - 7), (p_data_load_date - 1) into v_start_date, v_end_date from dual;
else
raise_application_error('-20042', 'Data control - GetDataControlAuditData : Date parameter must be a date of this or a previous week.');
end if;
-- cursor c_get_data loop begin
OPEN c_get_data;
LOOP -- cursor c_get_data loop begin
FETCH c_get_data
INTO
v_batch_id,
v_beginning_service_date,
v_bill_id ,
v_bill_method ,
v_bill_number,
v_bill_received_date,
v_bill_status,
v_bill_type,
v_change_oltp_by,
v_change_oltp_date,
v_client_datafeed_code,
v_client_id,
v_created_date,
v_date_of_incident,
v_date_paid,
v_deleted_oltp_by,
v_deleted_oltp_date,
v_duplicate_bill,
v_ending_service_date ,
v_event_case_id ,
v_event_id,
v_from_oltp_by,
v_oltp_bill_status,
v_review_status,
v_schema_name,
v_Load_date,
v_Load_user,
V_Row_Effective_Date,
v_Row_End_Date;
EXIT WHEN c_get_data%NOTFOUND;
insert into STG_FADM_HRI_STAGE_BILL_TEST
batch_id
,beginning_service_date
,bill_id
,bill_method
,bill_number
,bill_received_date
,bill_status
,bill_type
,change_oltp_by
,change_oltp_date
,client_datafeed_code
,client_id
,created_date
,date_of_incident
,date_paid
,deleted_oltp_by
,deleted_oltp_date
,duplicate_bill
,ending_service_date
,event_case_id
,event_id
,from_oltp_by
,oltp_bill_status
,review_status
,schema_name
,Load_date
,Load_user
,Row_Effective_Date
,Row_End_Date
values(
v_batch_id,
v_beginning_service_date,
v_bill_id ,
v_bill_method ,
v_bill_number,
v_bill_received_date,
v_bill_status,
v_bill_type,
v_change_oltp_by,
v_change_oltp_date,
v_client_datafeed_code,
v_client_id,
v_created_date,
v_date_of_incident,
v_date_paid,
v_deleted_oltp_by,
v_deleted_oltp_date,
v_duplicate_bill,
v_ending_service_date ,
v_event_case_id ,
v_event_id,
v_from_oltp_by,
v_oltp_bill_status,
v_review_status,
v_schema_name,
v_Load_date,
v_Load_user,
v_Row_Effective_Date,
v_Row_End_Date ) ;
COMMIT;
END LOOP;
CLOSE c_get_data;Maybe you need something else, like
CREATE OR REPLACE PROCEDURE load_fadm_staging_area_test (
p_data_load_date DATE
) IS
v_start_date DATE;
v_end_date DATE;
BEGIN
SELECT NVL (p_data_load_date, SYSDATE) - 7,
NVL (p_data_load_date, SYSDATE) - 1
INTO v_start_date,
v_end_date
FROM DUAL;
MERGE INTO stg_fadm_hri_stage_bill_test b
USING (SELECT *
FROM stage_bill
WHERE created_date BETWEEN v_start_date AND v_end_date) a
ON (b.bill_id = a.billl_id)
WHEN NOT MATCHED THEN
INSERT (batch_id,
beginning_service_date,
bill_id,
bill_method,
bill_number,
bill_received_date,
bill_status,
bill_type,
change_oltp_by,
change_oltp_date,
client_datafeed_code,
client_id,
created_date,
date_of_incident,
date_paid,
deleted_oltp_by,
deleted_oltp_date,
duplicate_bill,
ending_service_date,
event_case_id,
event_id,
from_oltp_by,
oltp_bill_status,
review_status,
schema_name,
load_date,
load_user,
row_effective_date,
row_end_date
VALUES (a.batch_id,
a.beginning_service_date,
a.bill_id,
a.bill_method,
a.bill_number,
a.bill_received_date,
a.bill_status,
a.bill_type,
a.change_oltp_by,
a.change_oltp_date,
a.client_datafeed_code,
a.client_id,
a.created_date,
a.date_of_incident,
a.date_paid,
a.deleted_oltp_by,
a.deleted_oltp_date,
a.duplicate_bill,
a.ending_service_date,
a.event_case_id,
a.event_id,
a.from_oltp_by,
a.oltp_bill_status,
a.review_status,
'HRI',
SYSDATE,
'ETLPROCESS001',
v_start_date,
NULL
END load_fadm_staging_area_test;Whenever you code a cursor and a loop, ask yourself. Do I need that?
Regards
Peter -
Unable to see the data for the hierarchy in rsa3
Hi Gurus,
i am trying to check the data for the standard hierarchy in rsa3,but it is showing an error message saying that error 6 in functional module rss_program_generate.Please help me out.
thanks
bhaskarCheck if this helps seemed relevant
Error 6 in function module RSS_PROGRAM_GENERATE
Error 6 in function module RSS_PROGRAM_GENERATE
error Error 6 in function module RSS_PROGRAM_GENERATE -
Not able to get the data on the page
hi,
I tried brining the data on the JSP page. I am passing the parameters to a PL/SQL procedure. but I am not getting any data or error. can anyone helpme how to proceed further I am retreving the page parameters that are passed to the JSP page like this.
<%
PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
RenderContext rc = portletRequest.getRenderContext();
PortletDefinition pd = portletRequest.getPortletInstance().getPortletDefinition();
%>
I am getting the page parameters. but I am not able to get any result on the page.
while I am using the same code to get the data on another JSP page I am getting the data except I am not retreving the page parameters.
I am using the code like this to pass the parameters to the procedure.
OracleConnection conn__OCI = cpool.getProxyConnection(OracleOCIConnectionPool.PROXYTYPE_USER_NAME, proxUserProp);
cstmt = conn__OCI.prepareCall ("begin test.test1( ?,?,?,?,? ); end;");
cstmt.setString(2, cnumb);
cstmt.setString(3, cperiod);
cstmt.setInt(4, retStrC);
cstmt.setString(5, retStr3);
cstmt.registerOutParameter (4, Types.NUMERIC);
cstmt.registerOutParameter (5, Types.VARCHAR);
cstmt.registerOutParameter(1, OracleTypes.CURSOR);
cstmt.execute();
retStrC = cstmt.getInt (4);
retStr3 = cstmt.getString (5);
retStr = "<tr class=OraDataText><td> " + retStrC + "</td></tr>";
retStr = retStr + "<tr class=OraDataText><td> " + retStr3 + "</td></tr>";
if ( retStrC == -1 ) { ALLretStr = ALLretStr + retStr; }
else
cursor = ((OracleCallableStatement)cstmt).getCursor(1);
while (cursor.next ())
if (spacerLine >= 2)
ALLretStr = ALLretStr + "<tr><td colspan=5 height=1 <div id=ssubLine> <div id=ssubLinet></div> </div> </td></tr>";
ALLretStr = ALLretStr + "<tr class=smmjWipAltText><td ALIGN=LEFT>" + cursor.getString(1) + "</td><td ALIGN=CENTER>" + cursor.getInt(2) + "</td><td ALIGN=CENTER>" + cursor.getString(3) + "</td><td ALIGN=CENTER>" + cursor.getString(4) + "</td><td ALIGN=RIGHT>" + cursor.getString(5) + "</td></tr>";
spacerLine++;
}Hi Frank,<br>
<br>
I am getting a blank page after hitting the submit button. can you help me finding a solution for this in the JSP page or tell me where the error is. <br>
<br>
<%@page contentType="text/html;charset=UTF-8" %><br>
<%@page import="oracle.portal.provider.v2.render.*" %><br>
<%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %><br>
<%@page import="oracle.portal.provider.v2.PortletDefinition" %><br>
<%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %><br>
<%@page import="java.sql.*, javax.sql.*, java.util.*, oracle.jdbc.*, <br>
oracle.jdbc.pool.*, oracle.jdbc.oci.*" %><br>
<br>
<%<br> PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);<br>
RenderContext rc = portletRequest.getRenderContext();<br>
PortletDefinition pd = portletRequest.getPortletInstance().getPortletDefinition();<br>
%><br>
<%! String tree_descrip;<br> String tree_descrip_long;<br>
String curr_Scheme;<br>
String overl_gif;<br>
String curr_css_path;<br>
// page param<br>
String p_number_val= "1";<br>
String p_period_val= "Day";<br>
%><br>
<%<br> String long_desc = "LONG";<br>
String Descrip = "SHORT";<br>
String treeDescrip= "%SUBMISS%OLDER%";<br>
String curr_treeCateg = "SUB";<br>
try<br>
{<br>
curr_Scheme = getInfo.getSchem.getSchem();<br>
overl_gif = "/images/tested/"+curr_Scheme+ "images/prefreshdefault.gif";<br>
curr_css_path = "/images/tested/" curr_Scheme "css/param_jsp.css";<br>
tree_descrip = getInfo.getPortletTitle.getPortletTitle ( Descrip , treeDescrip , curr_treeCateg);<br>
tree_descrip_long = getInfo.getPortletTitle.getPortletTitle ( long_desc , treeDescrip , curr_treeCateg);<br>
}<br>
catch(Exception e)<br>
{<br>
tree_descrip = "";<br>
tree_descrip_long = "";<br>
}<br>
%> <br>
<% // Get page param p_number_val try { p_number_val = request.getParameterValues("p_number")[0]; } catch(Exception e) { p_number_val = "1"; } <br>
// Get page param p_period_val try { p_period_val = request.getParameterValues("p_period")[0]; } catch(Exception e) { p_period_val = "Day"; } %> <br>
<HTML> <HEAD> <link href="<%= curr_css_path %>" rel="stylesheet" type="text/css" media='' screen=''/> <SCRIPT LANGUAGE="JavaScript1.1" SRC="/images/smmj_page_obj/Popup/overlib.js"></SCRIPT> </HEAD> <BODY>
<TABLE WIDTH=100% summary="<%= tree_descrip %>" border="0" cellspacing="0" cellpadding="3" BGCOLOR="#FFFFFF" > <TR WIDTH="100%" height="6px"><td height="6px" COLSPAN="6" ></td></TR> <TR WIDTH="100%" > <td ALIGN="LEFT" nowrap ></td> <td ALIGN="LEFT" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS"> CYCLE NAME</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">ID</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">FIRM NAME</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">BILLING PERIOD</td> <td ALIGN="RIGHT" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS0">AGE</td> </TR> <%= getOlderSubs( p_number_val, p_period_val , "dev", portletRequest.getUser().getName(), "close_connect") %> </table> <TABLE><TR><TD> <%=p_number_val%>
<%=p_period_val%> <br>
<%=portletRequest.getUser().getName()%> </TD></TR> </TABLE> </BODY> </HTML> <br>
<%!<br> private String getOlderSubs( String cnumb, String cperiod, String cstring, String userid, String cState) throws SQLException
{<br>
CallableStatement cstmt;<br>
ResultSet cursor;<br>
int spacerLine = 1;<br>
int retStrC = 1;<br>
String retStr = "f";<br>
String retStr2 = "f";<br>
String retStr3 = "f";<br>
String retStr4 = "f";<br>
String ALLretStr = " ";<br>
String TempretStr = " ";<br>
String userstring = getInfo.getPortlUser.getPortUsr("B", "1");<br>
String pwstring = getInfo.getPortlUser.getPortUsr("B", "2");<br>
String CNNstring = getInfo.getPortlUser.getPortUsr("B", "3");<br>
String PROXY_user_name = "test$" + userid;<br>
//String PROXY_user_name = "test1$roger" ;<br>
String url= "jdbc:oracle:oci:@" + CNNstring;<br>
Properties prop = new Properties();<br>
try {<br>
if ( userid.trim().toUpperCase().equals(getInfo.getCONN.chkPortal.trim().toUpperCase()) )<br>
{<br>
ALLretStr = "<tr><td>Default user: " + userid + "</td></tr>"; }<br>
else<br>
{<br>
// Create an OracleOCIConnectionPool instance with default configuration
OracleOCIConnectionPool cpool = new OracleOCIConnectionPool(userstring, pwstring , url, null);<br>
Properties proxUserProp = new Properties();<br>
proxUserProp.setProperty(OracleOCIConnectionPool.PROXY_USER_NAME, PROXY_user_name);<br>
OracleConnection conn__OCI = cpool.getProxyConnection
(OracleOCIConnectionPool.PROXYTYPE_USER_NAME, proxUserProp);<br>
cstmt = conn__OCI.prepareCall ("begin PORT_CURSOR.s_submission_wip( ?,?,?,?,? ); end;");<br>
cstmt.setString(2, cnumb);<br>
cstmt.setString(3, cperiod);<br>
cstmt.setInt(4, retStrC);<br>
cstmt.setString(5, retStr3);<br>
cstmt.registerOutParameter (4, Types.NUMERIC);<br>
cstmt.registerOutParameter (5, Types.VARCHAR);<br>
cstmt.registerOutParameter(1, OracleTypes.CURSOR);<br>
cstmt.execute();<br>
retStrC = cstmt.getInt (4);<br>
retStr3 = cstmt.getString (5);<br>
retStr = "<tr class=OraDataText><td> " + retStrC + "</td></tr>";<br>
retStr = retStr + "<tr class=OraDataText><td> " + retStr3 + "</td></tr>";<br>
if ( retStrC == -1 ) { ALLretStr = ALLretStr + retStr; }<br>
else<br>
{<br>
cursor = ((OracleCallableStatement)cstmt).getCursor(1);<br>
while (cursor.next ())<br>
{<br>
if (spacerLine >= 2)<br>
{<br>
ALLretStr = ALLretStr + "<tr><td ALIGN=LEFT nowrap ></td><td colspan=5 height=1 ></td></tr>";<br>
}<br>
ALLretStr = ALLretStr + "<tr WIDTH=100% class=smmjPort2Text >
<td ALIGN=LEFT nowrap ></td><td ALIGN=LEFT> " + cursor.getString(1) + "</td><td ALIGN=CENTER>" + cursor.getInt(2) + "</td><td ALIGN=CENTER>" + cursor.getString(3) + "</td><td ALIGN=CENTER>" + cursor.getString(4) + "</td><td ALIGN=RIGHT>" + cursor.getString(5) + "</td></tr>";<br>spacerLine++;<br>
}<br>
}<br>
if (cState != null )<br>
{ //return(retStr);<br>
if (conn__OCI != null) conn__OCI.close();<br>
if (cpool != null) cpool.close();<br>
}}<br>
return(TempretStr);<br>
}<br>
catch (SQLException e )<br>
{<br>
String retErrStr = retStr + " SQL Error: <PRE> " + e + " </PRE> \n";<br>
return(retErrStr);<br>
}<br>
}<br>
%><br>
Regards,<br>
Vijay. -
How can I enter the data from the recordset into your insert query
Hi
i would like to know how I can enter the data from the recordset into your insert query without using a hidden field.
thanks
------------------------------------------------------------------------------------Below is the code------------------------------------------------------------------------------------- -----
<?php require_once('../../Connections/ezzyConn.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "frmpostComment")) {
$insertSQL = sprintf("INSERT INTO comments (com_topic, com_user, title, com_content, com_date, online_id) VALUES (%s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['com_topic'], "int"),
GetSQLValueString($_POST['commentby'], "int"),
GetSQLValueString($_POST['title'], "text"),
GetSQLValueString($_POST['com_content'], "text"),
GetSQLValueString($_POST['com_date'], "text"),
GetSQLValueString($_POST['online_id'], "int"));
mysql_select_db($database_ezzyConn, $ezzyConn);
$Result1 = mysql_query($insertSQL, $ezzyConn) or die(mysql_error());
$insertGoTo = "index.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
$colname_rsCommentby = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_rsCommentby = $_SESSION['MM_Username'];
mysql_select_db($database_ezzyConn, $ezzyConn);
$query_rsTopics = "SELECT topic_id, topic FROM topics ORDER BY topic_date DESC";
$rsTopics = mysql_query($query_rsTopics, $ezzyConn) or die(mysql_error());
$row_rsTopics = mysql_fetch_assoc($rsTopics);
$totalRows_rsTopics = mysql_num_rows($rsTopics);
mysql_select_db($database_ezzyConn, $ezzyConn);
$query_rsOnline = "SELECT online_id, `online` FROM `online` ORDER BY online_id DESC";
$rsOnline = mysql_query($query_rsOnline, $ezzyConn) or die(mysql_error());
$row_rsOnline = mysql_fetch_assoc($rsOnline);
$totalRows_rsOnline = mysql_num_rows($rsOnline);
$colname_rsCommentby = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_rsCommentby = $_SESSION['MM_Username'];
mysql_select_db($database_ezzyConn, $ezzyConn);
$query_rsCommentby = sprintf("SELECT user_id, username FROM users WHERE username = %s", GetSQLValueString($colname_rsCommentby, "text"));
$rsCommentby = mysql_query($query_rsCommentby, $ezzyConn) or die(mysql_error());
$row_rsCommentby = mysql_fetch_assoc($rsCommentby);
$totalRows_rsCommentby = mysql_num_rows($rsCommentby);
?>
<?php include("../includes/access.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ezzybay - easy click, ezzy shopping</title>
<link href="../css/global.css" rel="stylesheet" type="text/css" />
<link href="../css/navigation.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<?php include("../includes/top.php"); ?>
<div id="content">
<div id="pageTitle">
<h2>CMS Section:</h2>
<p>Comment Topics Page</p>
</div>
<?php include("../includes/leftnav.php"); ?>
<div id="mainContent">
<form action="<?php echo $editFormAction; ?>" method="post" name="frmpostComment" id="frmpostComment">
<table align="center">
<caption>Post Comment</caption>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Topic:</td>
<td><select name="com_topic" class="listbox" id="com_topic">
<?php
do {
?>
<option value="<?php echo $row_rsTopics['topic_id']?>"><?php echo $row_rsTopics['topic']?></option>
<?php
} while ($row_rsTopics = mysql_fetch_assoc($rsTopics));
$rows = mysql_num_rows($rsTopics);
if($rows > 0) {
mysql_data_seek($rsTopics, 0);
$row_rsTopics = mysql_fetch_assoc($rsTopics);
?>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Title:</td>
<td><input name="title" type="text" class="textfield" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right" valign="top">Comment:</td>
<td><textarea name="com_content" cols="50" rows="5" class="textarea"></textarea></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Status:</td>
<td><select name="online_id" class="smalllistbox">
<?php
do {
?>
<option value="<?php echo $row_rsOnline['online_id']?>" <?php if (!(strcmp($row_rsOnline['online_id'], 2))) {echo "SELECTED";} ?>><?php echo $row_rsOnline['online']?></option>
<?php
} while ($row_rsOnline = mysql_fetch_assoc($rsOnline));
?>
</select></td>
</tr>
<tr> </tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" class="button" value="Insert record" /></td>
</tr>
</table>
<input name="commentby" type="hidden" id="commentby" value="<?php echo $row_rsCommentby['user_id']; ?>" />
<input type="hidden" name="com_date" value="<?php echo date("d/m/y : H:i:s", time()) ?>" />
<input type="hidden" name="MM_insert" value="frmpostComment" />
</form>
</div>
</div>
<?php include("../includes/footer.php"); ?>
</div>
</body>
</html>
<?php
mysql_free_result($rsTopics);
mysql_free_result($rsOnline);
mysql_free_result($rsCommentby);
?>I'll keep it simple and only use the date as an example. Hopefully you get the concept from the example. Basically you create a recordset and insert the recordset value instead of the POST value into your insert query. In the example below I declared a variable for $the_date and entered the variable into the INSERT query instead of the hidden POST field.
<?php require_once('../../Connections/ezzyConn.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$the_date = date("d/m/y : H:i:s", time());
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "frmpostComment")) {
$insertSQL = sprintf("INSERT INTO comments (com_topic, com_user, title, com_content, com_date, online_id) VALUES (%s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['com_topic'], "int"),
GetSQLValueString($_POST['commentby'], "int"),
GetSQLValueString($_POST['title'], "text"),
GetSQLValueString($_POST['com_content'], "text"),
GetSQLValueString($the_date, "text"),
GetSQLValueString($_POST['online_id'], "int"));
mysql_select_db($database_ezzyConn, $ezzyConn);
$Result1 = mysql_query($insertSQL, $ezzyConn) or die(mysql_error());
$insertGoTo = "index.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
?> -
Table Maintenance Events - "Event 02 After Saving the Data in the Database"
Hi,
Can we identify the record marked for deletion in the "Event 02 After Saving the Data in the Database" ?
Thanks & Regards,
Esha RajLook at online documentation :
- [Event 02: After Saving the Data in the Database|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
. - [Internal Table TOTAL|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
. . - [Field Symbols <ACTION> and <ACTION_TEXT>|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
. . . - [Constants for Field Symbols <ACTION>, <ACTION_TEXT>, <XACT> and <XACT_TEXT>|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
Regards,
Raymond -
Can not see the data in the grid
Hi,
nice to see the new features, but I can not see the the table inserts
in the data grid - the <data> rider is not clickable.
RegardsHi annerose,
This problem has appeared in a few other threads. It's caused by installing Release 2 Raptor over Release 1 Raptor without first deinstalling Release 1 Raptor . So what you need to do is:
1) Back up any important Raptor files, e.g. connections etc.
2) Remove the existing Raptor Rel 1 installation folder
3) Install Raptor Rel 2
Hope this helps
ady
Maybe you are looking for
-
Error ORA-00980: synonym translation is no longer valid when i issue
i accidentally drop one of my table. To bring it back i used Imp tool. But it gives an error ORA-00980: synonym translation is no longer valid when i issue Select * from ship_sched_fact_notice_det Action taken using Imp Username: erpdada Password: Co
-
Preview of file doesn't show entire photoshop doc
Hi, When I add a layer to a photoshop file, flatten and save, the preview only shows the layer that I added, not the whole file. See info window below. It causes problems when I send it to other people, they think I haven't sent the correct file. How
-
Feature Request: Support for External Synths/Modules (via MIDI)
Hi, I just posted a feature request (via the Apple Feature Request form) but also wanted to post here. I use a combination of hardware instruments (sound modules) and software instruments. *My Setup* - Keyboard #1: M-Audio Axiom 25 (also includes a U
-
When using TextEdit, the font as it appears on the screen is ok, but after printing, the font is much smaller on the paper than the chosen size. (in this case 14) How do I correct this?
-
Probelm with 2004s Java installation
I´ve downloaded Sneak Preview 2004s Java and when I try to go through the steps in the sapinstGUI, I get following messages in the prerequisites chck: Operation System Version>Condition not met>Windows XP not supported!! Only Windows Version 5.2 supp