phonegap,cordova,adobephonegap build - html

I'm able to view the app locally in the browser which I built using phonegap.The same app's zip file I uploaded in adobephonegapbuild and once the built was over I downloaded the apk file to view my app locally in my phone.But I'm unable to do perform operations like login and logout in my app.What shall be done to avoid this?Could someone provide with a solution asap?
here's the config.xml i have been using for this app i'm building:
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.Netvarth.YNW1" version="1.0.0" versionCode="1" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://netvarth.com/ns/1.0">
<name>ynw</name>
<description>Appointment managagement app</description>
<author email="support#netvarth.com" href="http://netvarth.com">netvarth Team</author>
<content src="index.html" />
<preference name="permissions" value="none" />
<preference name="orientation" value="default" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="true" />
<preference name="prerendered-icon" value="true" />
<preference name="stay-in-webview" value="false" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="show-splash-screen-spinner" value="true" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="android-minSdkVersion" value="14" />
<preference name="android-installLocation" value="auto" />
<gap:plugin name="org.apache.cordova.battery-status" />
<gap:plugin name="org.apache.cordova.camera" />
<gap:plugin name="org.apache.cordova.media-capture" />
<gap:plugin name="org.apache.cordova.console" />
<gap:plugin name="org.apache.cordova.contacts" />
<gap:plugin name="org.apache.cordova.device" />
<gap:plugin name="org.apache.cordova.device-motion" />
<gap:plugin name="org.apache.cordova.device-orientation" />
<gap:plugin name="org.apache.cordova.dialogs" />
<gap:plugin name="org.apache.cordova.file" />
<gap:plugin name="org.apache.cordova.file-transfer" />
<gap:plugin name="org.apache.cordova.geolocation" />
<gap:plugin name="org.apache.cordova.globalization" />
<gap:plugin name="org.apache.cordova.inappbrowser" />
<gap:plugin name="org.apache.cordova.media" />
<gap:plugin name="org.apache.cordova.network-information" />
<gap:plugin name="org.apache.cordova.splashscreen" />
<gap:plugin name="org.apache.cordova.vibration" />
<icon src="icon.png" />
<icon gap:platform="android" gap:qualifier="ldpi" src="www/res/icon/android/icon-36-ldpi.png" />
<icon gap:platform="android" gap:qualifier="mdpi" src="www/res/icon/android/icon-48-mdpi.png" />
<icon gap:platform="android" gap:qualifier="hdpi" src="www/res/icon/android/icon-72-hdpi.png" />
<icon gap:platform="android" gap:qualifier="xhdpi" src="www/res/icon/android/icon-96-xhdpi.png" />
<icon gap:platform="blackberry" src="www/res/icon/blackberry/icon-80.png" />
<icon gap:platform="blackberry" gap:state="hover" src="www/res/icon/blackberry/icon-80.png" />
<icon gap:platform="ios" height="57" src="www/res/icon/ios/icon-57.png" width="57" />
<icon gap:platform="ios" height="72" src="www/res/icon/ios/icon-72.png" width="72" />
<icon gap:platform="ios" height="114" src="www/res/icon/ios/icon-57-2x.png" width="114" />
<icon gap:platform="ios" height="144" src="www/res/icon/ios/icon-72-2x.png" width="144" />
<icon gap:platform="webos" src="www/res/icon/webos/icon-64.png" />
<icon gap:platform="winphone" src="www/res/icon/windows-phone/icon-48.png" />
<icon gap:platform="winphone" gap:role="background" src="www/res/icon/windows-phone/icon-173-tile.png" />
<gap:splash gap:platform="android" gap:qualifier="port-ldpi" src="www/res/screen/android/screen-ldpi-portrait.png" />
<gap:splash gap:platform="android" gap:qualifier="port-mdpi" src="www/res/screen/android/screen-mdpi-portrait.png" />
<gap:splash gap:platform="android" gap:qualifier="port-hdpi" src="www/res/screen/android/screen-hdpi-portrait.png" />
<gap:splash gap:platform="android" gap:qualifier="port-xhdpi" src="www/res/screen/android/screen-xhdpi-portrait.png" />
<gap:splash gap:platform="blackberry" src="www/res/screen/blackberry/screen-225.png" />
<gap:splash gap:platform="ios" height="480" src="www/res/screen/ios/screen-iphone-portrait.png" width="320" />
<gap:splash gap:platform="ios" height="960" src="www/res/screen/ios/screen-iphone-portrait-2x.png" width="640" />
<gap:splash gap:platform="ios" height="1136" src="www/res/screen/ios/screen-iphone-portrait-568h-2x.png" width="640" />
<gap:splash gap:platform="ios" height="1024" src="www/res/screen/ios/screen-ipad-portrait.png" width="768" />
<gap:splash gap:platform="ios" height="768" src="www/res/screen/ios/screen-ipad-landscape.png" width="1024" />
<gap:splash gap:platform="winphone" src="www/res/screen/windows-phone/screen-portrait.jpg" />
<access origin="http://54.215.5.201/" />
<plugin name="cordova-plugin-whitelist" version="1" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<engine name="android" spec="~5.1.1" />
</widget>

