App/Widget Height is zero on SAP Hana Cloud Portal - user-interface

So I am building (a) webpage(s) using the SAP Hana Cloud Portal.
I have defined a template that looks roughly like this:
<mvc:View
controllerName="cpv2.templates.custom.Template"
height="100%"
xmlns:cpControls="sap.hana.uis.flp.control"
xmlns:l="sap.ui.layout"
xmlns:core="sap.ui.core"
xmlns:mvc="sap.ui.core.mvc"
xmlns:u="sap.ui.unified"
xmlns="sap.m">
<Page showFooter="false" showHeader="false" enableScrolling="true">
<u:SplitContainer id="mySplitContainer" showSecondaryContent="false">
<u:secondaryContent>
<core:Fragment fragmentName="cpv2.templates.custom.SideNavigationPanel"
type="XML" id="idSideNav"/>
</u:secondaryContent>
<u:content>
<cpControls:Section alias="custom.shellHeader"></cpControls:Section>
<cpControls:Section alias="custom.header"></cpControls:Section>
<cpControls:Section alias="custom.content"></cpControls:Section>
<cpControls:Section alias="custom.footerbanner"></cpControls:Section>
<cpControls:Section alias="custom.footer"></cpControls:Section>
</u:content>
</u:SplitContainer>
</Page>
</mvc:View>
I then develop multiple SAPUI5 applications which I convert to SAP Portal Components. My app-widgets' views all have this basic format:
<mvc:View [namespaces, controller, etc.]>
<App>
<!-- most of them have VBox or HBox in their view -->
<Vbox>
<!-- some content here -->
</VBox>
</App>
</mvc:View>
I deploy these applications to the Cloud Portal.
finally I create a webpage, use the above template and fill the defined sections with these app-widgets.
Now for some reason the height of these app-widgets are all 0. Inspecting the page shows me they are there, but their height is rendered zero.
Is there a fix for this?

Related

Firefox could not install the search engine from…

I'm trying to make APLcart work with OpenSearch, but keep getting Firefox could not install the search engine from: https://aplcart.info/opensearch.xml with:
<link rel="search" type="application/opensearchdescription+xml" title="APLcart"
href="/opensearch.xml">
Where /opensearch.xml is:
<OpenSearchDescription>
<ShortName>APLcart</ShortName>
<Description>
Search APLcart: A novel approach to finding your way in APL
</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://aplcart.info/favicon.ico</Image>
<Url type="text/html" template="https://aplcart.info/?q={searchTerms}"/>
</OpenSearchDescription>
Note that this is not the same issue, since I do have Url type="text/html".
I've tried with method="get"
What do I need to change for my OpenSearch specification to be compliant?
You have to use the correct namespace
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
If you open the browser console (CTRL+Shift+J) you can see the error message
Invalid search plugin due to namespace not matching.

Cannot make Gmail contextual gadget work - 2015 API version

I am currently working on a Gmail Contextual Gadget for a non-profit organization.
We followed the official Google tutorials on https://developers.google.com/gmail/contextual_gadgets with the goal of building a Hello World app.
We did the following:
Create an app on https://console.developers.google.com/
Activate Google Marketplace SDK
Activate GMail contextual gadget with appropriate Extractor and Gadget URLs.
Deploy the app for the Non-Profit organization users.
Send us emails containing "Hello World".
However, we are not able to make it work (it should print Hello World below the emails). We checked our servers hosting the XMs, and Google definitely hits our gadget_helloworld.xml file.
Hereby are the files content. Could someone please give a hand on this subject?
It is hard to find up to date documentation on this topic, as a lot of things changed with the Google API. I think it would be helpful for the community to give an open source working sample of code updated on last-2015.
Best,
Content of the Extractor - manifest_helloworld.xml
<?xml version="1.0" encoding="UTF-8"?>
<ApplicationManifest xmlns="http://schemas.google.com/ApplicationManifest/2009">
<script id="tinyhippos-injected" />
<Extension id="HelloWorldExtractor" type="contextExtractor">
<Name>Hello World Extractor</Name>
<Url>google.com:HelloWorld</Url>
<Triggers ref="HelloWorld" />
<Scope ref="emailBody" />
<Scope ref="emailSubject" />
<Container name="mail" />
</Extension>
<Extension id="HelloWorld" type="gadget">
<Name>HelloWorld Gadget</Name>
<Url>XXXX_MY_DOMAIN/gadget_files/gadget_helloworld.xml</Url>
<Container name="mail" />
<!-- Uncomment this to enable Caja. -->
<!-- Param name="caja" value="enabled"/> -->
</Extension>
<Scope id="emailBody">
<Url>tag:google.com,2010:auth/contextual/extractor/BODY</Url>
<Reason>Necessary for reason 1</Reason>
</Scope>
<Scope id="emailSubject">
<Url>tag:google.com,2010:auth/contextual/extractor/SUBJECT</Url>
<Reason>Necessary for reason 2</Reason>
</Scope>
</ApplicationManifest>
Content of the Gadget - gadget_helloworld.xml
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<script id="tinyhippos-injected" />
<ModulePrefs title="Hello World" description="Matches and echoes 'Hello World' string in emails" height="20" author="ACME" author_email="test#example.com" author_location="Bermuda">
<!-- Declare feature dependencies. -->
<!--
This one is not specific to Gmail contextual gadgets.
-->
<Require feature="dynamic-height" />
<!--
The next feature, Caja, is optional, and is supported for
use only within test domains. Uncomment the tag only for
non-production gadgets.
-->
<!-- <Require feature="caja"/> -->
<!--
The next feature, google.contentmatch, is required for all
Gmail contextual gadgets.
<Param> - specify one or more comma-separated extractor IDs in
a param named "extractors". This line is overridden by the extractor ID
in the manifest, but is still expected to be present.
-->
<Require feature="google.contentmatch">
<Param name="extractors">google.com:HelloWorld</Param>
</Require>
</ModulePrefs>
<!--
Define the content type and display location. The settings
"html" and "card" are required for all Gmail contextual gadgets.
-->
<Content type="html" view="card"><![CDATA[<p>Hello World</p>
<script type="text/javascript">
<!-- Fetch the array of content matches. -->
matches = google.contentmatch.getContentMatches();
var matchList = document.createElement('UL');
var listItem;
var extractedText;
<!-- Iterate through the array and display output for each match. -->
for (var match in matches) {
for (var key in matches[match]) {
listItem = document.createElement('LI');
extractedText = document.createTextNode(key + ": " + matches[match][key]);
listItem.appendChild(extractedText);
matchList.appendChild(listItem);
}
}
document.body.appendChild(matchList);
gadgets.window.adjustHeight(100);
</script>]]></Content>
</Module>
I had a similar issue of it not activating and the solution for me was to make the "Extractor param name" set to "hello" and and the "Extractor param value" set to ".*" -- According to the docs the important part is the value field:
If you really do want your gadget to be triggered by all possible
values in the extractor's default output, explicitly set the regular
expression as value=".*". This makes it clear that you have cast a
wide net by design.

