HypGetMemberInformation in VBA. Does not return the property values.
I tried to use HypGetMemberInformation in VBA to find the level of a member of the grid.
I continued to get zeros even for members who are not level 0 ones.
I went to test HypGetMemberInformation a test connected grid that has members in the first column (column A).
I packed a test routine I ran after you connect the grid manually:
Void TestMemberLevelFind()
Dim line As Integer
Dim MemberProperties Collection As
Dim vtMemberName As String
' Dim vtPropertyName As String
Dim vtPropertyValue As Long
Dim vtPropertyValueString As String
Dim ErrorCode as long
Dim ErrorMessage As String
Define MemberProperties = new Collection
MemberProperties.Add HYP_MI_NAME
MemberProperties.Add HYP_MI_DIM
MemberProperties.Add HYP_MI_LEVEL
MemberProperties.Add HYP_MI_GENERATION
MemberProperties.Add HYP_MI_PARENT_MEMBER_NAME
MemberProperties.Add HYP_MI_CHILD_MEMBER_NAME
MemberProperties.Add HYP_MI_PREVIOUS_MEMBER_NAME
MemberProperties.Add HYP_MI_NEXT_MEMBER_NAME
MemberProperties.Add HYP_MI_CONSOLIDATION
MemberProperties.Add HYP_MI_IS_TWO_PASS_CAL_MEMBER
MemberProperties.Add HYP_MI_IS_EXPENSE_MEMBER
MemberProperties.Add HYP_MI_CURRENCY_CONVERSION_TYPE
MemberProperties.Add HYP_MI_CURRENCY_CATEGORY
MemberProperties.Add HYP_MI_TIME_BALANCE_OPTION
MemberProperties.Add HYP_MI_TIME_BALANCE_SKIP_OPTION
MemberProperties.Add HYP_MI_SHARE_OPTION
MemberProperties.Add HYP_MI_STORAGE_CATEGORY
MemberProperties.Add HYP_MI_CHILD_COUNT
MemberProperties.Add HYP_MI_ATTRIBUTED
MemberProperties.Add HYP_MI_RELATIONAL_DESCENDANT_PRESENT
MemberProperties.Add HYP_MI_RELATIONAL_PARTITION_ENABLED
MemberProperties.Add HYP_MI_DEFAULT_ALIAS
MemberProperties.Add HYP_MI_HIERARCHY_TYPE
MemberProperties.Add HYP_MI_DIM_SOLVE_ORDER
MemberProperties.Add HYP_MI_IS_DUPLICATE_NAME
MemberProperties.Add HYP_MI_UNIQUE_NAME
MemberProperties.Add HYP_MI_ORIGINAL_MEMBER
MemberProperties.Add HYP_MI_IS_FLOW_TYPE
MemberProperties.Add HYP_MI_AGGREGATE_LEVEL
MemberProperties.Add HYP_MI_FORMAT_STRING
MemberProperties.Add HYP_MI_ATTRIBUTE_DIMENSIONS
MemberProperties.Add HYP_MI_ATTRIBUTE_MEMBERS
MemberProperties.Add HYP_MI_ATTRIBUTE_TYPES
MemberProperties.Add HYP_MI_ALIAS_NAMES
MemberProperties.Add HYP_MI_ALIAS_TABLES
MemberProperties.Add HYP_MI_FORMULA
MemberProperties.Add HYP_MI_COMMENT
MemberProperties.Add HYP_MI_LAST_FORMULA
MemberProperties.Add HYP_MI_UDAS
' For line 8 to 83 =
For row = 8-10
vtMemberName = ThisWorkbook.ActiveSheet.Cells (rank 1). Value
For each vtPropertyName in MemberProperties
Code of error = HypGetMemberInformation(ThisWorkbook.ActiveSheet.Name, vtMemberName, vtPropertyName, vtPropertyValue, vtPropertyValueString)
If ErrorCode = 0 Then
MsgBox _
"The worksheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."
"Member name:" & vtMemberName & Chr (13) & _ "."
"Property type:" & vtPropertyName & Chr (13) & _ "."
"Property value:" & vtPropertyValue & Chr (13) & _ "."
"The property string:" & vtPropertyValueString ".
On the other
ErrorMessage = GetReturnCodeMessage (ErrorCode)
MsgBox "SmartView API function HypGetMemberInformation returned an error message:" & Chr (13) & ErrorMessage, vbOKOnly, PrivateConnectionDescription
End If
Next
On the next row
End Sub
The routine produces no result expected.
Only of zeros.
For all properties and all members.
There must be something fundamentally wrong with my code.
The function arguments are correct with regard to the name of journal, the member name and property name.
Value of the property is always 0 and the property value string is always empty.
Two property value arguments are expected to be passed by reference, so I should get some useful information.
No error is generated so that the return error code is always 0.
I guess that some prerequisite so that this function is not satisfied, but what is?
Concerning
Problem solved.
The cause of all evil, as ususal, type mismatch...
Arguments by reference:
vtPropertyValue, vtPropertyValueString
must be declared as variants but returned it to the values are ARRAYS...
After the function call, to loop through these berries extract the real info returned!
In the case of unique value of parameters such as the level of Member just use index 0, for example:
vtPropertyValue (0)
The corrected code is less with parts modified trhe parked in Green:
Void TestMemberLevelFind()
Dim line As Integer
Dim index As Integer
Dim MemberProperties Collection As
Dim vtMemberName As String
Dim vtPropertyName As Variant
Dim vtPropertyValue As Variant
Dim vtPropertyValueString As Variant
Dim ErrorCode as long
Dim ErrorMessage As String
Define MemberProperties = new Collection
MemberProperties.Add HYP_MI_NAME
MemberProperties.Add HYP_MI_DIM
MemberProperties.Add HYP_MI_LEVEL
MemberProperties.Add HYP_MI_GENERATION
MemberProperties.Add HYP_MI_PARENT_MEMBER_NAME
MemberProperties.Add HYP_MI_CHILD_MEMBER_NAME
MemberProperties.Add HYP_MI_PREVIOUS_MEMBER_NAME
MemberProperties.Add HYP_MI_NEXT_MEMBER_NAME
MemberProperties.Add HYP_MI_CONSOLIDATION
MemberProperties.Add HYP_MI_IS_TWO_PASS_CAL_MEMBER
MemberProperties.Add HYP_MI_IS_EXPENSE_MEMBER
MemberProperties.Add HYP_MI_CURRENCY_CONVERSION_TYPE
MemberProperties.Add HYP_MI_CURRENCY_CATEGORY
MemberProperties.Add HYP_MI_TIME_BALANCE_OPTION
MemberProperties.Add HYP_MI_TIME_BALANCE_SKIP_OPTION
MemberProperties.Add HYP_MI_SHARE_OPTION
MemberProperties.Add HYP_MI_STORAGE_CATEGORY
MemberProperties.Add HYP_MI_CHILD_COUNT
MemberProperties.Add HYP_MI_ATTRIBUTED
MemberProperties.Add HYP_MI_RELATIONAL_DESCENDANT_PRESENT
MemberProperties.Add HYP_MI_RELATIONAL_PARTITION_ENABLED
MemberProperties.Add HYP_MI_DEFAULT_ALIAS
MemberProperties.Add HYP_MI_HIERARCHY_TYPE
MemberProperties.Add HYP_MI_DIM_SOLVE_ORDER
MemberProperties.Add HYP_MI_IS_DUPLICATE_NAME
MemberProperties.Add HYP_MI_UNIQUE_NAME
MemberProperties.Add HYP_MI_ORIGINAL_MEMBER
MemberProperties.Add HYP_MI_IS_FLOW_TYPE
MemberProperties.Add HYP_MI_AGGREGATE_LEVEL
MemberProperties.Add HYP_MI_FORMAT_STRING
MemberProperties.Add HYP_MI_ATTRIBUTE_DIMENSIONS
MemberProperties.Add HYP_MI_ATTRIBUTE_MEMBERS
MemberProperties.Add HYP_MI_ATTRIBUTE_TYPES
MemberProperties.Add HYP_MI_ALIAS_NAMES
MemberProperties.Add HYP_MI_ALIAS_TABLES
MemberProperties.Add HYP_MI_FORMULA
MemberProperties.Add HYP_MI_COMMENT
MemberProperties.Add HYP_MI_LAST_FORMULA
MemberProperties.Add HYP_MI_UDAS
' For line 8 to 83 =
For row = 8-10
vtMemberName = ThisWorkbook.ActiveSheet.Cells (rank 1). Value
For each vtPropertyName in MemberProperties
Code of error = HypGetMemberInformation (ThisWorkbook.ActiveSheet.Name, vtMemberName, vtPropertyName, vtPropertyValue, vtPropertyValueString)
If ErrorCode = 0 Then
If IsArray (vtPropertyValue) then
For index = LBound (vtPropertyValue) to UBound (vtPropertyValue)
MsgBox _
"The sheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."
"Member name:" & vtMemberName & Chr (13) & _ "."
"Property type:" & vtPropertyName & Chr (13) & _ "."
"Property" & index & "value table:" & vtPropertyValue (index) & Chr (13) & _
"Property" & index & "string array:" & vtPropertyValueString (index)
Next
On the other
MsgBox _
"The sheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."
"Member name:" & vtMemberName & Chr (13) & _ "."
"Property type:" & vtPropertyName & Chr (13) & _ "."
"Property value:" & vtPropertyValue & Chr (13) & _ "
"The property string:"& vtPropertyValueString"
End If
On the other
ErrorMessage = GetReturnCodeMessage (ErrorCode)
MsgBox "SmartView API function HypGetMemberInformation returned an error message:" & Chr (13) & ErrorMessage, vbOKOnly, PrivateConnectionDescription
End If
Next
On the next row
End Sub
Fortunately we can someone find this useful.
I wish documentation Oracle was a little clearer with more extensive code examples.
Gustaw
Tags: Business Intelligence
Similar Questions
-
Function does not return the correct value
Hi, I'm having a strange problem and hope someone knows how to solve this problem...
I try to send a string to a function in another class and do return to a textfield, so I can add it to a movieclip and on the stage. I use it for several buttons. The problem is when I put that a string in it value returns a string for the previous call to the function that is not the string value that I want to use. Here's the function:
public void replaceMCTxt (mcString:String, xPos:Number,
yPos:Number, rolloverText:Boolean, newFontSize:uint, height: uint, width: uint = false): {TextField
var newMCTxt:TextField = new TextField();
newMCTxt.x = xPos;
newMCTxt.y = yPos;
newMCTxt.width = width;
newMCTxt.height = Height;
var textFormat:TextFormat = new TextFormat();
textFormat.align = _gameModel.screenFontAlign;
textFormat.size = newFontSize;
textFormat.font = _gameModel.screenFont;
textFormat.color = _gameModel.screenFontColor;
newMCTxt.defaultTextFormat = textFormat;
newMCTxt.text = _languageClass.getTranslation (mcString);
newMCTxt.selectable = false;
Return newMCTxt;
}
I try to call with this statement in another class:
_moreGamesTxtField = _updateLanguageClass.
("MORE GAMES", _gameModel.moreGamesTxtXPos, replaceMCTxt
_gameModel.moreGamesTxtYPos, _gameModel.moreGamesTxtWidth,
(_gameModel.moreGamesTxtHeight, _gameModel.moreGamesTxtFontSize);
Instead of giving me a movieclip "MORE GAMES", it gives me a 'PLAY' movieclip, which is what the previous call to the function used. I also had a similar problem in another function where he did the same thing with filtering of different buttons, so I think the problem is in the service, but I'm not programmer to know that it's good enough. If anyone has an idea please let me know. Thank you...
Start the survey using the trace() function to see what value is passed to and returned by some _languageClass.getTranslation ().
-
function in pipeline does not return the first values of immediately?
I'm new to features in the pipeline. I want to get the first results of this function in the pipeline as soon as possible. But in my test case, I get all the lines at the end, when the function ends.
create or replace
dummy function
return DBMS_DEBUG_VC2COLL
PIPELINED - NOTE the keyword in pipeline
is
Start
line of conduct (to_char (sysdate, ' DD-MON-YYYY HH24:MI:SS'));))
DBMS_LOCK. Sleep (90);
line of conduct (to_char (sysdate, ' DD-MON-YYYY HH24:MI:SS'));))
return;
end;
+/+
I expect
+ January 20, 2009 08:32:51 + immediately
a 90-second delay
+ 08:34:21 + 20 January 2009 thereafter.
But I have two lines after 90 sec.
Can I change the behavior of this function somehow, or is this the only default behavior and I have to find other solutions?
Thanks in advance
MartinA parameter in your SQL * Plus has an influence on behavior, specifically the ArraySize.
by your function (pipe_nums), run this:
select * from table(pipe_nums); set arrays 5 select * from table(pipe_nums);
and notice the difference
-
Mosaic Georaster does not return the same values as sources
I have created a mosaic using the plsql block... and when you query the source and the mosaic I get different results...
Any suggestions...
Best regards
Tagle Hugo
-PLSQL
DECLARE
GR sdo_georaster;
BEGIN
INSERT INTO NED_MOSAIC (id, rast)
VALUES (1, sdo_geor.init ('NED_MOSAIC_RDT'))
RETURN rast IN gr.
sdo_geor. Mosaic ("ned", "rast", gr, 'block size = (1024, 1024)', sdo_number_array(-100));
UPDATE ned_mosaic SET rast = gr WHERE id = 1;
END;
/
-QUERIES
SELECT 'source' x, sdo_geor.getCellCoordinate (rast, 0, sdo_geometry (2001,4326, SDO_POINT (-80.290818, 25.753106, null), null, null)) cells.
SDO_GEOR.getCellValue (rast, 5, SDO_GEOMETRY (2001, 4326, SDO_POINT (-80.290818, 25.753106, NULL), NULL, NULL), 1) elevation
OF rm_ent.ned
---
WHERE ned_ref_id IN (SELECT ned_ref_id FROM rm_ent.ned_ref
WHERE sdo_relate (geom, SDO_GEOMETRY (2001, 4326, SDO_POINT (-80.290818, 25.753106, NULL), NULL, NULL), "mask = ANYINTERACT'") = "TRUE" ROWNUM AND < 2) AND ROWNUM < 2
;
SELECT 'mosaic' x, sdo_geor.getCellCoordinate (rast, 0, sdo_geometry (2001,4326, SDO_POINT (-80.290818, 25.753106, null), null, null)) cells.
SDO_GEOR.getCellValue (rast, 5, SDO_GEOMETRY (2001, 4326, SDO_POINT (-80.290818, 25.753106, NULL), NULL, NULL), 1) elevation
OF rm_ent.ned_mosaic;
-RESULTS
X CELLS RISE
------ ----------------------------------------------------- --------------
source MDSYS. SDO_NUMBER_ARRAY (2666,7659) 2.79998779
X CELLS RISE
------ --------------------------------------------------------------------
Mosiac MDSYS. SDO_NUMBER_ARRAY (35066,29259) 2.6000061
Hi Hugo, you check the values of the cells on level 5 of the pyramid. You can check the original cell values to see what is happening?
That is to say, change SDO_GEOR.getCellValue (rast, 5, SDO_GEOMETRY (...
to SDO_GEOR.getCellValue (rast, 0, SDO_GEOMETRY (...
-
11g ws client proxy and Stub does not recognize the property (policy)
Hello
I did a web service in 11g with a security policy and has been at wls and generate a proxy web service with java oracle.j2ee.ws.tools.wsa.Main - genProxy
When I try to add security in proxy ws client I had this error Stub does not recognize the property: weblogic.wsee.security.wss.CredentialProviderList
or this javax.xml.rpc.JAXRPCException error: Stub does not recognize the property: weblogic.wsee.security.bst.serverEncryptCert
Without policies, everything works and credProviders has valid values.
Thanks Edwin
Code of WS
@WebService
@Policy (uri = "policy:Wssp1.2-2007-Wss1.0-UsernameToken-Plain-X509-Basic256.xml")
public class CreditCheck2 {}
@WebMethod
public String echo (String s) {}
return s;
}
}
client proxy WS
private nl.ordina.ws.client.CreditCheck2 _port;
Public CreditCheck2PortClient() throws Exception {}
ServiceFactory factory = new ServiceFactoryImpl();
_port = ((nl.ordina.ws.client.CreditCheck2Service) factory.loadService (nl.ordina.ws.client.CreditCheck2Service.class)) .getCreditCheck2Port ();
}
/**
@param args
*/
Public Shared Sub main (String [] args) {}
try {}
nl.ordina.ws.client.CreditCheck2PortClient myPort = new nl.ordina.ws.client.CreditCheck2PortClient ();
System.out.println ("calling" + myPort.getEndpoint ());
String username = "weblogic";
String password = "weblogic";
String clientKeyStore = "d:/oc4jssl.jks";
String clientKeyStorePass = "Welcome";
String clientKeyAlias = "oc4jssl";
String clientKeyPass = "Welcome";
String serverCertFile = "d:/demoidentity.cer";
List CredProviders = new ArrayList();
X509Certificate serverCert = (X509Certificate), CertUtils.getCertificate (serverCertFile);
CredentialProvider cp = new ClientBSTCredentialProvider (clientKeyStore,
clientKeyStorePass,
clientKeyAlias,
clientKeyPass,
"JKS"
serverCert);
credProviders.add (cp);
CP = new ClientUNTCredentialProvider (username, password);
credProviders.add (cp);
Heel heel = myPort._port (heel);
stub._setProperty (WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);
stub._setProperty (StubPropertyBSTCredProv.SERVER_ENCRYPT_CERT, CertUtils.getCertificate (serverCertFile));
stub._setProperty (WSSecurityContext.TRUST_MANAGER,
new TrustManager() {}
{public boolean certificateCallback (X509Certificate [] string, int validateErr)
Returns true;
}
} );
Add your own code here
} catch (Exception ex) {}
ex.printStackTrace ();
}
}JDeveloper gives you the opportunity to select the type of proxy you want to generate.
You have found this exception because you try to use the heel on a proxy of JAX - WS.
You must either use a JAX - RPC proxy, if you want to use the same code
OR
If you want to use JAX - WS proxy, you must change your code for:
Import javax.xml.ws.BindingProvider;
:Card
rc = (port) .getRequestContext ((BindingProvider));
RC.put (WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);whenever you use something like:
stub._setProperty (WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);
Because your service is JAX - WS, I suggest you create JAX - WS only proxy and change your code and try.
In the case of JAX - WS, you don't need
Heel heel = myPort._port (heel); -
PC Windows 7 does not return the document or the printed page
I had a setting for this in XP control but can't find the page, that I got it.
This occurs in AN application, or a browser. I print from a workbook Excel specific, for example, when I have a number of them opens. The system does not return the workbook that I printed. It's maddening and causes all sorts of questions. Searching the Web for this instant product nothing and I know I can't be the only person who saw this.
It is a platform of Windows 7 in a commercial network environment. I use the snap Menu Addintools classic because I can't stand the Ribbon and never loved. In Windows 7, I run a couple of other supplements that restore the XP the taskbar properly use, so you can work efficiently.
None of the supplements are causing this problem because I was running the same classic Menu Add-in in the XP box and he had the same problem until I found workaround that I don't remember now.
Everyone knows about this problem?
Jeff Lynch
Hello Jeff,.
Please contact the Microsoft community.
As the Windows 7 computer is under the corporate network environment, the issue that you are facing is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.
Please post your question in the TechNet Forum.
Hope the information above has been a useful answer, Mercia back to us if you respect them more.
-
inputText and ouputText does not display the same value
Hello
JDev 11.1.2.4
On my page, I have an inputText and outputText bound to the same link of the attribute. The bind value is defined in a value change listener, and then the two components are updated. Say I put in 2009 for the PeriodFrom, the inputText remains empty, but the outputText shows the 2009. How is possible that the two items related to the same link does not show the same value.
< af:inputText value = "#{bindings." PeriodFrom.inputValue}"required =" #{bindings. " PeriodFrom.hints.mandatory}.
columns = "#{bindings." PeriodFrom.hints.displayWidth}"shortDesc =" #{bindings. " PeriodFrom.hints.tooltip}"id ="id1 ".
autoSubmit = "true" simple = "true" >
< f: validator binding = "#{bindings." PeriodFrom.validator} "/ >"
< / af:inputText >
< af:outputText value = "#{bindings." PeriodFrom.inputValue}"id ="ot3"clientComponent ="true"/ >
Furthermore, I tried to get the RichInputText component and call a getValue on it, and the value returned is 2009. I'm completely lost.
Thank you
I made the fragment of page from scratch. I discovered why the update does not work. This is because the selectOneChoice is inside an af:subform. If I remove the subform, the update works correctly.
shortDesc = "#{bindings." StdcntyCode.hints.tooltip}"id ="soc2"simple ="true"autoSubmit = 'true '.
valueChangeListener = "#{pageFlowScope.identificationSessionEditBean.countryValueChangeListener}" > "
columns = "#{bindings." PeriodFrom.hints.displayWidth}"shortDesc =" #{bindings. " PeriodFrom.hints.tooltip}"id ="id1 ".
autoSubmit = "true" simple = "true" >
columns = "#{bindings." PeriodTo.hints.displayWidth}"shortDesc =" #{bindings. " PeriodTo.hints.tooltip}"id ="id2 ".
autoSubmit = "true" simple = "true" >
-
Prob Winmail.
Receive the error message "the server that you are connected using a security certificate that could not be verified that the certificate CN name does not match the passed value. Do you want to continue? ». This started happening after that my laptop has been reformatted. I have synced with Gmail winmail and followed the instructions to do this correctly. By pressing the tab 'Yes' allows me to use winmail, but it's a little embarrassing.
Using a digital signature? Check the settings under Tools | Options | Security and also tools | Accounts | Mail | Properties | Security.
Also, see here (http://mail.google.com/support/bin/answer.py?hl=en&answer=86382) and make sure that your settings are correct.
Steve
-
Virtual Storage Manager - startTime does not meet the minimum value of 0 error
Hello
Someone at - it a fix for the problem in the region related to programming?
When you attempt to add or change a schedule, we get the following error.
Title: Too small
Text: startTime does not meet the minimum value of 0What another user has said there US no customer impact and workaround has been to change the region of the computer you were using. I tried this and it doesn't work.
This error is now a few years old.
For anyone having this problem, add a parameter string regional en_US to the URL.
For example .../vsphere-client/?locale=en_us
Schedules can now be modified properly.
Here's hoping for a permanent solution in the next major release.
-
: Nom_element and V ('ITEM_NAME') do not return the same value
Hi all
I'm developing a shared application process that is called by an AJAX request.
For the pl/sql code, stored procedure validation e development support I moved the logic inside a database.
So I have this situation:
Application process
...
: MYITEM: = wwv_flow.g_x01; -received setting of ajax call I want to put
...
MY_FUNCTION();
MyFunc
...
v('MYITEM') - here I use value MyItem
...
The problem is that when I call v ('MYITEM') the value I get is the previous and not one that I put with: MYITEM: = wwv_flow.g_x01;
I have the same problem if I set the V ('MYITEM') inside the apex application process.
I saw that it worked right if I use the following to set the value of the element in the application process:
APEX_UTIL. SET_SESSION_STATE('P0_LST_DATA',:P0_LST_DATA);
Is this a bug?
I was expecting to get the value of the item: MONELEMENT and v ('MYITEM') are equivalent...
Thank you
DavideDavide,
If you encode the block like that, you should get the results you expect:
: P100_VAR1: = '1'. : P100_VAR1;
: P100_TEST: =: P100_VAR1;The reason why this block does not give you what you expect:
: P100_VAR1: = '1'. : P100_VAR1;
: P100_TEST: = v ('P100_VAR1');... is that v ('P100_VAR1') returns the current value of the item in the table of PL/SQL State session as it existed before the execution of the block. The assignment to the variable binding: P100_VAR1 has registered only a value in storage variable to bind the dynamic execution at this time and has not yet spread to session state, which is located at the end of the execution of the block. It's a little weird, we know.
Andy,
I figured that the: xxxx points have been settled during the loading of the page with what the source is...
They contain the session state value and can be read or written in notation variable bind.
However, they are updated only in the session when you send page...
They are updated in session state when the particular block is completed and a commit is issued at this time there.
In order to update a piece of code PL/SQL session state, you must use... apex_util.set_session_state.
You must be careful to call it when scoring also bind variable to set the session state may cause one to deny the other. Using one method or the other should work very well.
Scott
-
Change event - why is does not select the current value, just the previous value?
Hello.
I use the script when the user selects a value from the drop box, something visible text (using the ' presence')
I use the change of the event, but it does not work very well. When I select a value, it does not change the text, but if I select another value, it will display the previous selected value.
Why did he not synchronize the value?
Thank you!!
Hi Rafael,.
I don't know if you are using an event well.
mouseExit is something good to use (especially when paired with the mouseEnter), during the change of the visual appearance of an object. For example, a button where the legend is underlined on mouseEnter and not highlighted on mouseExit.
If you want to change the presence of objects on the form that the flat user above the list drop-down, then mouseEnter/mouseExit should work. However, if you want the changes occur once the user selects an item in the drop-down list, I recommend the exit event.
Here are some examples:
https://Acrobat.com/#d=txGF4IAoqmfTKPrLkwybIA
https://Acrobat.com/#d=OzNofi-xFxmpXD1MrVU6rA
https://Acrobat.com/#d=Hi0ZwVgVB1PWbxc6OJ0z4A
Hope these helps,
Niall
-
Writing to the nodes property DAQmx channel does not refresh the channel values
Hi all
I have a riddle. I created a task programmatically in LabVIEW and programmatically added several analog input channels to the task. It's easy.
I wish that my user must be able to modify the individual channels within the task. To this end, I created a set of screws that allow it to change the settings appropriate to the channel (for example, if it is a channel of thermocouple, it can change the type of thermocouple, CRC value, etc... If it is a strain gauge channel, it can change the coefficient of fish and so on). These screws all works beautifully, like the VI where they live.
The specific question that I have is that writing to the channel property nodes refreshes not communication channels. See the images below. The first image is the code that needs to define new channels of communication:
Note that immediately after setting the property nodes, I read their values back, just to see what comes out back.
The second image is an image of the public Service immediately after the execution of this VI. Note that the values read from the channel property nodes did not updated to match to the set of values, but instead kept their initial configuration values:
What I am doing wrong? I fought this for a few days now and I'm stumped.
Thanks for your time!
Diane
Hi, Diane. A week ago, I also had a problem changing the channel properties (not sure that our situtions are exactly comparable, but...). My 'solution' to want to change the appearance of the task was to just throw the original task and recreate all the elements of the task from scratch.
I've not done enough 'experiments' to work when you can and cannot change, but am now much more cautious...
Bob Schor
-
custom validator does not use the property
Hello
I need a validator that validates the entries based on a search in a database. So I created a class that implements the validator. I also inject dao via the property in faces - config.xml, but I do not see the method is called, even if it's public. So I get a NullPointerException on the validate method. What I am doing wrong?
<>validator
my.customValidator < validator-id > < / validator id >
> class validator < org.company.jsf.validator.CustomValidator < / validator-class >
< property >
> property name < theDao < / property-name >
> class property < #{theDao} < / class property >
< / property >
< / validator >
Thank you
DaveI expect 'property-class' classname real being with a complete package of your DAO. It is not a managed bean named "theDAO" JSF, so you can't inject. But why not just build in your support bean, I wonder?
If it's really a JSF managed bean somehow, you would inject it like this:
theDAO #{theDAO} So, using the value attribute.
-
Oracle query of relay and access function call does not return the list
Thanks to aid in a previous post, I received, I created an oracle 10 g feature that returns the list after you run the sql code it contains. It works in oracle, using sql developer.
I need to have the list that he returned to see the place in MS Access via a relay request. It does not work so far. The string for connection etc is ok, I'm able to use passthrough queries to run sql strings correctly. But when I try to call the function through the request of relay and access initially nothing seems to happen (IE no list) and if I try to run again, there is an "ongoing call odbc error. Current operation cancelled "." There are only three records in the table. I'm missing something, someone can he spot?
The application of relay and looks like this
Select * from fn_testvalues of the double
Once that is running in oracle.
To create the test table and 2 functions below.
CREATE TABLE t_values (MyValue varchar2 (10));
Table created
INSERT INTO t_values)
SELECT 'Merced' c1 FROM dual UNION ALL
SELECT "Pixie" dual UNION ALL
SELECT "452" DOUBLE);
3 lines inserted
FUNCTION to CREATE or REPLACE RETURN NUMBER IS fn_isnum(p_val VARCHAR2)
n_val NUMBER;
BEGIN
n_val: = to_number (p_val);
RETURN 1;
EXCEPTION
WHILE OTHERS THEN
RETURN 0;
END;
/
Feature created
table test:
SELECT val, isnum fn_isnum (MyValue)
OF t_values;
VAL ISNUM
---------- ----------
Merced 0
Pixie 0
1 452
Now the function that is called in the application of relay:
create or replace function fn_testvalues
sys_refcursor is back
RC sys_refcursor;
Start
Open rc for
Select t_values.*, fn_isnum (MyValue) t_values IsNum;
Return (RC);
end fn_testvalues;Why not?
satyaki> satyaki>select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>create or replace view bb 2 as 3 select * 4 from emp; View created. Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>select * from bb; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 7521 WARD SALESMAN 7698 22-FEB-81 226.88 500 30 SALESMAN 7654 MARTIN SALESMAN 7698 28-SEP-81 1815 1400 30 SALESMAN 7788 SCOTT ANALYST 7566 19-APR-87 598.95 20 ANALYST 7839 KING PRESIDENT 17-NOV-81 7260 10 PRESIDENT 7844 TURNER SALESMAN 7698 08-SEP-81 2178 0 30 SALESMAN 7876 ADAMS CLERK 7788 23-MAY-87 159.72 20 CLERK 7900 JAMES CLERK 7698 03-DEC-81 1379.4 30 CLERK 7902 FORD ANALYST 7566 03-DEC-81 5270.76 20 ANALYST 7934 MILLER CLERK 7782 23-JAN-82 1887.6 10 CLERK 7566 Smith Manager 7839 23-JAN-82 1848 0 10 Manager 23-JAN-89 7698 Glen Manager 7839 23-JAN-82 1848 0 10 Manager 23-JAN-89 EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 1 boock 12 rows selected. Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>select * 2 from bb 3 where empno = &eno; Enter value for eno: 7521 old 3: where empno = &eno new 3: where empno = 7521 EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 7521 WARD SALESMAN 7698 22-FEB-81 226.88 500 30 SALESMAN Elapsed: 00:00:00.00 satyaki> satyaki>
Kind regards.
LOULOU.
-
Key to the left of the URL does not return the Save password.
I read a lot of discussions and pages on Firefox recording not passwords. I do not have 'private browsing '. I have cookies and history recorded "until they expire". I checked "save passwords". I don't have any exceptions.
When I go to enter a password, no small window opens asking me to save it. However, a little _does_ keys appear. But the key is grayed out and clicking on it does nothing. This isn't 'show' password saver.
I disabled all add-ons, restarted and tried again. It was always the same. The sites are those that work perfectly on my desktop computer, but not on my laptop. The laptop is one that won't save passwords.
It's a Samsung running Windows 7.
If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.
- Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
- Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
Maybe you are looking for
-
HDR-as200v unable to connect to Wifi
So I just got my hdr-as200v and I want to connect my iPhone to it. I installed the application Mobile of PlayMemories and turned on the wifi on the camera. Now, I find the wifi on my phone cameras but I can't connect to it, just know that it could no
-
Printing problem has more than 8500
My Officejet pro 8500 has more has an orange square around the icon wireless on the printer itself. any ideas?
-
Jealousy 5540: Problem load A4 photo paper in Envy 5540
I don't see how to load A4 photo paper in the printer. There is a photo of the top tray, but it's only for smaller papers. If I put photo paper in the main tray, I get a message out-ot-paper when I try to print. All advice appreciated.
-
Operating system for Inspiron 14 3000 Series (Intel)
Why DELL recommend buying window 8.1 Pro instead of unilingual 8.1 window for Inspiron 14 3000 Series (Intel)? Disadvantages I'll go if I choose later?
-
I currently 1154 p7 equipped APU of 3600 A6 Office. The apu was clocked at 2.1 GHZ and 2.4 GHZ turbo stock. My win7 experience index showed side 6.9 for cpu. I installed AMD OVERDRIVE and oc the cpu at 4.0 GHZ and 4.7 GHZ turbo which was the oc maxim