Ajax call in portal
Hi All,
I am trying to make an AJAX call using XMLHTTPRequest object like this
XmlReq.onreadystatechange = HandleResponse;
myURL = "AjaxServerPage.aspx";
refreshURL = "<pt:url pt:href='"+ myURL + "'/>";
XmlReq.open( "GET", refreshURL, true); XmlReq.send();
on the bold line it stops responding and fails to get the ajax response.
If some one has tried out the same code ....Please let me know....
regards
Kumar
You can't concantenate a string to create a PT tag in Javascript as it will not execute. PT tag execution occurs on the server long before the browser gets ahold of the page. Javascript is executed in the browser.
What nrohit says will work if the URL you need to use is static, since, but if the URL needs to be a variable, what you want to use are the ALI Scripting Framework APIs
http://edocs.bea.com/alui/devdoc/docs60/References/api_index.htm
Here you'll will find some functionality to create the gatewayed URL that you're looking for.
Edited by [email protected] at 11/30/2007 8:03 AM
Edited by [email protected] at 11/30/2007 8:05 AM
Similar Messages
-
AJAX call to PageFlow's actions and response
Hi,
in my portlet, I need to do ajax calls for some actions. This works fine but I have a problem with the response. I want to put in the response only a message to be shown to the user (for example "Update successful" or "Error !!"), but WebLogic Portal write all the content of the page, even if I do not define any forward and I return null in my action.
@Jpf.Action()
protected Forward myAction() throws IOException
// action content
return null;
How can I tell WebLogic Portal to write nothing in the response when I return null ?a) The only way I found to have an URL to an action is to put a <netui:anchor tagId="link" action="updateOrderFavori" value="" style="display:none;" /> tag and retrieve the generated URL in javascript (portlet:actionURL throwing IllegalStateException But I know it's not very clean. Moreover, as you say, the generated URL is a portal URL, not a URL directly to an action. How can I do that ? Is there an API to generate such an URL (like PageURL for a page URL) ?
b) I am not sure that the Portal AJAX features suit my needs because I don't want the whole porltet to have an AJAX behavior but only some actions. Can I do this with Portal AJAX features ?
Regards
Thomas -
Secure AJAX calls made from a JSR 168 portlet
I am investigating methods to secure AJAX calls made from a JSR 168 portlet to a servlet using the Direct Web Remoting framework (DWR) and Weblogic Portal. The portlet can have more than one instance and different entitlements depending on the desktop it is available from. The Portal has several desktops and does not require the user to authenticate for some of the desktops.
So far the only method I have come up with is to pass a token from the portlet to the servlet which indicates the entitlements the user should have to access the documents from the portlet and check in the servlet if the User has the appropriate global roles to access the documents.no , that doesn't work, the token passed can be modified by a malicious user (unless the token is random or signed)
You need to store the desktop(s) the user is on in probably the HttpSession and read that from the servlet and make the decisions accordingly.
regards
deepak -
Issue while making a AJAX call to a servlet in ALUI.
Hi,
The problem scenario is :
I log into the portal using "http://147.149.132.93:7001/portal/server.pt"
i have two instances of applications which have same files but provide different functionality one on 147.149.132.93 and other on 147.149.132.102 .
I have configured my portlet that points to the application on 147.149.132.102 , when i make a ajax call to a servlet using the relative path for the aaplication , in normal scenario the ajax should make call to the servlert on the 147.149.132.102 but this does not happen and ajax makes call to the servlet on the machine 147.149.132.93 .
Is there any issue regarding usage of Ajax in ALUI portal?
Why the Ajax takes the server path from the portal login URL and not from the remote server configured for the portlet ? ?:|
HELP !!!!!!!!!!!!!!!
Regards,
PrashantI m also facing same problem. I resolve the problem by simply giving >complete servlet address in ajax call.There are 2 issue with this:
1) AJAX call will bypass portal, so it makes calls unsafe + you can not use portal functionality anymore. Plus some other issue like session expiration and so on.
2) URL is hardcoded, so it's difficult to manage.
All calls (include ajax) have to go through portal in portal environment. It means that AJAX url has to be gatewayed like any other url. There is no issue with ajax in portal. In G6 make sure that <inline> refresh checkbox (for WS) is unchecked.
Here is example how to create AJAX URL on the fly by using Javascript. Let's say we have 2 files in root folder of <RemoteProjectName> web application:portlet.jsp file and ajaxExample.jsp.
Code in portlet.jsp may looks like
<script>
var Url = "<pt:url xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' pt:href='ajaxExample.jsp'/>";
</script>
Here is what you can get as result of this transformation (based on data provided in first post):
http://147.149.132.93:7001/portal/server.pt/gateway/PTARGS_0_0_XXX_XXX_X_XX/http%3B/147.149.132.102%3B/RemoteProjectName/ajaxExample.jsp
where XXX - are numbers specific to particular portal environment.
Edited by Bryazgin at 12/21/2007 7:43 AM -
Firefox 6.0.2 keeps on crashing, problems with ajax calls
Hi,
I am using the jquery form plugin to make ajax calls on my sites, when i invoke the plugin and have Firebug open I get this message:
Could not convert JavaScript argument arg 0 [nsISupports.QueryInterface]
[Break On This Error] callback.data = aElem....getComputedStyle(callback.data, '');
rfhelper32.js
Firebug also tells me that it's limit has been reached 1571 entries shown.
Can someone tell me why this is happening; is there a problem with Firefox that will be fixed. It's not happening in IE9
Here is the information from a recent crash report (which may or not be related to the above problem!)
AdapterDeviceID: 0a66
AdapterVendorID: 10de
Add-ons: [email protected]:3.0.4,{6AC85730-7D0F-4de0-B3FA-21142DD85326}:2.5.5,{8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}:0.17,{e968fc70-8f95-4ab9-9e79-304de2a71ee1}:0.7.3,{f36c6cd1-da73-491d-b290-8fc9115bfa55}:2.2.0,{BBDA0591-3099-440a-AA10-41764D9DB4DB}:3.1,[email protected]:1.8.2,{2D3F3651-74B9-4795-BDEC-6DA2F431CB62}:2011.7.1.3,{972ce4c6-7e08-4474-a285-3208198ce6fd}:6.0.2
AvailableVirtualMemory: 174600192
BuildID: 20110902133214
CrashTime: 1316093326
EMCheckCompatibility: true
Email: [email protected]
FramePoisonBase: 00000000f0de0000
FramePoisonSize: 65536
InstallTime: 1315406279
Notes: AdapterVendorID: 10de, AdapterDeviceID: 0a66, AdapterDriverVersion: 8.16.11.9104
D3D10 Layers? D3D10 Layers-
D3D9 Layers? D3D9 Layers-
WebGL? WebGL-
ProductName: Firefox
ReleaseChannel: release
SecondsSinceLastCrash: 160793
StartupTime: 1316067225
SystemMemoryUsePercentage: 86
Theme: classic/1.0
Throttleable: 1
TotalVirtualMemory: 2147352576
URL: https://s-static.ak.fbcdn.net/connect/xd_proxy.php?version=3#cb=f1ae6be54ac01b4&origin=https%3A%2F%2Fwww.paypal-business.co.uk%2Ffd558408b2cb6c&relation=parent.parent&transport=postmessage&type=resize&height=20&ackData[id]=1&width=250
Vendor: Mozilla
Version: 6.0.2
Winsock_LSP: MSAFD Tcpip [TCP/IP] : 2 : 1 :
MSAFD Tcpip [UDP/IP] : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD Tcpip [RAW/IP] : 2 : 3 :
MSAFD Tcpip [TCP/IPv6] : 2 : 1 : %SystemRoot%\system32\mswsock.dll
MSAFD Tcpip [UDP/IPv6] : 2 : 2 :
MSAFD Tcpip [RAW/IPv6] : 2 : 3 : %SystemRoot%\system32\mswsock.dll
RSVP TCPv6 Service Provider : 2 : 1 :
RSVP TCP Service Provider : 2 : 1 : %SystemRoot%\system32\mswsock.dll
RSVP UDPv6 Service Provider : 2 : 2 :
RSVP UDP Service Provider : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD NetBIOS [\Device\NetBT_Tcpip_{91C733AA-510D-41D3-B67A-4441103BAE50}] SEQPACKET 1 : 2 : 5 :
MSAFD NetBIOS [\Device\NetBT_Tcpip_{91C733AA-510D-41D3-B67A-4441103BAE50}] DATAGRAM 1 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD NetBIOS [\Device\NetBT_Tcpip_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] SEQPACKET 5 : 2 : 5 :
MSAFD NetBIOS [\Device\NetBT_Tcpip_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] DATAGRAM 5 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD NetBIOS [\Device\NetBT_Tcpip_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] SEQPACKET 7 : 2 : 5 :
MSAFD NetBIOS [\Device\NetBT_Tcpip_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] DATAGRAM 7 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] SEQPACKET 8 : 2 : 5 :
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] DATAGRAM 8 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] SEQPACKET 6 : 2 : 5 :
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] DATAGRAM 6 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{3D95D40E-1835-44C6-A621-968094D90452}] SEQPACKET 10 : 2 : 5 :
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{3D95D40E-1835-44C6-A621-968094D90452}] DATAGRAM 10 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{D6AD3B6C-2F8E-49B4-BDCD-DB35518116E7}] SEQPACKET 9 : 2 : 5 :
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{D6AD3B6C-2F8E-49B4-BDCD-DB35518116E7}] DATAGRAM 9 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{18908ACF-76C1-4139-8C1C-89DF049156C5}] SEQPACKET 4 : 2 : 5 :
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{18908ACF-76C1-4139-8C1C-89DF049156C5}] DATAGRAM 4 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4112C824-372C-4014-87AE-1BC13EA6E4CD}] SEQPACKET 3 : 2 : 5 :
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4112C824-372C-4014-87AE-1BC13EA6E4CD}] DATAGRAM 3 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{2E408326-9611-4C41-B766-C4CB82734986}] SEQPACKET 0 : 2 : 5 :
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{2E408326-9611-4C41-B766-C4CB82734986}] DATAGRAM 0 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{91C733AA-510D-41D3-B67A-4441103BAE50}] SEQPACKET 2 : 2 : 5 :
MSAFD NetBIOS [\Device\NetBT_Tcpip6_{91C733AA-510D-41D3-B67A-4441103BAE50}] DATAGRAM 2 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
VMCI sockets DGRAM : 0 : 2 :
VMCI sockets STREAM : 0 : 1 : C:\Program Files\VMware\VMware Workstation\vsocklib.dll
This report also contains technical information about the state of the application when it crashed.Try the Firefox SafeMode to see how it works there. <br />
''A troubleshooting mode, which disables most Add-ons.'' <br />
''(If you're not using it, switch to the Default Theme.)''
* You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
* Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
''Don't select anything right now, just use "Continue in SafeMode."''
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes -
How to call a portal KM URL link from WAD template Link
Hi All
I am trying to call a Portal KM URL Link from the web template using the link control.
I cannot figure out whare and how to put the portal KM URL Link into the web application web link.
Your help is greatly appreciated.
Thanks
KarenAdd content administration role to the user.
The the content administration tab would be visible to the user in the main menu tab.
Then in content administration tab, configure the URL for KM URL tab or link.
This would be done by EP experts. Please contact your EP experts to do.
Hope this would help you. -
How to handle jquery and ajax call in single page application using coded ui
Hi,
I am facing a very tricky situation while using coded ui. My application interact with ajax and I was facing the issue to handle the ajax in the login page and other pages. I went through the post : http://stackoverflow.com/questions/17849074/jquery-ajax-success-not-getting-triggered-with-coded-ui-test-project
and got solution for my problem. Now when ever a ajax is getting called in the page its getting handle with app config file. However the issue I am facing right now is.
When i click on a button a window will appear which is actually a "div tag". Please see the image below. In the that window when I have to select a item from drop down, the ajax will get called, however it will get called only for the window,
it wont be called for the entire page.. i.e. it will update only the window. I am not able to handle this ajax call, script gets stuck in refresh state. I will request you guys to provide a work around for it.
I would like to add more details - Visual studio version - 2013 update 3, IE11.
Application details: Its a single page application which uses bootstrap framework. All the ajax call are dynamic.
Thanks in advance.Thanks for the reply.
The window is not exactly a pop up window. Its a div tag in the same page. As this is my first time to work on a single page application I am not sure how it works. For the entire page I am able to handle the ajax call however the action performed
in the div tag is not getting handled.
Code for the window, I am not sure to what extend will it be helpful.
<div class="modal-content"><div class="modal-header"><div class="bootstrap-dialog-header"><div class="bootstrap-dialog-close-button" style="display: none;"><button class="close">×</button></div><div
class="bootstrap-dialog-title">Move Item to different task [FocusAudit]</div></div></div><div class="modal-body"><div class="bootstrap-dialog-body"><div class="bootstrap-dialog-message"><div><div
id="dashboard">
<table class="TFtable">
<tbody><tr>
<td colspan="2">
You are about to move the 24 selected item item to a different task. Select the task to which to move this item, (Optionally) enter notes about the task change, and click 'Change' to continue.
</td>
</tr>
<tr>
<td>Select New WorkFlow:</td>
<td><select class="form-control" id="MA_workflow" onchange="ChangeWorkFlow()"><option value="647446014">Batches<option value="647446007">Claim<option value="647446065"
selected="">Workflow1</option></select></td>
</tr>
<tr>
<td>Select New Task:</td>
<td><select class="form-control" id="MA_actions"><option value="647446025">BatchRebuild</option><option value="647446054">Complete</option><option value="647446039">DataIntegrityCheck</option><option
value="647446038">FocusAudit</option><option value="647446053">FocusAuditMiner</option><option value="647446037">FocusAuditSelect</option><option value="647446055">LocationRouter</option><option
value="647446029">MineForSBT</option><option value="647446022">OCRtoWebDE</option><option value="647446024">OnePass</option><option value="647446049">OnePassRouter</option><option
value="647446050">OnePassUS</option><option value="647446060">QAuditImporter</option><option value="647446045">QIAutoAuditGrader</option><option value="647446058">QIAutoAuditInjector</option><option
value="647446048">QIMiner</option><option value="647446040">QISampler</option><option value="647446056">QIVerify</option><option value="647446059">QIVerifyGrader</option><option
value="647446047">QIVerifyUS</option><option value="647446021">RecoRules</option><option value="647446082">Review</option><option value="647446042">Router</option><option
value="647446023">Validate</option><option value="647446081">Verify</option><option value="647446080">WebDEFileCreator</option></select></td>
</tr>
<tr>
<td>Select New Status:</td>
<td>
<select class="form-control" id="MA_status">
<option value="ready">Ready</option>
<option value="reject">Rejected</option>
<option value="hold">Held</option>
<option value="ready">Keep Status From Original Task</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">Notes:</td>
</tr>
<tr>
<td colspan="2">
<textarea name="MA_statusnote" class="form-control" id="MA_statusnote" maxlength="250" rows="5" cols="40"></textarea>
</td>
</tr>
<tr>
<td style="text-align: right;" colspan="2">
<input class="btn btn-default list-inline" id="btnSubmit" onclick="prepareData_MoveToAction();" type="button" value="Change">
<input class="btn btn-cancel" id="btnCancel" style="padding-left: 5px;" onclick=" dialogInstance2.close();" type="button" value="Cancel">
</td>
</tr>
</tbody></table>
<div id="overlayDialog" style="display: none;">
<div style="width: 100%; text-align: center;">
<h1>Processing...</h1>
<img src="Images/ajax-loader.gif">
</div>
</div>
<div id="dData_MoveToAction" style="display: none;" data-itemcount="24" data-oldactionidno="647446079" data-oldstatus="ready" data-oldactionname="FocusAudit" data-fnparent="PS"></div>
</div>
<script id="scrpd" language="text/javascript">
<!--
var cworkflow =$('#MA_workflow option:selected').text();
function initMoveToAction()
function ChangeWorkFlow(){
$('#overlayDialog').show(300);
var _newworkflowname=$('#MA_workflow option:selected').text();
if(cworkflow!=_newworkflowname)
getItemType();
cworkflow = _newworkflowname;
function getItemType()
var _workflowid=$('#MA_workflow option:selected').text();
var formData = { workflowid: _workflowid}
var sPage = './Handlers/GenericFn.ashx?action=getitemtype';
$.ajax({
url: sPage,
type: "POST",
data: formData,
datatype: JSON,
success: function (data, textStatus, jqXHR) {
var newItemActions = jQuery.parseJSON(data);
$('#MA_actions').empty();
$.each(newItemActions, function(i, option) {
$('#MA_actions').append($('<option></option>').attr("value", option.Value).text(option.Key));
$('#overlayDialog').hide(300);
error: function (data) {
var error = jQuery.parseJSON(data.responseText)
SetProdSummary();
dialogInstance2.close();
ErrorMessage(error.ErrorCaption, error.ErrorDescription, error.IsCloseWindow);
function prepareData_MoveToAction()
var ma_oldstatus, ma_oldactionname, ma_actionidno,ma_oldactionid, ma_statusNote,ma_itemNewStatus,ma_itemtotalno, ma_newworkflowname,ma_fnparen;
ma_itemNewStatus = $('#MA_status option:selected' ).val();
ma_actionidno=$('#MA_actions option:selected').val();
ma_newworkflowname=$('#MA_workflow option:selected').text();
ma_statusNote = $("#MA_statusnote").val();
var params = $("#dData_MoveToAction");
if (params.data("oldstatus"))
ma_oldstatus = params.data("oldstatus");
if (params.data("oldactionname"))
ma_oldactionname = params.data("oldactionname");
if (params.data("oldactionidno"))
ma_oldactionid = params.data("oldactionidno");
if (params.data("itemcount"))
ma_itemtotalno = params.data("itemcount");
if (params.data("fnparent"))
ma_fnparen = params.data("fnparent");
var formData = { currentstatus: ma_oldstatus, oldactionid:ma_oldactionid,newstatus: ma_itemNewStatus, actionid: ma_actionidno, oldactionName:ma_oldactionname, statusnote: ma_statusNote,totalno:ma_itemtotalno, newworkflowname:
ma_newworkflowname,fnparent:ma_fnparen};
var sPage = './Handlers/ItemAction_MoveToAction.ashx?action=movetoaction';
$('#overlayDialog').show(300);
$('#btnSubmit').attr('disabled',true);
$('#btnCancel').attr('disabled',true);
$.ajax({
url: sPage,
type: "POST",
data: formData,
datatype: JSON,
success: function (data, textStatus, jqXHR) {
SetProdSummary();
$('#overlayDialog').hide(300);
dialogInstance2.close();
error: function (data) {
var error = jQuery.parseJSON(data.responseText)
SetProdSummary();
dialogInstance2.close();
ErrorMessage(error.ErrorCaption, error.ErrorDescription, error.IsCloseWindow);
-->
</script></div></div></div></div><div class="modal-footer" style="display: none;"><div class="bootstrap-dialog-footer"></div></div></div>
I agree the point the UI has to be active or else the script will have issue during the playback. In my scenario I have to work on that window. I have to perform action on it. Now when the window(div thing) comes up the page in the background goes disable
till the action is performed on the window or the window is closed. I have to perform action on it then only I can proceed with the TC automation. Please let me know any option to solve this problem.
Thanks
Ahetejazahmad Khan. -
Not able to create row in HANA via .create or ajax call (oData Services)
Hello Experts,
SYSTEM: AWS (Amazone Cloud with HANA SPS06), tunneling via VPN. My HANA-Studio is rev.70 with the "Kepler" addons. I´m the owner of this Schema and granted the necessary privliegues to the __SYS_REPO User.
The following issues when I try to add a row with SAPUI5 - GUI:
The following code are in the index.controller.js implemented and triggered by a button:
Further to the developer guide (SAPUI5....) there is a create Statement to add rows into the Table in HANA. I tried the following:
//Einfacher Datensatz welcher in die HANA geschrieben werden sollte:
var oModel = new sap.ui.model.odata.ODataModel
("..(censored)../BL_TI/2005/zaginfothek/Opportunities.xsodata", false);
var oEntry = {};
oEntry.id = 7777;
oEntry.LfdNr=1;
oEntry.Customer=2;
oEntry.Thema=3;
oEntry.Leadueber=4;
oEntry.Owner=5;
oEntry.MarketDeveloper=6;
oEntry.ThemenfokusnachBL=7;
oEntry.Industry=8;
oEntry.PDs=9;
oEntry.Revenue=0;
oEntry.Probability=1;
oEntry.ProbableRevenue=2;
oEntry.Start=3;
oEntry.Finish=4;
oEntry.Duration=5;
oEntry.Phase=6;
oEntry.Status=7;
oEntry.ATPDecision=8;
oEntry.Date=9;
oEntry.SupplyChain=0;
oEntry.Technology=1;
oEntry.Region=2;
oEntry.Kontaktquelle=3;
oEntry.CASStatus=4;
oEntry.Angebotsnummer=5;
oEntry.Archiv=6;
oEntry.Angebotabgelegt=7;
oEntry.LeadmeldunganSAP=8;
oEntry.ArtderAnfrage=9;
oEntry.tmstmp= "/Date(1390557603727)/";
//Instantzierung mit Anhang Opportunities
oModel.create('/Opportunities', oEntry, nullfunction(){
alert("Create successful");
},function(e){
for (var property in e.d){
alert(property + "=" + e.d[property] + oEntry + "failed");
I get the following Errormessage:
ERROR: 2014-03-17 12:51:52 The following problem occurred: HTTP request failed501,Not Implemented,<?xml version="1.0" encoding="utf-8" standalone="yes"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code/><message xml:lang="en-US">Feature not supported.</message></error> -
After this I tried it with an ajax call:
var aUrl = '..(censored)../BL_TI/2005/zaginfothek/Opportunities.xsodata/Opportunities';
//all in one ajax – Statement included and tried to create the row via POST:
jQuery.ajax({
method:'POST',
url: aUrl,
data: {"id": "7778",
"LfdNr" : "1" ,
"Customer" : "2",
"Thema" : "3" ,
"Leadueber" : "4",
"Owner" : "5",
"MarketDeveloper" : "6",
"ThemenfokusnachBL" : "7",
"Industry" : "8",
"PDs" : "9",
"Revenue" : "0",
"Probability" : "1",
"ProbableRevenue" : "2",
"Start" : "3",
"Finish" : "4",
"Duration" : "5",
"Phase" : "6",
"Status" : "7",
"ATPDecision" : "8",
"Date": "9",
"SupplyChain" : "0",
"Technology" : "1",
"Region" : "2",
"Kontaktquelle" : "3",
"CASStatus" : "4",
"Angebotsnummer" : "5",
"Archiv" : "6",
"Angebotabgelegt" : "7",
"LeadmeldunganSAP" : "8",
"ArtderAnfrage" : "9",
"tmstmp": "/Date(1390557603727)/"
contentType: 'application/json',
dataType: 'json',
success: function(e){
alert(e.response + "success");
error: function onErrorCall(jqXHR, textStatus, errorThrown){
alert(jqXHR.status);
alert(aUrl);
sap.ui.commons.MessageBox.show(jqXHR.status,
"ERROR",
"Error in calling Service" );
// return;
The last statement with ajax send me a success message back, but there is still no row added in the HANA.
Has anyone an idea what´s going wrong?
I woulb be happy for any hints, thanks
AndréHi Ben,
well I tried out your code and it works with an small correction of your insert:
save: function(){
var oData = new sap.ui.model.odata.ODataModel('...censored.../BL_TI/2005/TEST_USER/Opportunities.xsodata', true);
// New user panel
// var pnlUser = new sap.ui.commons.Panel({text: "User-Data"});
// var tfUserId = new sap.ui.commons.TextField({placeholder: "User-Id"});
// var tfUserName = new sap.ui.commons.TextField({placeholder: "User-Name"});
// var btnSave = new sap.ui.commons.Button({text: "Save"});
// pnlUser.addContent(tfUserId).addContent(tfUserName).addContent(btnSave);
// btnSave.attachPress(function() {
var entry = {};
entry.ID = "3"; //tfUserId.getValue();
entry.USERNAME = "4"; //tfUserName.getValue();
oData.create('/USER', entry, null,
function() {
alert("Create successful");
function() {
alert("Create failed");
Try to write your id instead of 3 -> "3" That was the only what I´ve changed.
Greetz,
André -
Windows authentication on every ajax call MVC
I've created an MVC project with windows authentication.
From my views, I use Jquery to retrieve data from the controller asynchronously in order to provide a better user experience and reduce loading times.
These functions look like
public JsonResult someFunction(string parameter)
return Json(result, JsonRequestBehavior.AllowGet);
Everythings works as I want in Chrome, where it prompts me for login when I open the page and no more for the duration of that session. However, in IE, it prompts me for login when I open the page, and on every single ajax call...
Why is this happening and how can I avoid it?
I need to use windows authentication and IE, I can't change that...Hello,
In order to get your issue solved more efficiently and since this is a MVC issue, I would recommend you post this issue in
http://forums.asp.net/1146.aspx/1?MVC forum to get supports.
Thanks for your understanding.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Error in service call of Portal Component
Hi
When user trying to access the ITS screen through portal he is getting the following error.
Portal runtime error with exception id.
I
com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
With the same exception id i could see the another error...
com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Exception occured in layer CommonTopLayer
All other users can access it successfully..
What could be the problem.
Please suggest us.
Thanks & Regards
Sowmya.hi,
i had the same exception.....
and find some notes mentioned in other thread:
Note 1063785 - Runtime of Remote Delta Links fails...
but seems still not work.
any suggestion? or some support package maybe..?
Edited by: fishy 61 on Oct 13, 2009 4:18 AM -
Breadcrumb in BSP is not working when application is called inside Portal.
Dear All,
We have implemented SAP Learning Solution by integrating it with SAP EP 7.0.
We called the BSP Application HCM_LEARNING inside portal using BSP iView template.
The problem we are facing is, the breadcrumbs in the BSP application "HCM_LEARNING" is working fine when it is called as a standalone application. But the same is not working when it is called inside portal framework page.
Enterprise Portal breadcrumbs are working fine.
How could we resolve this.?
Regards,
Eben Joyson.this is the radio button
<af:selectOneRadio value="#{bindings.Gender1.inputValue}"
label="#{bindings.Gender1.label}"
required="#{bindings.Gender1.hints.mandatory}"
shortDesc="#{bindings.Gender1.hints.tooltip}"
id="sor5">
<f:selectItems value="#{bindings.Gender1.items}" id="si7"/>
</af:selectOneRadio>
i use this sample
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/ADF_Insider_Essential_YesNoRadio/ADF_Insider_Essential_YesNoRadio.html -
Hi
I am trying to call a Portal Service from the SAP R/3 through RFC.
I have done the following.
1. Created RFC in the SAP R/3.
2. Created RFC Destination in SAP R/3 and WAS 640
3. Created a Portal Service and deployed in the Portal.
The problem is when I execute the RFC in ABAP it is giving me this error.
com.sap.engine.services.ejb.exceptions.BaseRemoteException: Exception in method processFunction
As anyone faced similar problems, please let me know.
Regards
SenthilHi Senthil,
If you haven't already done so, I think you should try this question in the 'ABAP Programming' forum.
Yoav. -
RFC call from portal gives dump call_function_open_error
Hi all ,
We have a RFC function module where standarad BAPI BAPI_ENTRY_SHEET_CREATE IS USED
where a dump call_function_open_error occurs when the rfc is called from portal , while on r3 it works fine.
I wanted to know if somebody has faced this kind of problem anytime and what can be the possible solution .
There is no problem with data , there is no problem with RFC where can be the problem ?
Please suggest >Hi Bhanu,
Can be helpful
too many dumps in production Env: CALL_FUNCTION_OPEN_ERROR -
Problem with multiple Ajax calls to the same Servlet
Hi,
I am new to AJAX. I have a requirement where in, i have to make ajax calls to the same servlet in an infinite loop and check for an application context attribute to refresh the contents in the JSP.I am using the following script in JSP. The problem is i am not able to invoke the servlet more than one time.But I am able to go through the script at specific time interval using setInterval() function of Javascript and able to get alerts.But the problem is with xmlhttp.open("Get", url, true);. Its not getting called more than one time, even though i make multiple calls to the function.
*<script type="text/javascript">*
var xmlhttp
var resp
function fAjax()
alert("Here");
xmlhttp=null;
resp=null;
// code for Mozilla, etc.
if (window.XMLHttpRequest)
xmlhttp=new XMLHttpRequest();
// code for IE
else if (window.ActiveXObject)
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
if (xmlhttp!=null)
xmlhttp.onreadystatechange=state_Change;
xmlhttp.open("GET","/PSAPBackOffice/TestServlet",true);
xmlhttp.send(null);
else
alert("Your browser does not support XMLHTTP.")
function state_Change()
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
// if "OK"
if (xmlhttp.status==200)
resp=xmlhttp.responseText;
//alert(resp);
if (resp=="CALL"){
form.method="GET";
form.action="/Project/Details.jsp
form.submit();
else
alert("Problem retrieving XML data")
function callTimer(){
setInterval("fAjax()",5000);
*</script>*
*Code for Servlet here:*
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException
ServletContext objContext= getServletContext();
String value;
synchronized (objContext) {
value=(String) objContext.getAttribute("Flag");
if(value==null){
else if(value.equals("Done")){
response.setContentType(CONTENT_TYPE);
PrintWriter out = null;
try {
out = response.getWriter();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException npe) {
// TODO Auto-generated catch block
npe.printStackTrace();
objContext.setAttribute("Flag","No");
out.println("CALL");
Can someone figureout the problem or mistake and help me out.Its urgent and please help me in this regard.Thanks in Advance !I'm not sure I'm following you. The mapping from URL to servlet can contain anything you want. So you could have the URL /blah/blah/blah that, with a mapping something like /blah/* would pass all requests with that URL pattern to your servlet - no one has to know it is a servlet. Your servlet could then parse the URL to see what it has to do or you could pass parameters as part of the URL or as hidden fields.
-
How to send other parateters with the ajax call for rich:suggestion ...
Hi
For the component <rich:suggestion ...>
How I can send parameters (besides what user fills in a field ) for the method
public List fetchAjaxList(Object event) wich is called when the user changes the content of the input field.
Put it in another way, I need values for two drop down lists that the user selects on the same page, this is because the returned list of the Ajax call DOES NOT depened only on the value of the input text field.
ThanksSorry, we are not writing AJAX like code. In conjunction with drop downs we are using the command "Autosubmit On Change" in the Design View of a NetBeans Visual JSF project. Than the IDE generates code like
onChange="common_timeoutSubmitForm(this.form, 'tabSetAngebotsauswahl:tabAngebotsauswahl:layoutPanelAngebotsauswahl:gridPanelAngebotsauswahl:dropDownAuftraggeber');" in the JSP. The whole page will be refreshed by a normal form submit than.
Maybe you are looking for
-
A/P Invoice added with incorrect price
Good Moorning Experts. I've i little problem. I've added a A/P invoice generated from 7 GRPO with incorrect price in the row of the invoice. How can i do to change the price? I can not do a credit memo cause all goods have been sold, so i don't have
-
Periodic Schedule failures due to locked objects
We are periodically encountering issues with nightly schedules against BW Bex universes. Some schedules will fail with the error "A database error occured. The database error text is: Error getting variables for cube (Cube\Query name) (catalog cube
-
Apple mail sender name different than sender only on my mail
When I receive an email from my husband, the name in the in box is not his, even though when i open the email his name and address are correct.
-
Updation of Arabic numbers in Procedure using JDeveloper
Dear All, Please suggest me at earliest how can paste the Arabicnumbers in a procedure of fallowing statement SELECT DECODE(P_REQUEST, 'M','M', 'T','T','3','3','10','10','20','20','4','4','م','م','ت','ت','D') INTO V_REQ FROM DUAL; am unable to type t
-
When trying to access imessage on my iPhone 4s an error message pops up; "Check your network connection or try again later" how can i fix this? This became a problem after i updated the latest software update and i can't seem to fix it.