Getting a full file path from Fileupload in zk

I want Absolute Path but it's get eclipse path.
how to get original path please help me.
<zk>
<window title="Hello World!!" border="normal">
<label value="You are using: ${desktop.webApp.version}" id="lab" />
<textbox id="tex" width="250px" />
<button label="Upload Image" upload="true,maxsize=300">
<attribute name="onUpload">
<![CDATA[
org.zkoss.util.media.Media media = event.getMedia();
java.io.File myFile = new java.io.File(media.getName());
Messagebox.show("path"+myFile.getAbsolutePath());
]]>
</attribute>
</button>
</window>
</zk>
Now browsers have a very high security so it preventing to show client local file system and for security it make sense for everyone ,no any internet user will like Server will know the our local file system if still any browser showing your file system in browser it is lake of security in the browser.

Data is not loaded in BI Publisher flash template - Error #2032

I have created a simple reprot with one level of XML data, and followed all the guide lines from oracle tutorial http://docs.oracle.com/cd/E10383_01/doc/bip.1013/e10416/flashtemp.htm
When I run the application from Flash Builder, it works fine, a simple data grid as in the tutorial
But when I upload the swf file to the flash template in publisher, it fails to run with error#2032, I've searched and searched for any clue of what is wrong! no tutorial or help was useful.
Here is my flex application source code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600">
<mx:Script>
<![CDATA[
[Bindable]
public var dataXML:XML =
<ROWSET>
<ROW>
<ACCOUNT_NUMBER>999222111</ACCOUNT_NUMBER>
<CURR_CODE>USD</CURR_CODE>
<INSTALLMENT_AMOUNT_LC>8840</INSTALLMENT_AMOUNT_LC>
</ROW>
</ROWSET>;
]]>
</mx:Script>
<mx:Panel left="10" top="10" width="477" height="267" layout="absolute">
<mx:DataGrid left="0" right="1" top="0" bottom="10" dataProvider="{dataXML.ROW}"
horizontalCenter="-1">
<mx:columns>
<mx:DataGridColumn dataField="ACCOUNT_NUMBER" headerText="Account Number"/>
<mx:DataGridColumn dataField="CURR_CODE" headerText="Currency Code"/>
<mx:DataGridColumn dataField="INSTALLMENT_AMOUNT_LC" headerText="Instalment Amount"/>
</mx:columns>
</mx:DataGrid>
</mx:Panel>
I don't know whats wrong with the code! or what is causing the error, BI or the swf file.
Can anyone help me ?
I use Oracle 10g, and Flash builder 4.6
After a lot of search, I came to the result that there is no solution for linking reports built using Flex Builder 4.6 with Oracle 10g BI Publisher that I'm aware of.
But when I downgraded to Flex Builder 2.0, it worked for me, and I'm now able to see the data in the flash template that is built using this version of Flex when the report runs in Oracle BI Publisher and without changing any code from the above question.
I believe this is backward compatibility issue between Oracle 10g and its BI Publisher, and the new versions of the Flex Builder from Adobe.

SVG Image with <image> tags does not show up in Firefox 16 when referred through GWT application

I am facing this issue in Firefox 16.
I created a new svg file (NewImage.svg) with <image> tags:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN'
'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
<svg xmlns='http://www.w3.org/2000/svg'
xmlns:xlink='http://www.w3.org/1999/xlink'
width="224px" height="54px" viewBox="-0.58 -1.162 224 54">
<image xlink:href='background.svg' width='224' height='54' />
<image xlink:href='foreground.svg' x='12' y='12' width='32' height='32'/>
</svg>
When I open this NewImage.svg in Firefox directly, it opens perfectly.
However, when I refer to this svg file from inside my GWT application, the NewImage.svg does not load in Firefox 16. It does load correctly in IE 9.
Gecko does not allow SVG loaded inside to load any external resources, for security reasons (basically to prevent images from phoning home when users won't expect them to). So you need to put any resources you want to use into data: URIs

Resources