How to get the current zoom value in the ID?
Is there a way that can get the current zoom value in InDesign?
Thank you very much.
You could glance at the widget shown in your screenshot, at least when frame MDI (?) is displayed.
The title of the window to kLayoutPresentationBoss, IID_IDOCUMENTPRESENTATION also reflects the value.
Probably the best would be the kLayoutWidgetBoss, IID_IPANORAMA, GetXScaleFactor() - and GetYScaleFactor()!
I'm just trying to imagine how a document would look like if these differ from each other ;-) and, better yet, how to achieve this objective in the user interface.
BTW, only one notification is kDocWorkspaceBoss, Protocol IID_IWINDOW, order kUpdateDocumentUIStateCmdBoss.
Another: there's a kDocWindowTitleModifyService...
Edit: I note once again of course IID_IPANORAMA, observable of the subject kLayoutWidgetBoss.
Dirk
Tags: InDesign
Similar Questions
-
How to get the Position value current sliderField
I'm on SliderField for example following
But the problem is I want to get her current state value after each trip for this I use this code
but it is not updated LabelField with its current value
protected boolean touchEvent (TouchEvent message)
{
System.out.println ("method called touch");
int vall = sixthSlider.getNumStates ();
String txt = Integer.toString (vall);
lbtitle.setText (txt);
fieldChangeNotify (1);
Returns false;
}Two tips:
(1) you use getNumStates where you call getState!
(2) do not substitute the touchEvent at all. SliderField is a field almost entirely executed, so that she calls fieldChangeNotify on the changes of State. Set up a FieldChangeListener, configured to listen on this field and put your logic inside fieldChanged.
Good luck!
-
How to get the value on a model that is defined in the java code in email
Hello
I created a custom code and send email as well to custom component. I can send emails using the method:
InternetFunctions.sendMailTo (EmailID, EmailTemplate, subject, cxt);
But my problem is that I have to get a value in the model of "EmailTemplate" which are defined from java code. but I don't know how to get the value.
I will highlight in the java code by using this code: binder.putLocal ("ErrorApproveRejectMsg", massegeBody);
I'm trying to enhance the model using the code below, but not able to get.
1 < $exec getValue ("#active", "ErrorApproveRejectMsg") $ >
2 < $exec getValue ("#active", ErrorApproveRejectMsg) $ >
3 < getValue ("ErrorApproveRejectMsg") $exec $ >
4 < $exec getValue (ErrorApproveRejectMsg) $ >
5 < getValue ("#local", ErrorApproveRejectMsg) $exec $ >
6 < getValue ("#local", "ErrorApproveRejectMsg") $exec $ >
7 < $ErrorApproveRejectMsg$ >
8 < $exec ErrorApproveRejectMsg$ >
Assuming that cxt will be your Service or execution context object
You can do something like this
DB. PutLocal ("ErrorApproveRejectMsg", "Error");
cxt.setCachedObject ("DataBinder", db);
PageMerger h = new PageMerger (db, cxt);
cxt.setCachedObject ("PageMerger", h);
InternetFunctions.sendMailTo (usersEmail, emailTemplate, emailSubject, cxt);
where db is current databinder object, and you can put any variable custom in the workbook by using the putLocal method.
Thank you
Vikram
-
How to get the value of viewrow by chain
With the help of Jdev11.1.1.5.0 - adfbc - ireport3.0.0
Here I will describe: what I've done.
use jsff (dynamic region) while hitting the af:tree nodes it opens. Fine OK
I had somevo manually wroten Query. and the query is fine no problem with it
I do drag and drop the pacctid correspondent run params vo as selectoncechoicehere i give sample not a original query select * from sometable where acctid = :pacctid
public static vo
Value of data - to pay account, advance
Announcement name - ap, given
in this jsff*page representation* account type : account payable (ap) - select one choice type advance (ad) - select one choice type like this some select once choice and some inputs. Run report - command button
. Java.jsff code <af:selectOneChoice value="#{bindings.ACCT_TYPE.inputValue}" label="Account Type" shortDesc="#{bindings.ACCT_TYPE.hints.tooltip}" id="soc3" required="true" autoSubmit="true" binding="#{backingBeanScope.SUP1040V.soc3}" valuePassThru="true" valueChangeListener="#{backingBeanScope.SUP1040V.ValueChangeListener1}"> <f:selectItems value="#{bindings.ACCT_TYPE.items}" id="si3"/> </af:selectOneChoice> <af:commandToolbarButton text="Export in pdf" id="ctb2"> <af:fileDownloadActionListener method="#{backingBeanScope.SUP1040V.Report}" /> </af:commandToolbarButton>
If I get ap means my report runs. or otherwise it will show an empty page.//while hitting the button following logs are appeared i show it as commented format. public void Report(FacesContext context, OutputStream out) throws IOException,Exception { FacesContext ctx = FacesContext.getCurrentInstance(); HttpServletRequest request = (HttpServletRequest)ctx.getExternalContext().getRequest(); HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse(); ..... BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry(); System.out.println("print binding" +bindings1 ); //while using sop i get this in my log : : print binding ReportsPageFragments_SUP1040VPageDef_WEB_INF_TaskFlows_SUP1040_V_TF_xml_SUP1040_V_TF JUCtrlListBinding listBinding1 = (JUCtrlListBinding)bindings1.get("ACCT_TYPE"); System.out.println("print list bindings" +listBinding1 ); //while using sop i get this in my log : : print list bindings0 Object selectedValue1 = listBinding1.getSelectedValue(); System.out.println("print selected value" + selectedValue1); //while using sop i get this in my log : : print selected valueViewRow [oracle.jbo.Key[AP ]] request.setAttribute("ACCT_TYPE", //here i want the value "AP" in String ); if i use like this means request.setAttribute("ACCT_TYPE", soc1.getValue() ); i get the index value. i need the dataname "ap" so i go above method which say wrotes ... ... request.getRequestDispatcher(response.encodeURL("/sup1040servlet")).forward(request,response); System.out.println("hihihihih"); response.flushBuffer(); ctx.responseComplete(); } public void ValueChangeListener1(ValueChangeEvent valueChangeEvent) { // Add event code here... String AcctType = valueChangeEvent.getNewValue().toString(); System.out.println("AcctType" + AcctType); FacesContext contxt = FacesContext.getCurrentInstance(); valueChangeEvent.getComponent().processUpdates(contxt); BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry(); // Get the sepecific list binding JUCtrlListBinding listBinding1 = (JUCtrlListBinding)bindings1.get("ACCT_TYPE"); // Get the value which is currently selected Object selectedValue1 = listBinding1.getSelectedValue(); System.out.println(selectedValue1); }
How to get the value of class viewrowimpl as string.
Published by: ADF7 on March 24, 2012 07:27ADF7,
I'm not sure that understand what you're up to.
For as far as I understand you want to get the value of display rather than the index
I use this codepublic void StatusChangedListener(ValueChangeEvent valueChangeEvent) { BindingContext lBindingContext = BindingContext.getCurrent(); BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry(); JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("Status"); int newindex = (Integer) valueChangeEvent.getNewValue(); Object row = list.getDisplayData(); // Wichtig um die liste zu laden!!!! Row lFromList = (Row) list.getValueFromList(newindex); Object lAttribute = lFromList.getAttribute("Value"); String newVal = (String) lAttribute; }
to get the value of a component of selectOneChoice...
Timo
-
How to get the values based on the most recent date
Oracle Version 8i
How to get the new_value based on the most recent date
SELECT max (MODIFIED_ON), the Group LOG_ITEM_CHARACTERISTICS by MODIFIED_ON new_value - does not
Please, someone help me
CREATE TABLE LOG_ITEM_CHARACTERISTICS ( CHAR_LOG_ID NUMBER(10) NOT NULL, PIRM_ID VARCHAR2(8) NOT NULL, CONSTANT_FLAG VARCHAR2(1), CHARACTERISTIC_NAME VARCHAR2(25) NOT NULL, TYPE_NAME VARCHAR2(10) NOT NULL, NEW_VALUE VARCHAR2(3000), UOM VARCHAR2(10), MODIFIED_BY VARCHAR2(30), MODIFIED_ON DATE ) SET DEFINE OFF; Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187376, '0307490N', 'N', 'OUTPUT CURRENT', 'PS2030/WVL', '1', 'AMPS', 'EMPXD88', TO_DATE('10/25/1999 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187377, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMPXD88', TO_DATE('09/22/1998 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187378, '0307490N', 'N', 'OUTPUT CURRENT', 'PS2030/WVL', '0', 'AMPS', 'EMDXB88', TO_DATE('09/22/1998 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187384, '0307490N', 'N', 'OUTPUT CURRENT', 'PS2030/WVL', '2', 'AMPS', 'EMAXC29', TO_DATE('11/10/2000 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187385, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55.1', 'VOLTS', 'EMAXC29', TO_DATE('10/19/2001 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_ON) Values (2400742, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '2', 'AMPS', TO_DATE('10/19/2001 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (574093, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '2', 'AMPS', 'EMCTH88', TO_DATE('12/13/2002 11:55:16', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (574094, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMCTH88', TO_DATE('12/13/2002 11:55:16', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (3131486, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '6', 'AMPS', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (3131487, '0307490N', 'N', 'LAST MEASURED DATE', 'PS2030/WVL', '16-12-04', 'DD/MM/YY', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (3131488, '0307490N', 'Y', 'POWER SUPPLY', 'PS2030/WVL', 'ESSENTIAL', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (3131489, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (4759086, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '6', 'AMPS', 'EMRCT88', TO_DATE('11/15/2007 14:33:03', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (4759087, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMRCT88', TO_DATE('11/15/2007 14:33:03', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (4759088, '0307490N', 'N', 'LAST MEASURED DATE', 'PS2030/WVL', '14/11/07', 'DD/MM/YY', 'EMRCT88', TO_DATE('11/15/2007 14:33:03', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6646012, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '5', 'AMPS', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646013, '0307490N', 'Y', 'BATT TEST SET AT 3M', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646014, '0307490N', 'Y', 'CAP ALARM INHIBITED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6646015, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55', 'VOLTS', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646016, '0307490N', 'Y', 'YR ROUTINES REQUIRED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646057, '0307490N', 'Y', 'BATT TEST SET AT 3M', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 13:03:18', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646058, '0307490N', 'Y', 'CAP ALARM INHIBITED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 13:03:18', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646059, '0307490N', 'Y', 'YR ROUTINES REQUIRED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 13:03:18', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648577, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '6', 'AMPS', 'EMPXD88', TO_DATE('01/07/2011 13:35:45', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648578, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55', 'VOLTS', 'EMPXD88', TO_DATE('01/07/2011 13:35:45', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6648579, '0307490N', 'Y', 'YR ROUTINES REQUIRED', 'PS2030/WVL', 'NULL', 'EMPXD88', TO_DATE('01/07/2011 13:35:45', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6648580, '0307490N', 'Y', 'BATT TEST SET AT 3M', 'PS2030/WVL', 'NULL', 'EMPXD88', TO_DATE('01/07/2011 13:36:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6648581, '0307490N', 'Y', 'CAP ALARM INHIBITED', 'PS2030/WVL', 'NULL', 'EMPXD88', TO_DATE('01/07/2011 13:36:10', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648634, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '5', 'AMPS', 'EMPXD88', TO_DATE('01/07/2011 13:51:06', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648635, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55', 'VOLTS', 'EMPXD88', TO_DATE('01/07/2011 13:51:06', 'MM/DD/YYYY HH24:MI:SS')); COMMIT;
user4587979 wrote:
Hi FrankYes, but I had more than 2 tables with item_characteristics, type_characteristics
If there are other tables involved, then CREATE TABLE and INSERT statements for them (for the relevant columns only). You must not post a lot of examples of data; usually just a couple of lines per table is enough to show the problem.
Also post the results desired from these data.What I try to do is, I'm comparing new_value in log_item_characteristics (whichever is most recent) with CHR_VALUE in the item_characteristics and the needs of different output values
I am trying to query is not giving desired out put
Point out some places where the output is wrong and explain how you get good results in these places, using specific examples from the data sample.
select lic.PIRM_ID, ic.CHR_ID, lic.CHARACTERISTIC_NAME, lic.TYPE_NAME, ic.CHR_VALUE, lic.NEW_VALUE, lic.MODIFIED_BY, lic.MODIFIED_ON, ic.CREATED_BY, ic.CREATED_ON,ic.MODIFIED_BY, ic.MODIFIED_ON from log_item_characteristics lic, item_characteristics ic,type_characteristics tc where lic.TYPE_NAME=tc.TYPE_NAME and lic.CHARACTERISTIC_NAME=tc.CHR_NAME and lic.PIRM_ID=ic.PIRM_ID and tc.CHR_ID=ic.CHR_ID and ic.CHR_VALUE <> lic.NEW_VALUE and lic.pirm_id in ('0307490N','0307521C') order by lic.pirm_id
Thank you; It is useful to see the existing query. Really, you have to format your code.
Please can you help me
What you've posted so far is like saying "I'm going 200 meters to the North, and then 500 meters East, but I'm not getting where I want to go." I would have a better chance to help you if you said, 'I'm out of my house, at 100, Elm Street and try to get to the supermarket at Broadway 279. I'm going 200 meters to the North... ', or, even better. "I want to buy a newspaper and some orange juice, so I thought I'd go to a convenience store. I start at my house, at 100, Elm Street... »
Always post some examples of data (CREATE TABLE and INSERT statements, as you did in your first post) and the desired results from these data. Explain how you get these results from these data. -
DVT:pivotFilterBar - how to get the selected values of the filter
Hi all
I have a question: how to get the selected values from the pivot table filter bar programmatically?
I tried to use
but to the edge of the side DATA INCORRECTESdeclarations page, it seems that it will return the cached values.pivotTable.getDataModel().getDataAccess().getValueQDR(startRow, startCol, DataAccess.QDR_WITH_PAGE);
Environment: JDev 11.1.1.3.0 without tasks.
Thank you
MiroslawHello
You can retrieve the value selected in the PivotFilterBar through the PivotFilterBar model, instead of dataaccess:
Download the template of the bar pivot filter instance
QueryDescriptior queryDescriptor = (QueryDescriptor) pivotFilterBar.getValue ();retrieve a list of criterion, each of them is used to fill each lov in the pivot filter bar
ConjunctionCriterion conjunctionCriterion = queryDescriptor.getConjunctionCriterion ();
ListcriterionList = conjunctionCriterion.getCriterionList ();
for (int i = 0; i)<_criterionList.size(); i++)="">
AttributeCriterion = (AttributeCriterion) criterionList.get (i) criterion._selected is the currently selected value
Selected object = criterion.getValues () .get (0);System.out.println (_selected);
}Hope that helps,
Chadwick -
How to get the internal values of Photoshop one ID assigned
I have difficulties to obtain values for the internal settings. It's less hard to set, you can use the Listener Script to get the code to use. Presumably, you use executeActionGet() with an ActionReference. The problem is to know how to build the ActionReference. It doesn't seem to be a lot of documentation on that.
My immediate problem is how to get the parameters of the 3D camera. I know this requires Photoshop Extended, but the principle must be the same. This code sucessfully defines these parameters:
< code >
function setPhotoshopCamera (angleX, angleY, angleZ, posX, posY, posZ) {}
Camera
var idGet3DCamera = stringIDToTypeID ("get3DCamera");
var idSet3DCamera = stringIDToTypeID ("set3DCamera");
var descCamera = new ActionDescriptor();
Camera position
var idKey3DCurrentCameraPosition =
stringIDToTypeID ("key3DCurrentCameraPosition");
var descCameraPosition = new ActionDescriptor();
var idkeythreeDXPos = stringIDToTypeID ("key3DXPos");
descCameraPosition.putDouble (idkeythreeDXPos, posX);
var idkeythreeDYPos = stringIDToTypeID ("key3DYPos");
descCameraPosition.putDouble (idkeythreeDYPos, posY);
var idkeythreeDZPos = stringIDToTypeID ("key3DZPos");
descCameraPosition.putDouble (idkeythreeDZPos, posZ);
var idkeythreeDXAngle = stringIDToTypeID ("key3DXAngle");
descCameraPosition.putDouble (idkeythreeDXAngle, angleX);
var idkeythreeDYAngle = stringIDToTypeID ("key3DYAngle");
descCameraPosition.putDouble (idkeythreeDYAngle, angleY);
var idkeythreeDZAngle = stringIDToTypeID ("key3DZAngle");
descCameraPosition.putDouble (idkeythreeDZAngle, angleZ);
descCamera.putObject (idKey3DCurrentCameraPosition,
(idKey3DCurrentCameraPosition, descCameraPosition);
These must be defined in the ActionDescriptor to make it work,// , but we do not have them
var idkeythreeDCurrentFStop = stringIDToTypeID ("key3DCurrentFStop");
descCamera.putDouble (idkeythreeDCurrentFStop, 0.000000);
var idkeythreeDCurrentFDist = stringIDToTypeID ("key3DCurrentFDist");
descCamera.putDouble (idkeythreeDCurrentFDist, 0.500000);
var idkeythreeDCurrentFocalPointX = stringIDToTypeID ("key3DCurrentFocalPointX");
descCamera.putDouble (idkeythreeDCurrentFocalPointX, 0.500000);
var idkeythreeDCurrentFocalPointY = stringIDToTypeID ("key3DCurrentFocalPointY");
descCamera.putDouble (idkeythreeDCurrentFocalPointY, 0.500000);
var idkeythreeDCurrentFOV = stringIDToTypeID ("key3DCurrentFOV");
descCamera.putDouble (idkeythreeDCurrentFOV, 30.000000);
var idkeythreeDOrthographic = stringIDToTypeID ("key3DOrthographic");
descCamera.putBoolean (idkeythreeDOrthographic, false);
var idkeythreeDOrthographicScale = stringIDToTypeID ("key3DOrthographicScale");
descCamera.putDouble (idkeythreeDOrthographicScale, 6.928203);
var idkeythreeDViewIndexString = stringIDToTypeID ("key3DViewIndexString");
descCamera.putString (idkeythreeDViewIndexString, "");var / / desc = executeAction (idSet3DCamera, descCamera, DialogModes.ALL);
return of ESCR;
}< code >
The problem is that it does not work unless you also set the lower elements. I want to leave what they are currently defined, but I don't know how to get these values. Apart from that, I'll get the values of position of camera beforehand. 9 ID, string or otherwise, this should be necessary are known from the top.
I assume you are using something like:
< code >
Var ref = new ActionReference();
ref.putIndex (idkeythreeDCurrentFStop, idkeythreeDCurrentFStop);
var / / desc = executeActionGet (ref);
< code >However, I was unable to get something to work. I am not sure
- That of the putXXX method to use.
- What to use for the desiredClass, which is the first argument.
Any help would be appreciated.
That you will get the 3DCurrentCameraPositon
var ref = new ActionReference(); ref.putEnumerated( zTID("Lyr "), zTID("Ordn"), zTID("Trgt") ); var desc = executeActionGet(ref).getObjectValue(stringIDToTypeID('layer3D')).getObjectValue(stringIDToTypeID('key3DState')).getObjectValue(stringIDToTypeID('key3DCurrentCameraPosition'));
Which returns a descriptor with the following keys.
Key 0 = key3DXPos: DescValueType.DOUBLETYPE
1 key = key3DYPos: DescValueType.DOUBLETYPE
2 = key3DZPos key: DescValueType.DOUBLETYPE
3 = key3DXAngle key: DescValueType.DOUBLETYPE
Key 4 = key3DYAngle: DescValueType.DOUBLETYPE
5 = key3DZAngle key: DescValueType.DOUBLETYPEAt least with my sample 3D layer. I don't really do a lot with the 3D, so there may be other keys.
-
Can I know how to get the 2 peak values v1 and v2 and 2 duration times t1 t2.
Since there is a small amplitude noise, difficult to use the Max simplely.
May need to use a filter such as wavelets or TREE to Denoise it first. Can I know how to use, any Toolbox in labview. How do the curve smooth first.
Thank you.
I can't watch your vi now (I'm at work), but if your signals are long enough, you might consider a median filter. You can set the number of points before and after use. I found that it is useful for some smoothing problems (not all).
-
How to get the value of a variant as a string
I have an existing codebase, which transmits the values of the user interface to business logic as variants. I was prompted to connect all values passed in this way in a text file. I'm trying to figure out how to get the data as a string to a Variant value without having to deal on the type for the data descriptor. The flag variant the fact, so I think I can, too.
Anyone know how?
Thank you, all! I decided to use the XML approach:
-
using PostDelayedCall how to get the value passed through void * callbackData?
Can someone tell me how to get the data passed through void * callbackData?
The following code, panel_ptr has the right address but still contains zero.
void CVICALLBACK value_changed (void * callbackData)
{
int * panel_ptr;
panel_ptr = callbackData;
calculate_new_value (* panel_ptr);
}int sign;
Panel = 2;
PostDelayedCall (value_changed & Panel, 0.2);
The problem is using the callbackData parameter if it is a pointer, it must be a pointer to something which is still topical at the moment that the callback executes. That is to say, you cannot pass the pointer to a local variable in callbackData as when the callback executes the pointer is no longer valid. You can switch from its value, instead, in this way:
... SomeFunction)
{
int sign;
...
Panel = 2;
PostDelayedCall (value_changed, (void *) Panel, 0.2);
...
}
void CVICALLBACK value_changed (void * callbackData)
{
int panel_ptr;
panel_ptr = (int) callbackData;calculate_new_value (panel_ptr);
return;
}There are many discussions on the forums on callbackData parameter that you might want to read.
-
I use lv 8.5 and teststand 4.0.
I did a step type custom and recorded at the MyTypes.ini in pallets of type.
I specified a default module by opening the properties of the custom step of *.ini type window, then I put some values of the parameters.
T1) when I open teststand and I add the custom step type manaully in seq file, the labview module parameter values are represented.
But, if to use file (create and add support prototype stage), the labview module parameter values has the default value.
Using joint file, how to get the setting custom step type values I put in *.ini?
Q2) each type of step are automatically by name through the use of LoadTypePaletteFilesEx. When I open teststand and I add the custom step type manaully in seq file, the module is loaded automatically. Inside the attachment, I use a prototype of charge and a fixed path where the module labview is to load the labview module.
Can I load module automatically without using a prototype of charge or how can I get a dynamic path of type step?
I solved Q1 for myself by using the mapping tab of the parameter within the configuration to the default module window.
Everyone knows Q2?
Thank you.
-
How to get the value of an editField on onUnfocus()
I want to check the value of an editfield on focusout/focusouthandler(), how to get the value in the onUnfocus() method?
getText
-
How to get the current timestamp in C++ to the BB10 project
Please help me how to get the current timestamp in C++. Thanks for your help!
Following your suggestion,
QTime is only for a day. http://developer.BlackBerry.com/Cascades/reference/QTime.html#details
I found "QDateTime" of references of the API: http://developer.blackberry.com/cascades/reference/qdatetime.html#toTime_t
QDateTime = now QDateTime::currentDateTime();
timestamp long = now.toTime_t ();But I got an error. I searched but no results are clear:
-variable 'QDateTime now' initializer has but
incomplete type
-type incomplete "QDateTime" used in the nested name
specifier ofI am a newbie. So thank you for your help
-
How to get the current wording of the BlackBerry device with the BlackBerry App?
Hello!
I'm new to BlackBerry,
Can u tell me pls, how to get the current language of the device using the program...
PLS, suggest me...
Locale.getDefaultForSystem () will give you the regional settings currently selected.
-
How to get the current location in the event thread?
Hello!
Can U pls tell me how to get the location where the thread object, it is in method() execution of MenuItem. PLS, tell me-
I also used the different thread for the getLocation() method. But I do not have the coords of geo location...
PLS, suggest me-
My code is as below:
private MenuItem getGeoCodes=new MenuItem("Current Coords",100,1){ public void run(){ double[] coords=getLocationCoords(); this.wait(12000); System.out.println("Latitude :"+coords[0]+" "+"Longitude:"+coords[1]); } }; private double[] getLocationCoords(){ Criteria criteria = new Criteria(); criteria.setHorizontalAccuracy(500); criteria.setVerticalAccuracy(500); LocationProvider locationProvider = LocationProvider.getInstance(criteria); Location location=null; new Thread(){ public void run(){ locationProvider.getLocation(60); } } QualifiedCoordinates qualifiedCoordinates=location.getQualifiedCoordinates(); double[] coords=new double[]{qualifiedCoordinates.getLatitude(),qualifiedCoordinates.getLongitude()} ; return coords; }
But I myself NullPointerException. Coordinates get successfully, if we run the location capability in different function, rather than the event thread.
Please help me-
In my opinion, which may be too complicate things a bit. I think he's trying to do is register a LocationListener with his object of LocationProvider. Callback methods, send a message to the UI event thread as follows (no need to spawn threads):
UiApplication.getUiApplication().invokeLater( new Runnable() { public void run() { // This code will execute on the event thread } });
EDIT: If your interval is short, you can consider implementing this executable as a class and store an instance in the front.
Maybe you are looking for
-
Off Cntl + one by chance, how I turn it back on
We can highlight all emails in undesirable say for example and delete them at once or just drag and drop them in a chosen place. I have managed to disable this shortcut very useful and can not find where I did. can someone tell me where to go to turn
-
HP deskjet 5850: HP deskjet 5850
I just upgraded to Windows 10. Since then, I can't print to my printer HP deskjet 5850. He sees it as a device but not as a printer. Any suggestions?
-
printer problems after installing Windows 8.1
HP officejet 6110 do not print afer 8.1 Windows installation... HP support website has no drivers for this printer to download... anyone have any suggestions?
-
LoginWindow suddenly appeared.
I noticed that a black screen appeared as a desktop replacement for the last days which is now called loginwindow. Any ideas?
-
Modal window has a gray border annoying when running
When I opened a sub - VI with the appearance of the window to be 'Modal', a small gray border appears around her. Is there a way to get rid of him?