The solution to your predicament does not lie in the config.xml
During development and testing relative urls definitely work, e.g (./services/login.php), since the files are sitting physically in the same location. But once you package the app these relative links are broken since php doesn't run on the phone, neither is the mysql database exported with the app's HTML5 and php files.
It is important to have the database and files you are calling to be resident on the internet. Then edit the files you will zip and upload to Phonegap Build to make the API calls to http://your-domain.tld/services/login.php

Related

JavaFX Loader returning an IOException

Trying to load an FXML file in Eclipse and continue to get exceptions. Here is my main:
package application;
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
static Tracker money = new Tracker(0,0,0);
static Tracker steel = new Tracker(0,0,0);
static Tracker titanium = new Tracker(0,0,0);
static Tracker plant = new Tracker(0,0,0);
static Tracker power = new Tracker(0,0,0);
static Tracker heat = new Tracker(0,0,0);
public static void main(String[] args) {
Application.launch(args);
}
#Override
public void start(Stage primaryStage){
try {
FXMLLoader loader = new FXMLLoader(Main.class.getResource("board.fxml"));
Parent root = (Parent) loader.load();
primaryStage.setScene(new Scene(root));
primaryStage.show();
} catch(NullPointerException e)
{
System.out.print("NullPointerException Caught");
e.printStackTrace();
}catch(IOException e) {
System.out.print("IOException Caught");
e.printStackTrace();
}
}
public static void nextGen() {
money.produce();
steel.produce();
titanium.produce();
plant.produce();
power.produce();
heat.produce();
}
public static void change() {
money.change();
steel.change();
titanium.change();
plant.change();
power.change();
heat.change();
}
}
I did the separate catches to see what is actually happening for Exceptions as I thought it was NullPointer at first (may still be that if a null val into the loader would give that) but the catch is happening with the IOException. I don't really know where to go from here, just would like some guidance.
EDIT
Added e.printStackTrace() per suggestion:
IOException Caughtjavafx.fxml.LoadException:
/C:/Users/pcher/eclipse-workspace/board/bin/application/board.fxml:8
at javafx.fxml/javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2707)
at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processAttribute(FXMLLoader.java:933)
at javafx.fxml/javafx.fxml.FXMLLoader$InstanceDeclarationElement.processAttribute(FXMLLoader.java:981)
at javafx.fxml/javafx.fxml.FXMLLoader$Element.processStartElement(FXMLLoader.java:230)
at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:755)
at javafx.fxml/javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2808)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2634)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
at javafx.fxml/javafx.fxml.FXMLLoader.load(FXMLLoader.java:2516)
at board/application.Main.start(Main.java:27)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:847)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:484)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.ClassNotFoundException: application.BoardCo
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processAttribute(FXMLLoader.java:931)
... 17 more
Here is the FXML:
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.text.*?>
<?import javafx.scene.control.*?>
<?import java.lang.*?>
<?import javafx.scene.layout.*?>
<TitledPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" text="Terraforming Mars Tracker" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.BoardCo">
<content>
<GridPane prefHeight="388.0" prefWidth="598.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints maxHeight="154.0" minHeight="154.0" prefHeight="154.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="154.0" minHeight="154.0" prefHeight="154.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="113.0" minHeight="0.0" prefHeight="41.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<TitledPane animated="false" text="Money">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<GridPane layoutX="-1.0" layoutY="-2.0" prefHeight="130.0" prefWidth="194.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<TextField editable="false" text="Production:" GridPane.rowIndex="1" />
<TextField editable="false" text="Change:" GridPane.rowIndex="2" />
<TextField editable="false" text="Total:" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField editable="false" GridPane.columnIndex="1" />
</children>
</GridPane>
</children>
</AnchorPane>
</content>
</TitledPane>
<TitledPane animated="false" text="Steel" GridPane.columnIndex="1">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<GridPane layoutY="-1.0" prefHeight="130.0" prefWidth="194.0">
<children>
<TextField editable="false" text="Production:" GridPane.rowIndex="1" />
<TextField editable="false" text="Change:" GridPane.rowIndex="2" />
<TextField editable="false" text="Total:" />
<TextField editable="false" GridPane.columnIndex="1" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="2" />
</children>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
</GridPane>
</children>
</AnchorPane>
</content>
</TitledPane>
<TitledPane animated="false" text="Titanium" GridPane.columnIndex="2">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<GridPane layoutY="-1.0" prefHeight="130.0" prefWidth="194.0">
<children>
<TextField editable="false" text="Production:" GridPane.rowIndex="1" />
<TextField editable="false" text="Change:" GridPane.rowIndex="2" />
<TextField editable="false" text="Total:" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField editable="false" GridPane.columnIndex="1" />
</children>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
</GridPane>
</children>
</AnchorPane>
</content>
</TitledPane>
<TitledPane animated="false" text="Plant" GridPane.rowIndex="1">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<GridPane layoutY="-1.0" prefHeight="130.0" prefWidth="194.0">
<children>
<TextField editable="false" text="Production:" GridPane.rowIndex="1" />
<TextField editable="false" text="Change:" GridPane.rowIndex="2" />
<TextField editable="false" text="Total:" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField editable="false" GridPane.columnIndex="1" />
</children>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
</GridPane>
</children>
</AnchorPane>
</content>
</TitledPane>
<TitledPane animated="false" text="Power" GridPane.columnIndex="1" GridPane.rowIndex="1">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<GridPane layoutY="-1.0" prefHeight="130.0" prefWidth="194.0">
<children>
<TextField editable="false" text="Production:" GridPane.rowIndex="1" />
<TextField editable="false" text="Change:" GridPane.rowIndex="2" />
<TextField editable="false" text="Total:" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField editable="false" GridPane.columnIndex="1" />
</children>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
</GridPane>
</children>
</AnchorPane>
</content>
</TitledPane>
<TitledPane animated="false" text="Heat" GridPane.columnIndex="2" GridPane.rowIndex="1">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<GridPane layoutY="-1.0" prefHeight="130.0" prefWidth="194.0">
<children>
<TextField editable="false" text="Production:" GridPane.rowIndex="1" />
<TextField editable="false" text="Change:" GridPane.rowIndex="2" />
<TextField editable="false" text="Total:" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField editable="false" GridPane.columnIndex="1" />
</children>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
</GridPane>
</children>
</AnchorPane>
</content>
</TitledPane>
<Button mnemonicParsing="false" onAction="#btnNextGenClicked" text="Next Generation" GridPane.columnIndex="2" GridPane.rowIndex="2" />
<Button mnemonicParsing="false" onAction="#btnChangeClicked" text="Change" GridPane.columnIndex="1" GridPane.rowIndex="2" />
</children>
</GridPane>
</content>
</TitledPane>
And here is my controller (bare bones at the moment):
package application;
import javafx.fxml.FXML;
import javafx.event.ActionEvent;
public class BoardController {
// Event Listener on Button.onAction
#FXML
public void btnNextGenClicked(ActionEvent event) {
Main.nextGen();
}
// Event Listener on Button.onAction
#FXML
public void btnChangeClicked(ActionEvent event) {
Main.change();
}
}

