Problem creating a Flex 4.5 mobile Scroller
I have created a 'new' Scroller component by copying all the code from the spark Scroller into a new actionscript file, renaming it, updating import statements and adding any files I need to include to the local directory. I'm having to do this because I need to change something in a private method and basically I don't know any other way.
Everything seem to work fine except a couple of lines in the ensureElementPositionIsVisible method.
This one
var delta:Point = layout.getScrollPositionDeltaToAnyElement(element, elementLocalBounds, entireElementVisible);
and
var eltBounds:Rectangle = layout.getChildElementBounds(element);
I am getting these errors 'Call to a possibly undefined method getChildElementBounds', and 'Call to a possibly undefined method getScrollPositionDeltaToAnyElement'. There is a little bit of code before this that sets the layout variable to either a GroupBase layout object or SkinnableContainer layout object.
if (viewport is GroupBase)
layout = GroupBase(viewport).layout;
else if (viewport is SkinnableContainer)
layout = SkinnableContainer(viewport).layout;
My hunch is that there is a problem with the viewport not being defined somehow, or possibly the skin. If anyone knows how I can fix this so that I can change the Scroller classes private methods, then I would be truly grateful.
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:local="spark.components.*">
<local:Scroller width="800" height="600">
<s:Group id="myGroup">
<s:Image id="img" source="@Embed(source='assets/test.jpg')"/>
</s:Group>
</local:Scroller>
</s:Application>
In the same folder as this mxml file create the folder spark/components and copy the file Scroller.as from the sdk into it. Also copy the spark/styles folder and the file core/version.as. It compiles with no error. Edit scroller.as and the change is seen in the compiled swf.
Similar Messages
-
Flex 4.1 / Flex 4.5 Mobile Scroller ?
Hi all,
I would just like to know:
1) can flash detect if the application is running on mobile?
2) How do I configure a scroller to work for mobile, because when I test my application on mobile I need to drag the scrollers to scroll, it's very bad. As far as I know only Burrito Flex 4.5 can create Mobile Applications.
Do I need to create a Mobile Application so my scrollers work for mobile as they are supposed to or There is some attribute I need to set on the Scroller to change to mobile mode or something like that ?
Thanks in advance!1) can flash detect if the application is running on mobile?
I would have thought that the Capabilities class would tell you, but oddly Android or Blackberry do not seem to be in the list: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabiliti es.html#os
That said, you should not try to develop an app for a specific OS. You should develop for the availability, or lack thereof of the feature, such as a GPS or Camera or touch inputs, etc..
2) How do I configure a scroller to work for mobile, because when I test my application on mobile I need to drag the scrollers to scroll, it's very bad. As far as I know only Burrito Flex 4.5 can create Mobile Applications.Do I need to create a Mobile Application so my scrollers work for mobile
as they are supposed to or There is some attribute I need to set on the
Scroller to change to mobile mode or something like that ?
Use the Mobile Theme. In a Flex Mobile Project and your scrollers should automatically be the "Mobile Scrollers". You may also try setting "InteractiveMode" equal to touch. You could also try adding the mobile theme as a library on your "non mobile project" and setting the skin on your your scroller to use the scroller's mobile skin. -
Flex 4.6 mobile mp3 player....create progressBar
how to create progressBar for mp3 player in flex 4.6 mobile???
help me please!!!!consider this scenario:
1. user click a button and advances to the next view.
2. here clicks a textinput so it focuses and soft keyboard appears
3. user click back key on his phone - soft keyboard retracts (no backkeypressed event caught)
4. textinput still has the focus border around it (why?) and user clicks back key again - application goes in the background for a couple of seconds and closes itself.
I attached the .fxp for the test project
http://dl.dropbox.com/u/4318878/TestBackKey.fxp -
I little confuse about build ANE, I already follow all the direction, but the error always #3500 when I try to call the ANE.
I create ANE using java android.
The tools I use : Flash Builder running on Win-64 win.7. I think I must straight to the point, here what i made it first step by step;
1. I create the JAVA application first, with package senigo.extension.android then I create 3 file, Sample.java, SampleContext.java, PassTextFunction.java
Sample.Java Source Code
package senigo.extension.android;
import android.util.Log;
import com.adobe.fre.FREContext;
import com.adobe.fre.FREExtension;
public class Sample implements FREExtension {
@Override
public FREContext createContext(String arg0) {
// TODO Auto-generated method stub
Log.i("Sample", "createContext");
return new SampleContext();
@Override
public void dispose() {
// TODO Auto-generated method stub
Log.i("Sample", "Dispose");
@Override
public void initialize() {
// TODO Auto-generated method stub
Log.i("Sample", "Initialize");
SampleContext.Java Source Code
package senigo.extension.android;
import java.util.HashMap;
import java.util.Map;
import android.util.Log;
import com.adobe.fre.FREContext;
import com.adobe.fre.FREFunction;
public class SampleContext extends FREContext {
public SampleContext()
Log.i("SampleContext", "constructor");
@Override
public void dispose() {
// TODO Auto-generated method stub
Log.i("SampleContext", "dispose");
@Override
public Map<String, FREFunction> getFunctions() {
// TODO Auto-generated method stub
Log.i("SampleContext", "getFunctions");
Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
functionMap.put("passText", new PassTextFunction());
return functionMap;
PassTextFunction.Java Source Code
package senigo.extension.android;
import com.adobe.fre.FREContext;
import com.adobe.fre.FREExtension;
import com.adobe.fre.FREFunction;
import com.adobe.fre.FREObject;
public class PassTextFunction implements FREFunction {
@Override
public FREObject call(FREContext arg0, FREObject[] arg1) {
// TODO Auto-generated method stub
FREObject result = null;
try{
result = FREObject.newObject("Hello World");
}catch(Exception e)
return result;
after all the file I create the jar file using click right on the tree view >> Export >> Jar File >> Sample.Jar (i already create jar file that just contain the src folder and after i frustrated, i create .jar file contain all the whole project folder but still didn't work out).
Ok, After that I create project Flex Library Project, That's contain the actionscript to call the native and the extension.xml, here the code.
Test.as Source Code, FYI : i already create public function and the static function the error still same #3500.
package senigo.extension.android
import flash.external.ExtensionContext;
public class test
private static var extContext:ExtensionContext = null;
public function test()
trace ("Test Constructor");
if (!extContext)
initExtension();
public static function get passText():String
trace ("Test Pass Text");
if (!extContext)
initExtension();
return extContext.call("passText") as String;
private static function initExtension():void
trace ("Vibration Constructor: Create an extension context");
extContext = ExtensionContext.createExtensionContext("senigo.extension.android", null);
extension.xml source code
FYI: in Flex when i put the Native Extension, they said must have Windows-x86 so I already create 3 ANE, that just contain Android-ARM , Contain Android-ARM and Default, Contain Android-ARM,Default and Windows-x86 but the error still same. I didn't got it where is the error.
<extension xmlns="http://ns.adobe.com/air/extension/3.1">
<id>senigo.extension.android</id>
<versionNumber>1.0.0</versionNumber>
<platforms>
<platform name="Android-ARM">
<applicationDeployment>
<nativeLibrary>Sample.jar</nativeLibrary>
<initializer>senigo.extension.android.Sample</initializer>
<finalizer>senigo.extension.android.Sample</finalizer>
</applicationDeployment>
</platform>
<!-- <platform name="Windows-x86">
<applicationDeployment>
<nativeLibrary>sample.jar</nativeLibrary>
<initializer>senigo.extension.android.Sample</initializer>
<finalizer>senigo.extension.android.Sample</finalizer>
</applicationDeployment>
</platform>
-->
<platform name="default">
<applicationDeployment/>
</platform>
</platforms>
</extension>
After I create it, I copy the .swc file and extension file sample with the Sample.jar file.
I extract the .swc file, copy the library.swf to folder Android-ARM,Default,Windows-86 and I create build.bat that contain the command like this
adt -package -storetype PKCS12 -keystore senigo.p12 -storepass l10nk1ng -target ane senigo.extension.android.ane extension.xml -swc AndroidLib.swc -platform Android-ARM -C ./Android-ARM/ . -platform default -C ./default/ .
the I put the ane to Flex mobile project that I created:
I run it but got error #3500, I really confuse?? what's wrong with my code? is there something I wrong or I Miss it?
Please any one help me.. and when is already ane file can I debug it in Flex Mobile Project? I wanna looks the log.i code that i wrote but i confuse how to looking up in flash builder.
at the end, I wanna said Sorry if my english not very goods, and thanks, because wanna see my problem and thank you very much if You can gave me a solution'sAlex Rekish wrote:
Why you comment Windows-x86 in your extension.xml ?
I think that is a problem. You launch your application on Windows but ANE haven't got Windows-x86 implementation (also you don't include it while packaging). So your application use default implementation. But default implementation don't use any native code and cannot use ExtensionContext. And you got error.
If you don't need Windows-x86 native implementation than you need implement default implementation that different than Android-ARM. You don't need to use ExtensionContext in default implementation.
Thanks for you answer Alex Rekish, Sorry I didn't screen shoot all about the extension.xml. I comment it because the latest ANE that I build is contain Android-ARM and default. so I commented. but I already try it using just ANE that's just contain Android-ARM, with Android-ARM and windows-x86,and Android-ARM, and default, and Android-ARM,default,Windows-x86 the error still the same.
here the screen shoot, I embeded the ane that's i contain Windows-x86
in action script test.as I didn't change it anythings, I just play it on extension.xml to build the ane. is there any mistake over there? I interact with your answer that "If you don't need Windows-x86 native implementation than you need implement default implementation that different than Android-ARM. You don't need to use ExtensionContext in default implementation." I didn't need to user ExtensionContext? is means? in the actionscript? or in extension.xml? can you explained -
I'm exhausted of trying to find a solution to a problem created by Apple. I have moved to icloud following all your instructions and now I can not use my mobile me e-mail address. I can not activate icloud because when I put my e-mail address it answers that somebody is already using my address. I have my old e-mails, but I can not receive any e-mail or send them.
I have contacted Apple Technical Support in Spain and I was sent an e-mail saying that I have to call a phone number and when I call it is always an answering machine who answers that says that I have to pay 50€ for a consultation or wait for 10 minutes. When I have made the consultation it was never mentioned that I have to pay 50€ for a phone consultation. If I don't want to wait I have to pay for the Apple Tecnical Support which cost 250 €, this was not mentioned in the technical support page.
Can somebody let me know how can I contact Apple in another way in order to talk with a human being or chat directly? I was very happy just using my mobileme e-mails, I didn't need any clouds and I was force by Apple to registered if I want to continue using my mobileme e-mail address.Sandra,
See this Apple support document for information on reporting an issue with your iTunes purchase.
http://support.apple.com/kb/HT1933
B-rock -
How to create shortcut programmatically in the mobile from a website using MVC 4
Hi
We have created MVC 4 mobile web application, need to create shortcut from code in MVC 4 to mobile device. So that user need not to create shortcut himself/herself in mobile device.
Thanks in advance.This forum is to discuss problems of C# development. Your question is not related to the topic of this forum.
You'll need to post it in the dedicated ASP.Net Forum
http://forums.asp.net for more efficient responses, where you can contact ASP.NET experts. Thanks for understanding. -
Flex 4.6 mobile broke TextInput
I'm currently in the process of upgrading a Flex 4.5 mobile project to 4.6 and have run into issues with TextInput's.
Currently on most of my views you cannot click(tap) a TextInput and insert text. The field does not seem to take focus and no text appears when you type. I've tried this on a phone as well as on my computer. The weird thing about this is that I have two views where the TextInput's seem to be working. I have also removed all code, MXML and AS3, from a view where input's don't seem to be working and replaced it with a generic TextInput. Even after doing this the text field doesn't seem to be working.
I have tried to reproduce this outside of this project but can't seem to be able to. Anyone have any idea what would be causing this?I have the same issue but isolated in a very simple app. I havent tested it in Android, but in iOS it is VERY Buggy...
you just need to have this to reproduce:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:layout>
<s:VerticalLayout paddingLeft="15" paddingRight="15" paddingTop="15" paddingBottom="15" />
</s:layout>
<s:Scroller width="100%" height="100%">
<s:VGroup width="100%" height="100%">
<s:TextInput id="ui_firstName" prompt="First Name" />
<s:TextInput id="ui_lastName" prompt="Last Name" />
<s:TextInput id="ui_firstName2" prompt="First Name" />
<s:TextInput id="ui_lastName2" prompt="Last Name" />
<s:TextInput id="ui_firstName3" prompt="First Name" />
<s:TextInput id="ui_lastName3" prompt="Last Name" />
<s:TextInput id="ui_firstName4" prompt="First Name" />
<s:TextInput id="ui_lastName4" prompt="Last Name" />
<s:TextInput id="ui_firstName5" prompt="First Name" />
<s:TextInput id="ui_lastName5" prompt="Last Name" />
<s:TextInput id="ui_firstName6" prompt="First Name" />
<s:TextInput id="ui_lastName6" prompt="Last Name" />
<s:TextInput id="ui_firstName7" prompt="First Name" />
<s:TextInput id="ui_lastName7" prompt="Last Name" />
<s:TextInput id="ui_firstName8" prompt="First Name" />
<s:TextInput id="ui_lastName8" prompt="Last Name" />
<s:TextInput id="ui_firstName9" prompt="First Name" />
<s:TextInput id="ui_lastName9" prompt="Last Name" />
<s:Rect height="500" />
</s:VGroup>
</s:Scroller>
</s:Application> -
How do you create a list without a visible scroll bar?
I'd like to create a list that can be scrolled via the actual list contents like iPhone apps.
How do you go about setting this up in Catalyst?
I could make the whole area the 'track' and put the
returned array of objects on top of the track but then
the 'thumb' needs to be the returned array of objects
as well.
Any thoughts or suggestions welcomed.
Cheers,
-TruceHi Truce,
It may be tricky to use a scrollbar for this. If you think about iPhone-like behavior (or Acrobat-like, perhaps ), you want dragging downward to move the content downward. But when you drag a scrollbar thumb downward, the content moves upward instead. You can "cheat" your way past this by using the transform tool to rotate the vertical scrollbar 180 degrees upside-down.
However, you may still have a few other problems with using a scrollbar. First, having a thumb over top of your list items may make it hard or impossible to click items (without dragging) to select them. Also, when dragging, the items won't move up/down at the same speed as the mouse. This is because the scrollbar's drag range covers the entire list if you move the mouse the full length of the scrollbar... whereas with iPhone-style dragging, moving the mouse this distance will just scroll you one "screenful."
- Peter -
Communicate a Web application (Flex) with a mobile Apllication (Flex)
Hello,
I wonder if it is possible to communicate a Web application (Flex) with a mobile Apllication (Flex).
when I Click on a button in my web application I receive an alert in my mobile application.
if you have any ideas I would be very grateful.
Regards.I tried that but my problem is that the code is so old. At least what I saw. I don't know how old is too old and I'm trying to do things "right." I saw code from 1998, but I don't know if that's still what you do. It might still work, but that doesn't mean it's correct. There's so much out there on Java that so old that half the time I'm not sure what to do because some other technology in J2EE or the latest Java SDK might have come up with a new way to do things. Thanks.
-
Problem Creating Hyperlink to another workbook
I am having a problem creating a hyperlink to a worksheet in another workbook.
Here is what I have done:
Created the master and detail reports in 2 different workbooks.
Executed the master worksheet to display the data
Right clicked the field in the first row where I want to create the hyperlink, and chose Manage Links
Clicked the New Link button
Chose Worksheet for Where do you want to link to?
Clicked Browse by the Destination Worksheet
Clicked the detail report from the list of workbooks but the select button is grayed out
Does anyone have any idea why it won't let me select the detail report to link to?
I have OracleBI Discoverer Plus 10g
Any suggestions would be deeply appreciated.Yes, I did add a parameter to the detail report so that I could get detail just for that one item. The part that is giving me trouble is specifying the Destination workbook/worksheet. I see the detail report when I browse but the Select button is grayed out so I haven't made it to the part where you identify what values to pass to the detail report yet.
-
I would like to create a playlist of some of my voicememos to hear on my iphone5. I have no problem creating the list and can listen on playlist on computer but not when i sync to my phone. How can I listen to voicememos in a playlist on my iPhone?
Hi czigrand,
Thanks for visiting Apple Support Communities.
Currently, you can gift dollar amounts or individual items (EG. songs) on the iTunes Store. See this article for more information:
In the iTunes Store, you can gift a dollar amount or specific music, movies, TV shows, or apps from your iPhone, iPod touch, iPad, Mac, or PC. Follow these steps to send a gift from the iTunes Store.
iTunes: Sending iTunes Gifts
http://support.apple.com/kb/HT2736
Best Regards,
Jeremy -
Problem creating Allocation Table with Reference to a PO
Dear Folks,
I am having problems creating an allocation table with reference to a PO in T-code WA01.
I read the SAP help that some prerequisites need to exist:
==> You can only reference order items flagged as being relevant to a stock split (the Allocation table relevant indicator in the additional item data).
Can anyone advice me where to find this stock split indicator?
Also, can anyone advice me how to reuse an allocation table? For example, I had previously created an allocation table with many articles and various allocation rules. I already generated follow on documents for this table.
Say after 2 weeks, I have the similar requirements that I can make use of the same table, only with minor adjustments to the quantity. How do I create a new allocation table using the existing allocation table data?
Thanks and Regards
JunwenAny idea please?
thanks -
Problem creating Network ACL for a ROLE in Oracle 11gR2
According to Oracle Documentation when you create a new Network ACL you can add privileges to a user or role. I need to create a new ACL for the UTL_SMTP package for a specific role, but when I granted it the users who have that role are still getting the "ORA-24247: network access denied by access control list (ACL)" error when they try to send an email. If I grant the ACL privilege to the same users directly it works fine. Is there any step I'm missing? This is the test I have made on my Solaris 10 - Oracle 11gR2 (11.2.0.3) Standard Edition server:
SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 21 09:31:52 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> CONNECT system/******@testdb
Connected.
SQL> SET LINES 1000
SQL> SELECT * FROM v$version;
BANNER
Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Solaris: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL> COLUMN host FORMAT A20
SQL> COLUMN lower_port FORMAT 99999
SQL> COLUMN upper_port FORMAT 99999
SQL> COLUMN acl FORMAT A40
SQL> COLUMN acl FORMAT A40
SQL> COLUMN principal FORMAT A15
SQL> COLUMN privilege FORMAT A10
SQL> COLUMN is_grant FORMAT A8
SQL> COLUMN status FORMAT A10
SQL> SELECT host, lower_port, upper_port, acl FROM dba_network_acls;
no rows selected
SQL> SELECT acl,principal,privilege,is_grant FROM dba_network_acl_privileges;
no rows selected
SQL> CREATE USER testacl IDENTIFIED BY testacl;
User created.
SQL> GRANT CONNECT TO testacl;
Grant succeeded.
SQL>
SQL> BEGIN
2 dbms_network_acl_admin.create_acl('test_smtp.xml','TEST SMTP ACL','TESTACL',true,'connect');
3 dbms_network_acl_admin.assign_acl('test_smtp.xml','localhost',25);
4 commit;
5 END;
6 /
PL/SQL procedure successfully completed.
SQL> SELECT host, lower_port, upper_port, acl FROM dba_network_acls;
HOST LOWER_PORT UPPER_PORT ACL
localhost 25 25 /sys/acls/test_smtp.xml
SQL> SELECT acl,principal,privilege,is_grant FROM dba_network_acl_privileges;
ACL PRINCIPAL PRIVILEGE IS_GRANT
/sys/acls/test_smtp.xml TESTACL connect true
After creating this ACL I test it like this:
SQL> CONNECT testacl/testacl@testdb
Connected.
SQL> SELECT host, lower_port, upper_port, privilege, status FROM user_network_acl_privileges;
HOST LOWER_PORT UPPER_PORT PRIVILEGE STATUS
localhost 25 25 connect GRANTED
SQL> DECLARE
2 c utl_smtp.connection;
3 BEGIN
4 c := utl_smtp.open_connection('localhost', 25); -- SMTP on port 25
5 utl_smtp.helo(c, 'localhost');
6 utl_smtp.mail(c, 'Oracle11.2');
7 utl_smtp.rcpt(c, '[email protected]');
8 utl_smtp.data(c,'From: Oracle'||utl_tcp.crlf||'To: [email protected]'||utl_tcp.crlf||'Subject: UTL_SMTP TEST'||utl_tcp.crlf||'');
9 utl_smtp.quit(c);
10 END;
11 /
PL/SQL procedure successfully completed.
SQL>
This works fine and I receive the email correctly. Now if I try to do the same thing for a role:
SQL> CONNECT system/******@testdb
Connected.
SQL> BEGIN
2 dbms_network_acl_admin.drop_acl('test_smtp.xml');
3 commit;
4 END;
5 /
PL/SQL procedure successfully completed.
SQL> SELECT host, lower_port, upper_port, acl FROM dba_network_acls;
no rows selected
SQL> CREATE ROLE testacl_role;
Role created.
SQL> GRANT testacl_role TO testacl;
Grant succeeded.
SQL> ALTER USER testacl DEFAULT ROLE ALL;
User altered.
SQL>
SQL> BEGIN
2 dbms_network_acl_admin.create_acl('test_smtp.xml','TEST SMTP ACL','TESTACL_ROLE',true,'connect');
3 dbms_network_acl_admin.assign_acl('test_smtp.xml','localhost',25);
4 commit;
5 END;
6 /
PL/SQL procedure successfully completed.
SQL> SELECT host, lower_port, upper_port, acl FROM dba_network_acls;
HOST LOWER_PORT UPPER_PORT ACL
localhost 25 25 /sys/acls/test_smtp.xml
SQL> SELECT acl,principal,privilege,is_grant FROM dba_network_acl_privileges;
ACL PRINCIPAL PRIVILEGE IS_GRANT
/sys/acls/test_smtp.xml TESTACL_ROLE connect true
SQL>
And now I test it again with the same user:
SQL> CONNECT testacl/testacl@testdb
Connected.
SQL>
SQL> SELECT host, lower_port, upper_port, privilege, status FROM user_network_acl_privileges;
no rows selected
SQL> DECLARE
2 c utl_smtp.connection;
3 BEGIN
4 c := utl_smtp.open_connection('localhost', 25); -- SMTP on port 25
5 utl_smtp.helo(c, 'localhost');
6 utl_smtp.mail(c, 'Oracle11.2');
7 utl_smtp.rcpt(c, '[email protected]');
8 utl_smtp.data(c,'From: Oracle'||utl_tcp.crlf||'To: [email protected]'||utl_tcp.crlf||'Subject: UTL_SMTP TEST'||utl_tcp.crlf||'');
9 utl_smtp.quit(c);
10 END;
11 /
DECLARE
ERROR at line 1:
ORA-24247: network access denied by access control list (ACL)
ORA-06512: at "SYS.UTL_TCP", line 17
ORA-06512: at "SYS.UTL_TCP", line 267
ORA-06512: at "SYS.UTL_SMTP", line 161
ORA-06512: at "SYS.UTL_SMTP", line 197
ORA-06512: at line 4
SQL>
I'm aware that role privileges doesn't apply inside procedures, functions or packages by default, but this is an anonymous block so it should use the active roles for the user. I also tried adding a "dbms_session.set_role('TESTACL_ROLE');" at the beggining of the anonymous PL/SQL block but I got the same access error.
Thanks in advance for any help you can give to me on this question, it would be very hard to grant the ACL to all the individual users as they are more than 1000, and we create more regularly.Thanks for your quick reply... I don't have a problem creating the basic ACL with the privileges granted for a user. The problem appears when I try to create an ACL with privileges for a ROLE. You can see here http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_networkacl_adm.htm#BABIGEGG than the official Oracle documentation states that you can assign the ACL principal to be a user or role:
Parameter
Description
acl
Name of the ACL. Relative path will be relative to "/sys/acls".
description
Description attribute in the ACL
principal
Principal (database user or role) to whom the privilege is granted or denied. Case sensitive.
My issue is that when I try to create the ACL for a role it doesn't work.
Have you ever created an ACL for a role? if so please send me an example or let me know which step I might be missing. Cheers. -
Problem creating hierarchy based on 2 physical dimension tables
I'm having a problem creating 1 logical dimension with a drill-down hierarchy, based on two separate physical dimension tables. The errors I receive when navigating the drill-down hierarchy is:
"Cannot find logical table source coverage for logical columns" &
"Missing join between logical tables".
I'm using OBIEE 10.1.3.4
Here are the details of what I have setup sofar:
Physical layer:
Dimension table DIM_ORG with columns:
-dimension_key
-org_total_code
-org_total_description
-org_detail_code
-org_detail_description
Dimension table DIM_DEPT with columns:
-dimension_key
-dept_total_code
-dept_total_description
-dept_detail_code
-dept_detail_description
Fact table FACT_SALES with columns:
-fk_org
-fk_dept
-sum_sales
Physical Joins:
FACT_SALES.fk_org = DIM_ORG_dimension_key
FACT_SALES.fl_dept = DIM_DEPT.dimension_key
Business Model & Mapping layer:
I created a logical dimension ORG_DEPT. It contains two logical table sources (DIM_ORG & DIM_DEPT) and the following logical columns:
- All Departments (mapped to dept_total_code)
- Organisation (mapped to org_detail_description)
- Organisation Number (mapped to org_detail_code)
- Department (mapped to dept_detail_description)
- Department Code (mapped to dept_detail_code)
The business logical key is based on the combination of Organisation Number & Department Code
The hierarchy I need is: All Departments -> Organisation -> Department so I created the following hierarchy for ORG_DEPT:
- Total Level containing: All Departments
- Organisation Level containing: Organisation Number (defined as the Logical level key) & Organisation (defined als the Drill level key)
- Detail Department Level containing: Department Code (defined as Logical level key) and Department (defined as Drill level key).
In the LTS of the dimension ORG_DEPT I've set the Content levels for the sources:
DIM_ORG : Organisation Level
DIM_DEPT: Detail Department Level
In the LTS no -inner- joins have been added against related physical tables.
I created a logical fact table SALES (based on the physical fact table) and joined it against the logical dimension table ORG_DEPT.
In the LTS the Content level for ORG_DEPT is set against the Detail Department Level. No - inner- joins have been aded against related physical tables.
When I create a report in Answers to test the hierachy and select only 'All Departments' I get the correct dimension value returned. When I try to drill to the next level I get the following ODBC error:
"Cannot find logical table source coverage for logical columns: [All Departments]. Please check more detailed level keys are mapped correctly".
When I create a report in Answers and select both 'All Departments' and 'Sales' I get the correct result. When I try to drill to the next level I get a different ODBC error:
"Missing join between logical tables DIM_DEPT and DIM_DEPT: There must be at least one physical join link between the underlying physical tables".
Any suggestions are welcome!
Thanks!Hello Robert,
Your suggestions were known to me but I still wanted to combine the two physical dimension tables in one logical dimension. So I've played around a bit more and found the solution: In my original setup I had two seperate logical table sources (one for each physical dimension table). The solution was to combine the two logical table sources in one logical table source. I achieved that by logical joining the DIM_DEPT table to the FACT_SALES table and subsequently to the DIM_ORG within the 1 LTS and using inner joins.
Then I created the logical table key (a combination of org_detail_code & dept_detail_code). After that I could create the hierarchy with no problem.
Edited by: The_Dutchman on Nov 4, 2011 9:43 PM -
Facebook actionscript API not working with Flex 4.5 Mobile Project
Will the following API work in a Flex 4.5 mobile project?
http://code.google.com/p/facebook-actionscript-api/
I tried a simple Facebook.int() and I keep getting the following error...
Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
at Error$/throwError()
at flash.external::ExternalInterface$/addCallback()
at com.facebook.graph::Facebook/init()[C:\Users\MikeHunt\Work\facebookGraphApi\api\com\faceb ook\graph\Facebook.as:599]
at com.facebook.graph::Facebook$/init()[C:\Users\MikeHunt\Work\facebookGraphApi\api\com\face book\graph\Facebook.as:165]
at views::LoginView/init()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/views/LoginView.mxml:15]
at views::LoginView/___LoginView_View1_initialize()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/views/LoginView.mxml:3]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\co re\UIComponent.as:13128]
at mx.core::UIComponent/set processedDescriptors()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent .as:1871]
at mx.core::UIComponent/initializationComplete()[E:\dev\4.5.1\frameworks\projects\framework\ src\mx\core\UIComponent.as:7660]
at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7639]
at spark.components::View/initialize()[E:\dev\4.5.1\frameworks\projects\mobilecomponents\src \spark\components\View.as:990]
at views::LoginView/initialize()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\ framework\src\mx\core\UIComponent.as:7485]
at mx.core::UIComponent/addChildAt()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7189]
at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.5.1\frameworks\projects\ spark\src\spark\components\Group.as:2037]
at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.5.1\frameworks\project s\spark\src\spark\components\Group.as:1628]
at spark.components::Group/addElementAt()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\c omponents\Group.as:1387]
at spark.components::Group/addElement()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\com ponents\Group.as:1345]
at spark.components::SkinnableContainer/addElement()[E:\dev\4.5.1\frameworks\projects\spark\ src\spark\components\SkinnableContainer.as:761]
at spark.components::ViewNavigator/createViewInstance()[E:\dev\4.5.1\frameworks\projects\mob ilecomponents\src\spark\components\ViewNavigator.as:1954]
at spark.components::ViewNavigator/commitNavigatorAction()[E:\dev\4.5.1\frameworks\projects\ mobilecomponents\src\spark\components\ViewNavigator.as:1867]
at spark.components::ViewNavigator/commitProperties()[E:\dev\4.5.1\frameworks\projects\mobil ecomponents\src\spark\components\ViewNavigator.as:1236]
at mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\ mx\core\UIComponent.as:8209]
at mx.managers::LayoutManager/validateProperties()[E:\dev\4.5.1\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:597]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:783]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]This is the error because the runtime does not find any way to call Java script that usally is called through External interface. So my guess is you are using a AIR project. U just need to download the latest swc http://code.google.com/p/facebook-actionscript-api/downloads/list for destop in your case and don't forget to but FBJSBridge.js to put in your source that will b used to help AS call Facebook API from AIR runtime
Hope it make some sense
Piyush Negi
Maybe you are looking for
-
How do I create an interactive pdf form my clients can actually use?
In the new CS6 Indesign (which is very easy to use to make forms) I've gone through all the steps to make a beautiful form whose buttons, text fields, and hyperlinks all work (great!) but now I've stumbled across one VITAL problem: the submit form bu
-
My ipod touch 1st gen . needs to be reset the wi-fi
ipod touch - 1st gen . the wi-fi needs to be reset
-
Safari Hangs after deleting :Awesome" but works for few when restrating
Safari Hangs after deleting"Awesome" but works for few minutes once shutdown and restart
-
Are there any risks to use native sql in ABAP to access external DB
here is a requirement to use native sql in abap program to access external DB to load some data into sap. Are there any risks and effects which SAP not recommend ? Can anybody show some official document to me because I want to know some risks and da
-
Macbook Pro got slow after upgrade to 10.9.5 (Mavericks)
Hello, I have updated my Mavericks system to the latest version released recently (10.9.5) and since then my system is much slower than it used to be (with side effect that fan is still active). If I take a look into Activity Monitor, I can see that