HOw to Get the top level of Hierarchy and count on that basis
hi
i have following tables
desc hr_organizations_units_V
organization_id PRIMARY KEY
name
ORGANIZATION_type
per_org_structure_elements
organization_id_parent FK TO hr_organizations_units_V(ORGANIZATION_ID)
organization_id_child FK TO hr_organizations_units_V(ORGANIZATION_ID)
I HAVE THIS QUERY TO GET PARENT CHILD
SELECT ORGANIZATION_ID_PARENT PARENT,ORGANIZATION_ID_CHILD CHILD,ORGANIZATION_TYPE FROM PER_ORG_STRUCTURE_ELEMENTS OSE,HR_ALL_ORGANIZATION_UNITS AOU WHERE AOU.ORGANIZATION_ID = OSE.ORGANIZATION_ID_CHILD CONNECT BY PRIOR ORGANIZATION_ID_CHILD = ORGANIZATION_ID_PARENT
START WITH ORGANIZATION_ID_PARENT = 82 -- THE GRAND PARENT
ORDER BY ORGANIZATION_ID_PARENT
PARENT CHILD ORGANIZATION_TYPE
82 83 COMPANY
82 143 COMPANY
83 84 DIVISION
83 134 DEPARTMENT
83 135 DEPARTMENT
DESC per_all_assignments_f
ASSIGNMENT_NUMBER
ORGANIZATION_ID FORIGN KEY TO HR_ALL_ORGANIZATION_UNITS
THE ASSIGNMENTS ARE ASSIGNED ON DEPARTMENT LEVEL.
MY REQUIREMENT IS THAT I WANT TO GET THE
1)TOTAL NO OF ASSIGNMENTS ON THE DIVISION LEVEL
2)TOTAL NO OF ASSIGNMENTS ON THE COMPANY LEVEL
3)REPORTS LIKE PAY SLIP ETC I WANT TO GET THE ABOVE TWO LEVELS OF ORGANIZATION FOR EACH EMPLOYEE I.E DIVISION AND COMPANY OF
OF THE EMPLOYEE'S DEPARTMENT.
I WILL REALLY APPRECIATE ANY HELPING HAND.
REGARDS
Here are a few ways to get what I think you are asking for now. If this is not what you want, then please provide a complete example of what you want, including sample data, and the complete query result, including numbers, based on that data, that you want, as I have done below.
scott@ORA92> -- test data:
scott@ORA92> SELECT * FROM hr_all_organization_units
2 /
ORGANIZATION_ID NAME ORGANIZATIO
82 GRANDPARENT GRANDPARENT
83 COMPANY 83 COMPANY
84 DIVISION 84 DIVISION
134 DEPARTMENT 134 DEPARTMENT
135 DEPARTMENT 135 DEPARTMENT
143 COMPANY 143 COMPANY
6 rows selected.
scott@ORA92> SELECT * FROM per_org_structure_elements
2 /
ORGANIZATION_ID_PARENT ORGANIZATION_ID_CHILD
82 83
82 143
83 84
84 134
84 135
scott@ORA92> SELECT * FROM per_all_assignments_f
2 /
ASSIGNMENT_NUMBER ORGANIZATION_ID
1 83
2 84
3 134
4 135
5 143
6 84
6 rows selected.
scott@ORA92> -- method 1:
scott@ORA92> COLUMN name FORMAT A35
scott@ORA92> SELECT RPAD ('.', 5 * (LEVEL - 1), '.') || aou.name AS name,
2 (SELECT SUM (the_count)
3 FROM (SELECT organization_id_parent,
4 organization_id_child,
5 COUNT (*) AS the_count
6 FROM per_org_structure_elements,
7 per_all_assignments_f
8 WHERE per_org_structure_elements.organization_id_child =
9 per_all_assignments_f.organization_id
10 GROUP BY organization_id_parent,
11 organization_id_child) t
12 START WITH t.organization_id_child =
13 ose.organization_id_child
14 CONNECT BY PRIOR t.organization_id_child =
15 t.organization_id_parent) AS assignments_count
16 FROM PER_ORG_STRUCTURE_ELEMENTS OSE,
17 HR_ALL_ORGANIZATION_UNITS AOU
18 WHERE AOU.ORGANIZATION_ID = OSE.ORGANIZATION_ID_CHILD
19 START WITH aou.name = '&company_name'
20 CONNECT BY PRIOR ose.ORGANIZATION_ID_CHILD = ose.ORGANIZATION_ID_PARENT
21 /
Enter value for company_name: COMPANY 83
old 19: START WITH aou.name = '&company_name'
new 19: START WITH aou.name = 'COMPANY 83'
NAME ASSIGNMENTS_COUNT
COMPANY 83 5
.....DIVISION 84 4
..........DEPARTMENT 134 1
..........DEPARTMENT 135 1
scott@ORA92> -- method 2:
scott@ORA92> COLUMN name FORMAT A35
scott@ORA92> WITH sub_query AS
2 (SELECT ose.organization_id_parent, ose.organization_id_child,
3 aou.name, COUNT (*) AS assignments
4 FROM per_org_structure_elements ose,
5 hr_all_organization_units aou,
6 per_all_assignments_f aaf
7 WHERE ose.organization_id_child = aou.organization_id
8 AND ose.organization_id_child = aaf.organization_id
9 AND aou.organization_id = aaf.organization_id
10 GROUP BY ose.organization_id_parent, ose.organization_id_child, aou.name)
11 SELECT RPAD ('.', 5 * (LEVEL - 1), '.') || name AS name,
12 (select SUM (assignments)
13 from sub_query
14 start with organization_id_child = t.organization_id_child
15 connect by prior organization_id_child = organization_id_parent)
16 AS assignments_count
17 FROM sub_query t
18 START WITH name = '&company_name'
19 CONNECT BY PRIOR ORGANIZATION_ID_CHILD = ORGANIZATION_ID_PARENT
20 /
Enter value for company_name: COMPANY 83
old 18: START WITH name = '&company_name'
new 18: START WITH name = 'COMPANY 83'
NAME ASSIGNMENTS_COUNT
COMPANY 83 5
.....DIVISION 84 4
..........DEPARTMENT 134 1
..........DEPARTMENT 135 1
scott@ORA92> -- method 3:
scott@ORA92> COLUMN name FORMAT A35
scott@ORA92> CREATE OR REPLACE VIEW sub_query AS
2 SELECT ose.organization_id_parent, ose.organization_id_child,
3 aou.name, COUNT (*) AS assignments
4 FROM per_org_structure_elements ose,
5 hr_all_organization_units aou,
6 per_all_assignments_f aaf
7 WHERE ose.organization_id_child = aou.organization_id
8 AND ose.organization_id_child = aaf.organization_id
9 AND aou.organization_id = aaf.organization_id
10 GROUP BY ose.organization_id_parent, ose.organization_id_child, aou.name
11 /
View created.
scott@ORA92> SELECT RPAD ('.', 5 * (LEVEL - 1), '.') || name AS name,
2 (select SUM (assignments)
3 from sub_query
4 start with organization_id_child = t.organization_id_child
5 connect by prior organization_id_child = organization_id_parent)
6 AS assignments_count
7 FROM sub_query t
8 START WITH name = '&company_name'
9 CONNECT BY PRIOR ORGANIZATION_ID_CHILD = ORGANIZATION_ID_PARENT
10 /
Enter value for company_name: COMPANY 83
old 8: START WITH name = '&company_name'
new 8: START WITH name = 'COMPANY 83'
NAME ASSIGNMENTS_COUNT
COMPANY 83 5
.....DIVISION 84 4
..........DEPARTMENT 134 1
..........DEPARTMENT 135 1
Similar Messages
-
How to get the values of all elements and sub elements from following xml
how to get the values of all elements and sub elements from following xml...
<?xml version="1.0" encoding="UTF-8" ?>
<List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
<TransactionID>TransactionID</TransactionID>
<Match>
<Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
<List_Matched_Field>
<FSFM_Matches>
<NUMBER>NUMBER</NUMBER>
<TERROR>TERROR</TERROR>
<TU>TU</TU>
<NAMEU>NAMEU</NAMEU>
<DESCRIPT>DESCRIPT</DESCRIPT>
<KODCR>KODCR</KODCR>
<KODCN>KODCN</KODCN>
<AMR>AMR</AMR>
<ADDRESS>ADDRESS</ADDRESS>
<SD>SD</SD>
<RG>RG</RG>
<ND>ND</ND>
<VD>VD</VD>
<GR>GR</GR>
<YR>YR</YR>
<MR>MR</MR>
<CB_DATE>CB_DATE</CB_DATE>
<CE_DATE>CE_DATE</CE_DATE>
<DIRECTOR>DIRECTOR</DIRECTOR>
<FOUNDER>FOUNDER</FOUNDER>
<TERRTYPE>TERRTYPE</TERRTYPE>
</FSFM_Matches>
<OfacMatchDetails>
<UID>UID</UID>
<TITLE>TITLE</TITLE>
<SDNTYPE>SDNTYPE</SDNTYPE>
<REMARKS>REMARKS</REMARKS>
<ID_UID>ID_UID</ID_UID>
<IDTYPE>IDTYPE</IDTYPE>
<IDNUMBER>IDNUMBER</IDNUMBER>
<IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
<ISSUEDATE>ISSUEDATE</ISSUEDATE>
<EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
<ADDRESS1>ADDRESS1</ADDRESS1>
<ADDRESS2>ADDRESS2</ADDRESS2>
<ADDRESS3>ADDRESS3</ADDRESS3>
<CITY>CITY</CITY>
<STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
<POSTALCODE>POSTALCODE</POSTALCODE>
<COUNTRY>COUNTRY</COUNTRY>
</OfacMatchDetails>
</List_Matched_Field>
</Match>
</List_AML_Finacle>avoid multi post
http://forum.java.sun.com/thread.jspa?threadID=5249519 -
I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.
I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.
-
How to get the top most community given a sub community ID
Hi,
I have developed a custom navigation scheme with top level communities as top nav and the sub communities of the top level communities in the left nav.
Now when the user selects a particular sub community in the left nav the top level community in the top nav should be highlighted.
I am able to get the first level parent community of the current community but not able to recursively reach the top most community.
I have tried the following piece of code
IPTCommunityManager ptOM = (IPTCommunityManager) ptMgr.GetInterfaces("IPTCommunityManager");
IPTCommunityInfo ptCommunityInfo = ptOM.CachedOpenCommunityInfo(communityID ,true);
IPTQueryResult result = ptCommunityInfo.GetParentCommunity() ;
I dont know how to get the communityID from result
Any pointers in this regards will be very helpful
ThanksTo get community ID from the result just use this code:
int nCommID = result.ItemAsInt(0, PT_PROPIDS.PT_PROPID_OBJECTID);
The NavigationModel class in portalpages project has a wealth of code dealing with these types of tasks. Look around there if you don't know how to code something, it is a good source for examples.
You would then get the CommunityInfo object for the parent community ID and call GetParentCommunity again until you reach the top. The IPTCommunityInfo objects are cached so the performance will not be too bad. -
How to get the TOP MAT from a component material of BOM list?
I only kown a sub material of a BOM Llist & not sure its level in the TOP MAT's BOM.
How can i get the TOP MAT of this sub material?
Any BAPI or Function?
TKS a million~~~HI .. in my view you should ask your ABAP to help you with a small program to solve your purpose, i am not aware of any system available t-code/ program ..... hence this is what we also did at client place.
-
Bom explosion how to get the least level every stufe = 1
material number : 2t67363633
following is the bom of that materials
the below ouput is i got it from cs12
.1 010 6631030681
..2 010 INL025000650
..2 020 IN6631030681
.1 020 6650002622
..2 010 950002621GV
.1 030 6682500491
.1 040 712758079
but in cs13 the following output i got only the following for the same materials
.1 010 6631030681
..2 010 INL025000650 -
i got this
..2 020 IN6631030681 -
i got this
.1 020 6650002622
..2 010 950002621GV -
i got this
.1 030 6682500491 -
i got this
.1 040 712758079 -
i got this
requirement is take the least items in every level1 items
supouse if the level1 item doesnt have any subitems ,we ll take this one also
following is the detiails for the senario,using this to restrict and how to get the cs13 above output
level fld2 fld3 fld4 fld5 fld6 fld7 componentname
.1 0000001 00000097 001 00002 0001 010 6631030681 -
..2 0000001 00000093 002 00002 0001 010 inl025000650
..2 0000002 00000093 002 00004 0002 020 in6631030681-1560
.1 0000002 00000097 001 00004 0002 020 6650002622
..2 0000001 00000095 002 00002 0001 010 950002621gv
.1 0000003 00000097 001 00006 0003 030 6682500491
<b> .1 0000004 00000097 001 00008 0004 040 712758079</b>
i here attached my code for ur review
i got the output without the last leve i bold it. is there any logic to solve the problem
TABLES : MAST.
DATA: BEGIN OF ISTPO OCCURS 1000.
INCLUDE STRUCTURE STPOX.
DATA: END OF ISTPO.
DATA: W_TOPMAT LIKE CSTMAT.
SELECT-OPTIONS : P_MATNR FOR MAST-MATNR.
PARAMETERS : P_WERKS TYPE MAST-WERKS.
DATA : BEGIN OF ITAB OCCURS 0,
MATNR LIKE MAST-MATNR,
WERKS LIKE MAST-WERKS,
END OF ITAB.
DATA: IT_STB LIKE ISTPO OCCURS 0 WITH HEADER LINE.
data : istpofinal like istpo occurs 0 with header line.
data : istpotemp like istpo occurs 0 with header line.
START-OF-SELECTION.
CLEAR ISTPO. REFRESH ISTPO.
SELECT MATNR WERKS FROM MAST INTO TABLE ITAB
WHERE MATNR IN P_MATNR AND WERKS = P_WERKS.
LOOP AT ITAB.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
MEHRS = 'X'
MMAPS = ' '
MDMPS = ' '
BREMS = 'X'
DATUV = SY-DATUM
MTNRV = ITAB-MATNR
WERKS = P_WERKS
EMENG = '1'
STKKZ = ' '
FBSTP = ' '
FTREL = ' '
IMPORTING
TOPMAT = W_TOPMAT
TABLES
STB = ISTPO
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
OTHERS = 8.
IF SY-SUBRC = 0.
WRITE:/ 'MaterialNumber' ,21 'Description'.
SKIP 1.
endif.
WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
data : ttabix like sy-tabix,
tstufe like stpox-stufe.
data : len type i.
istpotemp[] = istpo[].
describe table istpotemp lines len.
LOOP AT ISTPO .
WRITE :/ ISTPO-STPOZ,
ISTPO-STLKN,
ISTPO-POSNR,
ISTPO-IDNRK,
ISTPO-OJTXP,
ISTPO-MENGE,
ISTPO-MEINS.
if sy-tabix = len.
move-corresponding istpo to istpofinal.
append istpofinal.
exit.
endif.
ttabix = sy-tabix - 1 .
if tstufe ge istpo-stufe.
read table istpotemp index ttabix.
move-corresponding istpotemp to istpofinal.
append istpofinal.
endif.
tstufe = istpo-stufe.
ENDLOOP.
*endif.
endloop.
skip 3.
loop at istpofinal.
WRITE :/ ISTPOFINAL-STPOZ,
ISTPOFINAL-STLKN,
ISTPOFINAL-POSNR,
ISTPOFINAL-IDNRK,
ISTPOFINAL-OJTXP,
ISTPOFINAL-MENGE,
ISTPOFINAL-MEINS.
endloop.Hi Shiba,
We got the required list,
But while using select-option to view multiple values the list of datas in the ISTPOFINAL gets displayed like the given below.
example
Material1
.........Component 1
.........Component 2
Material 2
.........Component 1......... From Material 1
.........Component 2......... From Material 1
.........Component 3
.........Component 4
Material 3
.........Component 1......... From Material 1
.........Component 2......... From Material 1
.........Component 3......... From Material 2
.........Component 4......... From Material 2
.........Component 5
.........Component 6
Like this it goes on for the entire list at the tie of displaying the ISTPOFINAL.
We tried evn by deleting the adjacent duplicate values still it gets displayed.
is there any problm with the loop or is it the problm with the ending of the loop.
Pls suggest us.
LOOP AT ITAB.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
MEHRS = 'X'
MMAPS = ' '
MDMPS = ' '
BREMS = 'X'
DATUV = SY-DATUM
MTNRV = ITAB-MATNR
WERKS = P_WERKS
EMENG = '1'
STKKZ = ' '
FBSTP = ' '
FTREL = ' '
IMPORTING
TOPMAT = W_TOPMAT
TABLES
STB = ISTPO
MATCAT = MATCAT
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
OTHERS = 8.
WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
data : ttabix like sy-tabix,
tstufe like stpox-stufe.
data : len type i.
istpotemp[] = istpo[].
describe table istpotemp lines len.
loop at istpo.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
MEHRS = 'X'
MMAPS = ' '
MDMPS = ' '
BREMS = 'X'
DATUV = SY-DATUM
MTNRV = ISTPO-IDNRK
WERKS = P_WERKS
EMENG = '1'
STKKZ = ' '
FBSTP = ' '
FTREL = ' '
IMPORTING
TOPMAT = W_TOPMAT
TABLES
STB = ISTPOTEMP
MATCAT = MATCAT
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
OTHERS = 8.
if sy-subrc ne 0.
move-corresponding istpo to istpofinal.
append istpofinal.
clear: istpo, istpofinal.
else.
continue.
clear: istpo, istpofinal.
endif.
*break-point.
delete adjacent duplicates from istpofinal.
endloop.
loop at istpofinal.
WRITE :/ ISTPOFINAL-STPOZ,
ISTPOFINAL-STLKN,
ISTPOFINAL-POSNR,
ISTPOFINAL-IDNRK,
ISTPOFINAL-OJTXP,
ISTPOFINAL-MENGE,
ISTPOFINAL-MEINS.
clear: istpofinal.
endloop.
endloop. -
How to get the domain level values in web ui pick list
Hi Gurus,
I was added one field through EEWB transaction and i was maintained the values in domain level.now my requirement is i was added this field in web ui.but i don't know how to get the values which are we maitained in domain level. pls send me the solution it is very needful for me..
Regards,
Bixamaiah.BHi Bussa,
Refer to the documentation on drop-down Boxes in UI here:
CRM Web Client UI Framework [original link is broken]
This should help you, but do get back if you face any issues in implementing the same.
Regards,
Padma Guda -
How to get the max(level)?
Hi,
The below query returns level and other selected columns.
I need to get the max(level) 2nd column value in the below example.How to modify the query?
Ex
Level max(level) id
1 5 101
1 5 102
1 5 103
2 5 104
2 5 105
3 5 107
4 5 120
5 5 134
5 5 280
SELECT DISTINCT level lvl
,form_frms.emp_id
,form_frms.ing_emp_id
,form_frms.prve_id
,CASE
WHEN (select div_dn
from epm_prod epm
where epm.emp_id= form_frms.ing_emp_id) ='Y' THEN DIV_DN
WHEN NVL((select distinct 'N'
from emp_pro_version prvv
where prvv.is_py='Y' and
prvv.IS_VERSION ='N' and
prvv.emp_id=form_frms.ing_emp_id) ,'Y')='N'
THEN 'Y'
WHEN NVL((select distinct 'Y'
from employee epm
where emp.emp_id=form_frms.ing_emp_id
and epm.status<>'NEW') ,'N') ='Y'
THEN 'Y'
ELSE 'N'
END
ELSE 'N'
END UN_KNOWN_ID
FROM (SELECT empvv1.prvv_id
FROM emp_view_version empvv1
WHERE empvv1.is_version = 'Y'
) form_frms
START WITH form_frms.emp_id = :lv_emp_id
CONNECT BY PRIOR form_frms.ing_emp_id = form_frms.emp_id
ORDER BY level DESC, form_frms.emp_id,UNKNOWN_ID ASC;
Edited by: shivasha on Feb 9, 2013 12:24 AMMaybe
select lvl,
max(lvl) over (order by null rows between unbounded preceding and unbounded following) max_level,
emp_id,
unknown_id
from (SELECT DISTINCT
level lvl,
form_frms.emp_id,
form_frms.ing_emp_id,
form_frms.prve_id,
CASE WHEN (select div_dn
from epm_prod epm
where epm.emp_id = form_frms.ing_emp_id
) = 'Y'
THEN DIV_DN
WHEN NVL((select distinct 'N'
from emp_pro_version prvv
where prvv.is_py = 'Y'
and prvv.IS_VERSION = 'N'
and prvv.emp_id=form_frms.ing_emp_id
),'Y'
) = 'N'
THEN 'Y'
WHEN NVL((select distinct 'Y'
from employee epm
where emp.emp_id = form_frms.ing_emp_id
and epm.status != 'NEW'
),'N'
) = 'Y'
THEN 'Y'
ELSE 'N'
END UNKNOWN_ID
FROM (SELECT empvv1.prvv_id
FROM emp_view_version empvv1
WHERE empvv1.is_version = 'Y'
) form_frms
START WITH form_frms.emp_id = :lv_emp_id
CONNECT BY PRIOR form_frms.ing_emp_id = form_frms.emp_id
ORDER BY lvl DESC,emp_id,UNKNOWN_IDRegards
Etbin -
Help: How to make the top level navigation into vertical at the left panel
We have a need to change the top-level and 2nd-level navigation bars (horizontal)
into the nodes on the left navigation panel (vertical).
We find some way but it is a very extensive job.
Is there any way to do it quickly?
Thanks a lot! Points guaranteed.Hi,
Try to develop your own menu by using Navigation Tag Libraries. Check this link :
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/42/f35146a7203255e10000000a1553f7/frameset.htm">Navigation Tag Library</a>
There is also sample codes. You can start your project from this codes.
Regards
Abdul. -
How to get the inheritance level for an atribute value
hi,
i have to get the inheritance level for an attribute value for a given user in Org.struc.Hi,
Check out table T77OMATTUS for inheritance level for an attributes
Regards,
Neelima -
How to get the value from a JavaScript and send the same to Java file?
Hi.
How to get the value from a JavaScript (this JS is called when an action invoked) and send the value from the JS to a Java file?
Thanks and regards,
Leslie VYes, I am trying with web application.
In the below code, a variable 'message' carries the needed info. I would like to send this 'message' variable with the 'request'.
How to send this 'message' with and to the 'request'?
Thanks for the help :-)
The actual JS code is:
function productdeselection()
var i=0;
var j=0;
var deselectedproduct = new Array(5);
var message = "Are you sure to delete Product ";
mvi=document.forms[0].MVI;
mei=document.forms[0].MEI;
lpi=document.forms[0].LPI;
if(null != mvi)
++i;
if(null != mei )
++i;
if(null != lpi)
++i;
if(null != mvi && mvi.checked)
deselectedproduct[++j]="MVI?";
if(null != mei && mei.checked)
deselectedproduct[++j]="GAP?";
if(null != lpi && lpi.checked)
deselectedproduct[++j]="LPI?";
if( 0!=j)
if(i!=j)
for (x=0; x<deselectedproduct.length; x++)
if(null != deselectedproduct[x])
message =message+ "-" +deselectedproduct[x];
alert(message);
else
//alert(" You cannot remove all products!");
return false;
return true;
} -
How to get the data of Open Opportunities and Closed Opportunities
Hi Guys,
i'm studying about Sales Opportunities in SAP BusinessOne.
i'm able to get the data about Sales Opportunities(i enterd), Opportunities Report and Lost Opportunities.
But i dont know how to get information about Open Opportunities Reports and Closed Opportunitiesn Reports.i'm unable to find even their names of tables.
plz send a reply.................
with regards,
santhThanq Alexey for ur Helpful Answer,
i'm aware about execution of a query in the Query Analyzer of SQL Server.but i dont know how to move to ShowDebugInformation Menu.
can i find it in the SAP Business One Tool. or do i need
to check any data base help given by B1(Ex:- REFDB2004).
plz give answer for this also............
with regards,
santh -
How to get the local file system path of an image that loaded into the image component in cq5?
Hi,
I'm having hard time uploading image from filesystem where as drag and drop works.
I'm not getting a path of image selected from filesystem.
here is my code..
private String populateImage() throws Exception {
if (currentNode != null && currentNode.isNode()) {
Node ImageNode = JcrResourceUtil.createPath(currentNode, "image",
null, "nt:unstructured", true);
imageUrl = ImageNode.hasProperty("fileReference") ? ImageNode.getProperty("fileReference").getValue().getString() : "";
imageUrl = imageUrl.trim();
log.info("MANAGE PROFILE BEAN IMAGE URL INSIDE IF IS: " + imageUrl);
} else {
imageUrl = properties.get("fileReference", "");
imageUrl = imageUrl.trim();
log.info("MANAGE PROFILE BEAN IMAGE URL INSIDE ELSE IS: " + imageUrl);
return imageUrl;
So if I drag and drop..
ImageNode.hasProperty("fileReference") is returning a valid path
but if I upload an image it is returning Null.
So how to get the path? any suggestions around would be appreciated...When you say path you mean you want the path to print out in your HTML? Is that accurate? If so you generally need to constructe that path based on the path to the current component. So if you component is located at /content/mysite/en/about/mypage/jcr:content/parsys/image then the path to the image would generally be something like /content/mysite/en/about/mypage/jcr:content/parsys/image.img.jpg/1283829292873.jpg. The .img. selector triggers the servlet associated with the foundation parbase - /libs/foundation/components/parbase/img.GET.java. The reason you reference it this way is that there is no filesystem path to the image - it is stored in the repository not on the file system, and it requires a servlet or script to ge the binary from the repository and steam it.
Normally the way you'd construct this is to use the out of the box Image class - so look at /libs/foundation/components/image/image.jsp. Now this example assumes that your component where you loaded the image extends /libs/foundation/components/parbase. If it doesn't then you either have to change your sling:superResourceType to /libs/foundation/components/parbase or some other component that does exten /libs/foundation/components/parbase. -
How to get the co-ordinates(X-axis and y-axis) for irregular static map
hi all,
i am trying to get the co-ordinates like latitude and longitude which are used in google map in an irrregular Static Maps,and i also want to know how can i Get perfect location Depending on Coordinates which i given using Page items.
can any help me pls
I AM USING APEX 4.1.1
thanks,
Pavan
Edited by: Pavan on May 29, 2012 7:58 AMhi VC,
Thanks for your reply,,
I Just want to Develop a static map that is not using any Google api or Google Maps,Its like Google maps but not totally a Map which resembles Google map. But i want to have an access of coordinates in an static regular Map where with the help of coordinates we can find any point on that static map's .
Thanks & Regards:
Pavan -
How to get the children of a TreeTableModel and how to sort them?
Hi all,
I used a JXTreeTable in my application; this JXTreeTable has a TreeTableModel in it.
I 'd need to get the children of a node and sort them.....how could i do it ?
Cheers.
StefanoSmigh wrote:
..How can I get the title of the O.S. window with focus? Not necessarily the java application window but any window like the internet browser or Windows Explorer. Do I need the windows API for that?Probably.
How can I send keystrokes to that window? Let's say I want to send "ctrl+w" to Firefox to close the current tab, how can I send those keys?The Robot (http://download.oracle.com/javase/6/docs/api/java/awt/Robot.html#method_summary).
Maybe you are looking for
-
Slow Code Editing in Flash Builder 4.7
For some reason my Code Editor works painfully slow. I see that other folks have experienced this issue. I don't want to switch to another IDE. I have already increased the values of Xms and XMX (Xms1024m -Xmx2048m) and also created a new workspace b
-
CC desktop app won't let me sign in
Problem started today on my PC: Get a "You've been signed out" message when I open the desktop app. I try to sign in but it won't let me. I've tried deleting the opm.db file and re-installing the app. No luck.
-
Photoshop CS4 freezes when adding text to box.
Typing text into a rectangle box freezes Photoshop with the unclose-able error box "Could not complete your request because of a program error" Force quit and clean-start with command-option-shift Start Photoshop and still same error. I can type text
-
Please help me out to design better exception handling framework.
-
What exactly we do as part of Generate Comparison Terms and Evaluate Comparison terms
Dear Experts, As part of SAP GTS area menuin SPL Screening process, I could see below 3 options, I tried to understand by reading SAP HELP and other available documents, but not able to understand completely . Can you please help me in by explaining