Mysql EF5 storegeneratedpattern identity not working

I've read a fair amount on this issue but nothing seems to be working.
So far I have made sure that the StoreGeneratedPattern Identity is on two tables. I checked the model AND store. Both have the property set. However, when I insert into these tables, both ids are '0'.
I hope that someone familiar with these issues can take a look and tell me where I've got it wrong
Thanks
Here is the generated xml (irrelevant tables removed):
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
<!-- EF Runtime content -->
<edmx:Runtime>
<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="rule_testModel.Store" Provider="MySql.Data.MySqlClient" ProviderManifestToken="5.7" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<Key>
<PropertyRef Name="RateId" />
<PropertyRef Name="RateTypeId" />
<PropertyRef Name="PaymentPlanId" />
<PropertyRef Name="TariffDescriptionId" />
<PropertyRef Name="FeatureId" />
<PropertyRef Name="FuelId" />
<PropertyRef Name="Live" />
</Key>
<Property Name="RateId" Type="uint" Nullable="false" />
<Property Name="Profile" Type="uint" />
<Property Name="REC" Type="varchar" MaxLength="10" />
<Property Name="PlanName" Type="varchar" MaxLength="300" />
<Property Name="RateTypeId" Type="uint" Nullable="false" />
<Property Name="PaymentPlanId" Type="uint" Nullable="false" />
<Property Name="Product" Type="varchar" MaxLength="45" />
<Property Name="ContractDuration" Type="varchar" MaxLength="45" />
<Property Name="TariffDescriptionId" Type="uint" Nullable="false" />
<Property Name="TariffUnrestricted" Type="decimal" Precision="6" Scale="3" />
<Property Name="TariffDay" Type="decimal" Precision="6" Scale="3" />
<Property Name="TariffNight" Type="decimal" Precision="6" Scale="3" />
<Property Name="TariffEveningWeekend" Type="decimal" Precision="6" Scale="3" />
<Property Name="StandingChargePenceDay" Type="decimal" Precision="6" Scale="3" />
<Property Name="StandingChargeGBPQuarter" Type="decimal" Precision="6" Scale="3" />
<Property Name="StandingChargeGBPMonth" Type="decimal" Precision="6" Scale="3" />
<Property Name="StandingChargeGBPYear" Type="decimal" Precision="6" Scale="3" />
<Property Name="CapacityCharge" Type="decimal" Precision="7" Scale="3" />
<Property Name="FeatureId" Type="uint" Nullable="false" />
<Property Name="FromCon" Type="uint" />
<Property Name="ToCon" Type="uint" />
<Property Name="Version" Type="varchar" MaxLength="45" />
<Property Name="PriceType" Type="varchar" MaxLength="45" />
<Property Name="Duration" Type="uint" />
<Property Name="SupplierId" Type="uint" />
<Property Name="FuelId" Type="uint" Nullable="false" />
<Property Name="ProposedStartDate" Type="date" />
<Property Name="SignWindow" Type="uint" />
<Property Name="DateAdded" Type="datetime" Precision="0" StoreGeneratedPattern="Identity" />
<Property Name="Live" Type="uint" Nullable="false" />
<Property Name="MaxRate" Type="decimal" Precision="6" Scale="3" />
<Property Name="MaxSc" Type="decimal" Precision="6" Scale="3" />
<Property Name="UpStep" Type="decimal" Precision="6" Scale="3" />
</EntityType>
<EntityType Name="conditions">
<Key>
<PropertyRef Name="ConditionId" />
</Key>
<Property Name="ConditionId" Type="uint" Nullable="false" StoreGeneratedPattern="Identity" />
<Property Name="ProductId" Type="uint" Nullable="false" />
<Property Name="Profile" Type="usmallint" />
<Property Name="REC" Type="varchar" MaxLength="10" />
<Property Name="RateTypeId" Type="uint" />
<Property Name="PaymentPlanId" Type="uint" />
<Property Name="FeatureId" Type="uint" />
<Property Name="FromCon" Type="uint" />
<Property Name="ToCon" Type="uint" />
<Property Name="Duration" Type="uint" />
<Property Name="SupplierId" Type="uint" />
<Property Name="FuelId" Type="uint" />
<Property Name="live" Type="bool" />
<Property Name="TempRateId" Type="uint" />
</EntityType>
<EntityType Name="products">
<Key>
<PropertyRef Name="ProductId" />
</Key>
<Property Name="ProductId" Type="uint" Nullable="false" StoreGeneratedPattern="Identity" />
<Property Name="RateId" Type="uint" />
<Property Name="FromProductId" Type="uint" />
<Property Name="ServiceRef" Type="uint" />
<Property Name="UpCom" Type="decimal" Precision="6" Scale="3" />
<Property Name="UpSC" Type="decimal" Precision="6" Scale="3" />
<Property Name="FixedCom" Type="decimal" Precision="8" Scale="3" />
<Property Name="Live" Type="bool" Nullable="false" />
<Property Name="BrokerId" Type="uint" />
<Property Name="MaxRate" Type="decimal" Precision="6" Scale="3" />
<Property Name="MaxSC" Type="decimal" Precision="6" Scale="3" />
<Property Name="Step" Type="decimal" Precision="6" Scale="3" />
<Property Name="Fits" Type="decimal" Precision="6" Scale="3" />
<Property Name="Disc" Type="decimal" Precision="6" Scale="3" />
<Property Name="UpliftTypeId" Type="uint" Nullable="false" />
<Property Name="SupplierId" Type="uint" Nullable="false" />
<Property Name="FromCon" Type="uint" />
<Property Name="ToCon" Type="uint" />
</EntityType>
<Key>
<PropertyRef Name="word_id" />
</Key>
<Property Name="word_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="word_context" Type="varchar" MaxLength="45" Nullable="false" />
<Property Name="word_word" Type="varchar" MaxLength="255" Nullable="false" />
</EntityType>
<EntityContainer Name="rule_testModelStoreContainer">
<EntitySet Name="conditions" EntityType="Self.conditions" Schema="rule_test" store:Type="Tables" />
<EntitySet Name="products" EntityType="Self.products" Schema="rule_test" store:Type="Tables" />
</EntityContainer>
</Schema></edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema Namespace="rule_testModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
<EntityContainer Name="eBroker2Entities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="products" EntityType="rule_testModel.product" />
<EntitySet Name="conditions" EntityType="rule_testModel.condition" />
</EntityContainer>
<EntityType Name="product">
<Key>
<PropertyRef Name="ProductId" />
</Key>
<Property Name="ProductId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="RateId" Type="Int32" />
<Property Name="FromProductId" Type="Int32" />
<Property Name="ServiceRef" Type="Int32" />
<Property Name="UpCom" Type="Decimal" />
<Property Name="UpSC" Type="Decimal" />
<Property Name="FixedCom" Type="Decimal" />
<Property Name="Live" Type="Boolean" Nullable="false" />
<Property Name="BrokerId" Type="Int32" />
<Property Name="MaxRate" Type="Decimal" />
<Property Name="MaxSC" Type="Decimal" />
<Property Name="Step" Type="Decimal" />
<Property Name="Fits" Type="Decimal" />
<Property Name="Disc" Type="Decimal" />
<Property Name="UpliftTypeId" Type="Int32" Nullable="false" />
<Property Name="SupplierId" Type="Int32" Nullable="false" />
<Property Name="FromCon" Type="Int32" />
<Property Name="ToCon" Type="Int32" />
</EntityType>
<EntityType Name="condition">
<Key>
<PropertyRef Name="ConditionId" />
</Key>
<Property Name="ConditionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="ProductId" Type="Int32" Nullable="false" />
<Property Name="Profile" Type="Int32" />
<Property Name="REC" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
<Property Name="RateTypeId" Type="Int32" />
<Property Name="PaymentPlanId" Type="Int32" />
<Property Name="FeatureId" Type="Int32" />
<Property Name="FromCon" Type="Int32" />
<Property Name="ToCon" Type="Int32" />
<Property Name="Duration" Type="Int32" />
<Property Name="SupplierId" Type="Int32" />
<Property Name="FuelId" Type="Int32" />
<Property Name="live" Type="Boolean" />
<Property Name="TempRateId" Type="Int32" />
</EntityType>
</Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
<edmx:Mappings>
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
<EntityContainerMapping StorageEntityContainer="rule_testModelStoreContainer" CdmEntityContainer="eBroker2Entities">
<EntitySetMapping Name="products">
<EntityTypeMapping TypeName="rule_testModel.product">
<MappingFragment StoreEntitySet="products">
<ScalarProperty Name="ToCon" ColumnName="ToCon" />
<ScalarProperty Name="FromCon" ColumnName="FromCon" />
<ScalarProperty Name="SupplierId" ColumnName="SupplierId" />
<ScalarProperty Name="UpliftTypeId" ColumnName="UpliftTypeId" />
<ScalarProperty Name="Disc" ColumnName="Disc" />
<ScalarProperty Name="Fits" ColumnName="Fits" />
<ScalarProperty Name="Step" ColumnName="Step" />
<ScalarProperty Name="MaxSC" ColumnName="MaxSC" />
<ScalarProperty Name="MaxRate" ColumnName="MaxRate" />
<ScalarProperty Name="BrokerId" ColumnName="BrokerId" />
<ScalarProperty Name="Live" ColumnName="Live" />
<ScalarProperty Name="FixedCom" ColumnName="FixedCom" />
<ScalarProperty Name="UpSC" ColumnName="UpSC" />
<ScalarProperty Name="UpCom" ColumnName="UpCom" />
<ScalarProperty Name="ServiceRef" ColumnName="ServiceRef" />
<ScalarProperty Name="FromProductId" ColumnName="FromProductId" />
<ScalarProperty Name="RateId" ColumnName="RateId" />
<ScalarProperty Name="ProductId" ColumnName="ProductId" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="conditions">
<EntityTypeMapping TypeName="rule_testModel.condition">
<MappingFragment StoreEntitySet="conditions">
<ScalarProperty Name="TempRateId" ColumnName="TempRateId" />
<ScalarProperty Name="live" ColumnName="live" />
<ScalarProperty Name="FuelId" ColumnName="FuelId" />
<ScalarProperty Name="SupplierId" ColumnName="SupplierId" />
<ScalarProperty Name="Duration" ColumnName="Duration" />
<ScalarProperty Name="ToCon" ColumnName="ToCon" />
<ScalarProperty Name="FromCon" ColumnName="FromCon" />
<ScalarProperty Name="FeatureId" ColumnName="FeatureId" />
<ScalarProperty Name="PaymentPlanId" ColumnName="PaymentPlanId" />
<ScalarProperty Name="RateTypeId" ColumnName="RateTypeId" />
<ScalarProperty Name="REC" ColumnName="REC" />
<ScalarProperty Name="Profile" ColumnName="Profile" />
<ScalarProperty Name="ProductId" ColumnName="ProductId" />
<ScalarProperty Name="ConditionId" ColumnName="ConditionId" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
</EntityContainerMapping>
</Mapping>
</edmx:Mappings>
</edmx:Runtime>
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
<Connection>
<DesignerInfoPropertySet>
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
</DesignerInfoPropertySet>
</Connection>
<Options>
<DesignerInfoPropertySet>
<DesignerProperty Name="ValidateOnBuild" Value="true" />
<DesignerProperty Name="EnablePluralization" Value="true" />
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
<DesignerProperty Name="UseLegacyProvider" Value="true" />
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
</DesignerInfoPropertySet>
</Options>
<!-- Diagram content (shape and connector positions) -->
<Diagrams></Diagrams>
</Designer>
</edmx:Edmx></Mapping>
</edmx:Mappings>
</edmx:Runtime>
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
<Connection>
<DesignerInfoPropertySet>
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
</DesignerInfoPropertySet>
</Connection>
<Options>
<DesignerInfoPropertySet>
<DesignerProperty Name="ValidateOnBuild" Value="true" />
<DesignerProperty Name="EnablePluralization" Value="true" />
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
<DesignerProperty Name="UseLegacyProvider" Value="true" />
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
</DesignerInfoPropertySet>
</Options>
<!-- Diagram content (shape and connector positions) -->
<Diagrams></Diagrams>
</Designer>
</edmx:Edmx>
Doh!
So it turns out it didn't like the db types I was using such as unsigned

