Display image in screen(view) background - oracle-adf

I want to display image at background of PanelPage which is top most view in ADF mobile. I want to set image at background.
My AMX file is :
<?xml version="1.0" encoding="UTF-8" ?>
<amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt" >
<amx:panelPage id="pp1" inlineStyle='background-image:url("image/custom_cell_image.png");'>
<amx:facet name="header">
<amx:outputText value="Requition Line" id="ot1"/>
</amx:facet>
<amx:facet name="primary">
<amx:commandButton id="cb1" text="Requisition" inlineStyle="font-size:small;" action="__back"/>
</amx:facet>
<amx:facet name="footer">
<amx:commandButton id="cb2" action="back" text="Approve" styleClass="adfmf-commandButton-default"/>
<amx:commandButton text="Reject" id="cb3"/>
<amx:commandButton text="Request More Info" id="cb4"/>
</amx:facet>
<amx:commandButton text="commandButton1" id="cb5"/>
</amx:panelPage>
</amx:view>
I set image url, but it is not effected. If I set background color, then it is effected.

If using skinning on iOS
image file in /app/ApplicationController/public_html/resources
Css file located at /app/ApplicationController/public_html/resources/css
in .css file
.panel-page-custom {
background-image: url("../bg.png");
}
in amx page
amx:panelPage styleClass=panel-page-custom

Related

How to use .env file data in a .xml file in React

I am using React and would like to use the data within the .env file and insert it into my .xml file.
Is this achievable somehow, could not find anything useful on the net?
The file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TaskPaneApp">
<!--IMPORTANT! Id must be unique for each add-in. If you copy this manifest ensure that you change this id to your own GUID. -->
<Id>c6890c26-5bbb-40ed-a321-37f07909a2f0</Id>
<Version>1.0</Version>
<ProviderName>Contoso, Ltd</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Northwind Traders Excel" />
<Description DefaultValue="Search Northwind Traders data from Excel"/>
<SupportUrl DefaultValue="[Insert the URL of a page that provides support information for the app]" />
<AppDomains>
<AppDomain>https://www.northwindtraders.com</AppDomain>
</AppDomains>
<DefaultSettings>
<SourceLocation DefaultValue="https://www.contoso.com/search_app/Default.aspx" />
</DefaultSettings>
<Permissions>ReadWriteDocument</Permissions>
</OfficeApp>
And instead of the lets say Id property i would like to have some preset value from .env.

Ionic/Angular cant see images in real phone

I have a project about the film-tv series list. But photos isn't seenable in the real phone. I can see it in an emulator or ionic lab but I can't see it on my real phone.
<img style="margin-left: 5%; border-radius: 15px;" src="http://image.tmdb.org/t/p/w500{{item.poster_path}}" height="250px" width="250px" >
It's my code about img. When I use it like that I can see on an emulator like: https://prnt.sc/12jdedl
But when I open it from my phone its shows like: https://prnt.sc/12jddef how can I fix it? Thanks for the help!
Welcome to Stackoverflow. Your curly brackets {{...}} sit in the middle of the src string. They don't have a string interpolation feature. In order to combine two strings in the angular template you may try this:
<img style="margin-left: 5%; border-radius: 15px;" [src]="'http://image.tmdb.org/t/p/w500' + item.poster_path" height="250px" width="250px" >
The error is: ERR_CLEARTEXT_NOT_PERMITTED
From: https://stackoverflow.com/a/67127207/1772933
First, create the Network Security Config file here YOUR_IONIC_APP_ROOT\android\app\main\res\xml\network_security_config.xml.
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain>www.example.com</domain>
</domain-config>
</network-security-config>
Then edit YOUR_IONIC_APP_ROOT\android\app\main\AndroidManifest.xml adding android:networkSecurityConfig="#xml/network_security_config" to application.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.ionic.starter">
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:networkSecurityConfig="#xml/network_security_config"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<!-- ... -->
</application>
<!-- ... -->
</manifest>

How to retrieve the default color of a calendar using EWS SOAP API

I am using the below XML to fetch my calendars. The response contains some of the details of my calendars but doesn't contain the default color for calendars. I also want to get the default color set for each calendar. How do I get it?
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:RequestServerVersion Version="Exchange2007_SP1" />
</soap:Header>
<soap:Body>
<m:FindFolder Traversal="Deep">
<m:FolderShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:FolderShape>
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="calendar" />
</m:ParentFolderIds>
</m:FindFolder>
</soap:Body>
</soap:Envelope>

KML & Google maps error

I've created a program in Java to create a KML file. The output is this:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Placemark>
<name>Evidence File</name>
<description>London</description>
<Point>
<coordinates>51.522416,-0.131836,0<coordinates>
</Point>
</Placemark>
</kml>
However, when I import it into Google maps - I have the error:
We could not finish uploading your file. No changes have been made to
the map.
Can anyone see any errors that I'm missing?
You're closing coordinates tag is missing a '/', i.e. it should be:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Placemark>
<name>Evidence File</name>
<description>London</description>
<Point>
<coordinates>51.522416,-0.131836,0</coordinates>
</Point>
</Placemark>
</kml>

KML Google Maps - Only one placemark showing rather than multiple

I have the following Google Map located at :
http://www.ticketrich.com/uk-days-out-guide/
I am using a WP Plugin that uses shortcode to initiate the map with
[map kml=http://www.ticketrich.com/map5.kml]
This is the contents of the kml file :
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.google.com/earth/kml/2">
<Document>
<Folder>
<name>Folder.kml</name>
<open>1</open>
<description>
A folder is a container that can hold multiple other objects
</description>
<Placemark>
<name>Alton Towers</name>
<description>Alton Towers Information</description>
<Point>
<coordinates>-1.891,52.9898,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Chessington World of Adventures</name>
<description>Chessington World of Adventures Information</description>
<Point>
<coordinates>-0.31539,51.35013</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Banqueting House</name>
<description>Banqueting House</description>
<Point>
<coordinates>-1.0968,53.8937</coordinates>
</Point>
</Placemark>
</Folder>
</Document>
</kml>
The problem is that it is only showing one of the placemarks. Whatever I've tried, I cannot get them all working. Can anyone see what the problem is?
I see a bunch of placemarks on the map at http://www.ticketrich.com/uk-days-out-guide/ although it seems to be using a different KML than the one you mention.
As for http://www.ticketrich.com/map5.kml (which currently has the same code as posted in your question), it seems to be fine when viewed with google maps: http://maps.google.com?q=http://www.ticketrich.com/map5.kml so I assume it would also work with your wordpress site. If it still is not working can you create a page that links to this kml so we can take a look?

Resources