How to hide playing track name in media player

I need to hide the track name that is getting played inside media player for Internet Explorer. Below is my code.
<object id="mediaPlayer" width="320" height="240" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" name="mediaPlayer">
<param name="URL" value="bcr_ahlacc.mpg" />
<param name="SendPlayStateChangeEvents" value="true" />
<param name="AutoStart" value="true" />
<param name="PlayCount" value="1" />
<param name="stretchtofit" value="true" />
<param name="showstatusbar" value="true" />
<param name="enablepositioncontrols" value="false" />
<param name="showpositioncontrols" value="false" />
<param name="enabletracker" value="false" />
<param name="showcontrols" value="false" />
<param name="showaudiocontrols" value="false" />
<param name="enablecontextmenu" value="true" />
<param name="uiMode" value="Full" />
it shows video name "bcr_ahlacc.mpg" while it is getting played, which I want to hide.
Thanks
Guess you need this:
<param name="ShowDisplay" value="false">
When set to true, it displays information such as the file name.
Info found here

Hide video controls in Silverlight Web player

My Silverlight player code:
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="SmoothStreamingPlayer.xap"/>
<param name="background" value="black" />
<param name="enableGPUAcceleration" value="true" />
<param name="maxFramerate" value="25" />
<param name="minRuntimeVersion" value="4.0.50401.0" />
<param name="autoUpgrade" value="false" />
<param name="InitParams" value="mediaurl=http://stream.com/name.isml/Manifest" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object>
So when I watch video, controls are always visible. Is thre some way to hide them?
This has instructions you to make a custom player where you can specify the controls:
http://msdn.microsoft.com/en-us/magazine/ff646972.aspx

Ajax HtmlEditorExtender image is not uploading

In design page,i am loading HtmlEditorExtender in ajax popup. There i want to load an image. but the image is not loading completely.
i guess: OnImageUploadComplete is not firing.
what could be the problem? and please suggest me the solution??
<ajax:HtmlEditorExtender ID="htmEdtior" DisplaySourceTab="true" OnImageUploadComplete="htmEdtior_OnUploadComplete"
TargetControlID="txtWelcomenotes" runat="server">
<Toolbar>
<ajax:Undo />
<ajax:Redo />
<ajax:Bold />
<ajax:Italic />
<ajax:Underline />
<ajax:StrikeThrough />
<ajax:Subscript />
<ajax:Superscript />
<ajax:JustifyLeft />
<ajax:JustifyCenter />
<ajax:JustifyRight />
<ajax:JustifyFull />
<ajax:InsertOrderedList />
<ajax:InsertUnorderedList />
<ajax:CreateLink />
<ajax:UnLink />
<ajax:RemoveFormat />
<ajax:SelectAll />
<ajax:UnSelect />
<ajax:Delete />
<ajax:Cut />
<ajax:Copy />
<ajax:Paste />
<ajax:BackgroundColorSelector />
<ajax:ForeColorSelector />
<ajax:FontNameSelector />
<ajax:FontSizeSelector />
<ajax:Indent />
<ajax:Outdent />
<ajax:InsertHorizontalRule />
<ajax:HorizontalSeparator />
<ajax:InsertImage />
</Toolbar>
</ajax:HtmlEditorExtender>
Have changed every query string which comes from another page to session..... then it worked..... Problemo solved...