Usage of  DragDrop Tags

Hi ,
I have read the documentation of wlp 10.3 regarding drag drop tags but have not got the idea as of yet. How do i use them exactly ?
after initiating the basic structure in the jsp using
<dragdrop:dragDropScript/>
i create a draggable resource as
<dragdrop:draggableResource imageId="0" resourceId="abc" resourceName="abc">
<img src="../images/image.png" width="25" height="25"/>
</dragdrop:draggableResource>
create a drop zone { which i dont understand }
<dragdrop:resourceDropZone targetId="bcd"/>
what is the targetId here ? Is it a reference to say a div id of an html page or something else ?
Can someone provide a basic example to get the idea ?
Thanks,

The resourceDropZone tag provides a way to identify an area (or object) on the page that will "accept" the draggableResource. By "accept", I mean it will trigger a reaction when a draggableResource is dropped on it.
The targetId attribute is a unique identifier for the drop zone and is required. It allows for you to identify on which zone the dragged object was dropped. You can get access to this id on the client using the JavaScript function getTargetId(), or on the server via a request parameter named "targetId".
One of the three following attributes must also be specified: jsFunctionCall, pageFlowAction, or formAction (with that order of precedence if more than one is specified). These attributes identified the resulting action that will be executed when a draggable resource is dropped.
Here is an example. This example shows what could represent a folder icon and how you would enable a drop zone around it to trigger an action.
<dragdrop:resourceDropZone targetId=“${id}” pageFlowAction=“moveIssue”>
<img src=“/folder.gif” />Issue Folder
</ dragdrop:resourceDropZone >
When a draggable resource (presumable representing a file of type "Issue") is dropped onto this folder image, the pageflow action "moveIssue" is called. The id of the folder is a run-time value. In the pageflow controller action "moveIssue", I can get access to the id of the draggable resource via the request parameter "sourceId". And I can get access to the id of the folder it was dropped on via the request parameter "targetId" (which will have the run-time value of ${id} from the page). The moveIssue method on the page flow can now execute all the logic required to move the underlying Issue.
Hope that helps.
- Chuck coates

Similar Messages

  • Usage of /br tag in report headings

    Hi all,
    as interactive reports don't wrap text natively, we use </br> in heading and everything works fine.
    Could this cause some problems to Apex?
    Thank you!

    Hi,
    You use br tag?
    It should not cause any problems. I have used it without problems since interactive reports are introduced on Apex.
    Regards,
    Jari

  • Usage of WCM tags in .jspx files

    Hi,
    Is it allowed to use wcm tags in simple .jspx files? Is this part of the wcm tags certification such that any issues with this can be raised as an SR in future.
    Regards,
    Hemant

    In general, you should be able to use WCM tags in any JSP* files - that's what the concept of SSXA is all about. See also this post by Bex Huff: http://bexhuff.com/2010/11/web-conference-oneclick-web-content-management
    When it comes to raising issues as SR - make sure you understand the licensing model. If you want to use SSXA features, you will need the UCM license for all environments that benefit from SSXA. Of course, you still can publish a SSXA site via Site Studio Publishing Utility to create a pure web site (where the license is not needed).

  • Coexistance/usage of ESI tags in UIX

    Can I use ESI tags in UIX view definitions?

    Not easily (at the current time).
    You'd have to use <rawText> to get the ESI tags in, and you'd have
    to add a manual <html> tag to add the "xmlns:esi" attribute into your
    page. This'll be true whether you're using uiXML or UIX JSP.

  • Jsp tags  dragdrop and activemenus in the portal

    what does these tags do?
    I could not find any documentation for these tags?

    Here is some information about the DragDrop tags.
    These tags allow you to easily add drag and drop functionality to a portal UI. The library is made up of 3 tags.
    1. dragDropScript - This tag is used to include the necessary DragDrop Javascript libraries into the page. It must be included on the page before any other DragDrop tags are used.
    2. draggableResource - This tag identifies a draggable resource on the page. It takes two attributes: resourceId and resourceName.
    The resourceId identifies the resource that is being dragged. This should be an id that can be used by the underlying business logic to uniquely identify the resource.
    The resourceName is a string that is the representative name of the dragged resource.
    3. resourceDropZone - This tag identifies an area where draggable resources can be dropped. It takes the following attirbutes: targetId, jsFunctionCall, pageFlowAction, formAction.
    The targetId uniquely identifies the drop target.
    Only one of the following attributes is required: jsFunctionCall, pageFlowAction, or formAction. The jsFunctionCall takes precedence, then pageFlowAction, and finally formAction. These attributes represent what will occur when the resource is dropped on the drop zone.
    If you set up the tag to execute a pageflow action upon dropping the resource, the action code can retrieve the dragged sourceId and the drop targetId using the following code:
    String sourceId = getRequest().getParameter("sourceId");
    String targetId = getRequest().getParameter("targetId");
    Hope that helps.

  • Best practice for implementing META tags for content items?

    Hello,
    The portal site I'm responsible for managing our content (www.sers.state.pa.us) runs on the following WebCenter products:
    WebCenter Interaction 10.3.0.1
    WebCenter Publisher 6.5
    WebCenter Studio 2.2 MP1
    Content Service 10gR3
    The agency I work for is one of many for the commonwealth of PA, which use this product suite, and I'm encountering some confusion on how to apply META tags to the content items for our site, so we can have effective search results. According to the [W3C site's explanation on META tag standards|http://www.w3schools.com/tags/tag_meta.asp], the tags for description, keywords, etc, should be within the head region of the HTML document. However, with how the WebCenter suite's configuration is set up, the head section of the HTML is closed off by the end of the template code for a common header portlet. I was advised to add fields to our presentation and data entry templates for content, to add these meta fields, however, since they are then placed within the body section of the HTML as a result, these tags fail to have any positive impact on the search results. Instead, many of our content items, when searched for, the description in the search results only shows text that is displayed in the header and left navigation of our template, which come early in the body section of the HTML.
    Please advise as to possible method(s) that would be best to implement usage of META tags so we can get our pages containing content to come up in search results with this relevant data.
    Thanks in advance,
    Brian

    if i remember right the index server will capture meta tags even if they are not in the <head> section. it is not well formed html but I think i remember that we created meta tags down in the body section and the index server still picked them up. you might try this and see if it still works. i believe it worked in 10gR3. Let me know your results.

  • Custom Tag Error with Weblogic SP9

              Hi
              I seem to be having a problem with a custom tag that I wrote. When I run the JSP
              on WLS (without a service pack), the generated java code uses the weblogic.utils.StringUtils
              class to interprete jsp expressions that are passed into the custom tag's attribute
              (on the JSP). The method called on this StringUtils class is valueOf(). This method
              in essence makes sure that the result of the expression is not null and then subsequently
              calls a toString() on the value. Note that if the value is null it simply returns
              an empty string.
              The problem is that when we go to service pack 9, this method is not called (StringUtils.valueOf()).
              Now the problem arises if first of all the result of the expression statement
              in the custom tag definintion (on the JSP) is null. Secondly, it will also error
              out when the setter method is called within the custom tag, if the object returned
              from the expression does not match the one that is expected by the tag... in our
              case a String.
              Here's a sample usage of the tag:
              <wescombop:selectTag
              selectName="buildingNumber"
              selectedItem="<%= buildingJB.getBuildingNumber()%>"
              trimSelectedItem="true"
              selectTagDataName="buildingNumberDataAttribute" />
              Note: buildingJB.getBuildingNumber() returns BigDecimal
              Here's a snipett of the line generated java:
              * Without the service pack
              comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(weblogic.utils.StringUtils.valueOf(buildingJB.getBuildingNumber()));
              *With Service Pack 9
              comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(buildingJB.getBuildingNumber());
              Note: The setSelectedItem() method expects a String object as a parameter, so
              the code with service pack 9 will result in a compilation error, since buildingJB.getBuildingNumber()
              returns a BigDecimal.
              Let me know if you need more explanation.
              Has anyone experience this problem before... Any help would be deeply appreciated.
              Thanks all.
              Niran
              

              Modify the <cewolf:param> tag.
              <cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time"> <cewolf:data>
              <cewolf:producer id="report"> <cewolf:param name="type" value="all" > </cewolf:param>
              </cewolf:producer> </cewolf:data> </cewolf:chart>
              "Balakrishnan" <[email protected]> wrote:
              >
              >We are using cewolf charting library in weblogic 7.0. The charting library
              >is implemented
              >as custom jsp tag library module.
              >
              >However, when the use the tag for displaying the chart, weblogic is producing
              >this compiler error.
              >
              >/reports/reportsView.jsp(108): no corresponding open tag for tag extension
              >close:
              >//[ null; Line: 108]
              >
              >Here's the corresponding source of the jsp file:
              >
              > <cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time">
              > <cewolf:data>
              > <cewolf:producer id="report">
              > <cewolf:param name="type" value="all" /> (<-- Error occurs
              >here.
              >Line no: 108)
              > </cewolf:producer>
              > </cewolf:data>
              > </cewolf:chart>
              >
              >I've also checked the corresponding tld file and it is in place.
              >
              >The same code without any modifications is working fine in tomcat. Can
              >you please
              >let me know what needs to be corrected to make this work?
              

  • Problem in executing a JSP file that includes a Custm tag

    Hi,
    I am very new to JSP,especially custom tags. I tried to run my first custom tag program but i cud not succeed.
    I tried to run it using Tomcat as well J2ee1.3. But still cud not c the output.
    I have placed jsp file,TLD etc in Web inf of root dir and class file inside classes folder..but i got some error saying tag with prefix not found in the tag library...
    i tried in all the ways but all in vain... I will post my code and exact error i faced.. can anyone help me soon to see the output?
    WelcomCtag.java
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class WelcomeCtag extends TagSupport
         private String Name=null;
         public String getName()
              return Name;
         public int doStartTag()
              try
                   JspWriter output=pageContext.getOut();
                   output.println("Welcome" + getName());
              }catch(Exception e)
                   throw new Error("Encountered an errer");
              return SKIP_BODY;
         public int doEndTag()
              try{}
              catch(Exception e)
                   throw new Error("Encountered an errer");
              finally
                   return SKIP_PAGE;
    [u]example.tld[/u]
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>example</shortname>
         <info> A small example for usage of the tag library</info>
         <tag>
              <name> Welcome></name>
              <tagclass>WelcomeCtag</tagclass>
         <bodycontent>empty</bodycontent>
         <info>This tag is an example to display a welcome message</info>
         <attribute>
              <name>Name</name>
              <required>true</required>
              <rtexprvalue>true</rtexprvalue>
         </attribute>
         </tag>
    </taglib>
    [u]WelcomeCustomtag.jsp[/u]
    <%@ taglib prefix="example" uri="./example.tld" %>
    <html>
    <title>Welcome Handler</title>
    </head>
    <body>
    <example: Welcome Name="Panduranga"/>
    </body>
    </html>
    and the error i get while executing is here..........
    org.apache.jasper.JasperException: /WelcomeCustomtag.jsp(6,0) No tag "" defined in tag library imported with prefix "example"
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:196)
         org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1308)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1564)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    when i referred some other tutorials some have stored the tld file inside a folder called tags inside web inf and they have used like this <tags:example> etc and it wrked but if i want to specify some attributes i dunno how to give using <tags> style....
    Can anyone help me n tell me the difference in using tag like this <eample> and <tags: example> like this.....
    Thanks,
    Akshatha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    1.
    Multiple tlds in web.xml
    Have multiple taglib elements in your web.xml - see below.
    <jsp-config>
      <taglib>
         <taglib-uri>http://example/taglib</taglib-uri>
         <taglib-location>/WEB-INF/example.tld</taglib-location>
      </taglib>
       <taglib>
          <taglib-uri>http://anotherexample/taglib</taglib-uri>
           <taglib-location>/WEB-INF/anotherexample.tld</taglib-location>
       </taglib>
    </jsp-config>The jsp-config element should be just after the servlet-mapping element in servlet 2.3 spec.
    For 2.4 spec, you can put it anywhere.
    In your jsp, to use the tags from the two tag libraries, use 2 taglib directives
    <%@ taglib prefix="example" uri="http://example/taglib" %>
    <%@ taglib prefix="anotherexample" uri="http://anotherexample/taglib" %>
    <example:tag1.................>
    <anotherexample:tag2.................> etc2.
    Mutliple tags per tld
    Have multiple <tag> elements in your tld.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
       <tlib-version>1.0</tlib-version>
       <jsp-version>1.2</jsp-version>
       <short-name>j2ee</short-name>
       <tag>
          <name>tagName</name>
          <tag-class>pkgName.classname</tag-class>
          <body-content>JSP</body-content>
          <display-name>OverlapTag</display-name>
          <attribute>
             <name>attr1</name>
             <required>false</required>
             <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
             <name>attr2</name>
             <required>false</required>
             <rtexprvalue>true</rtexprvalue>
          </attribute>
       </tag>
       <tag>
          <name>tag_2_Name</name>
          <tag-class>pkgName.classname</tag-class>
          <body-content>JSP</body-content>
          <display-name></display-name>
          <attribute>
             <name>attr1_2</name>
             <required>false</required>
             <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
             <name>attr2_2</name>
             <required>false</required>
             <rtexprvalue>true</rtexprvalue>
          </attribute>
       </tag>
    </taglib>
    Interesting snippet
    If you are using a 3rd party tag library, then the tags would come packaged in a jar file. The MTEA-INF directory of the jar file would contain the tlds and the tld would have an uri element. You can use it directly in the jsp without declaring the tld file in web.xml provided the jar file is in your classpath.
    For example, take the struts tag libraries, say the logic tags.
    The struts.jar contains, among other things, the tag class files and the tld files (inside /META-INF/tlds)
    All you have to do is put Struts.jar in the classpath (easy way to do this is put it in the WEB-INF/lib directory of your web-application).
    The jar file has struts-logic-1.1.tld in the META-INF/tlds directory.
    This tld file looks like this
    <taglib>
    <tlibversion>1.2</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>logic</shortname>
    <uri>http://jakarta.apache.org/struts/tags-logic</uri>
    ..................Now to use the tags in your jsp, you dont require the tld mappings in web.xml using the uri above in the taglib directive in your jsp
    <%@ taglib prefix="example" uri="http://jakarta.apache.org/struts/tags-logic" %> cool, right ? :)
    This is how you should pkg your own tags too. The tag classes have to be jarred and the tlds should go into the META-INF of the jar so that other users can simply add the jar to the cp and start using your tags.
    cheers,
    ram.

  • Need info on BSP tags  Test Suite and Test Case

    Dear All,
                 Could any one pls send me some info on the BSP tags Test Suite and Test Case.
    Thanks,
    Sirisha.

    Hi,
             I have gone through the sample examples.. for TestSuite and test case.. but im unable to understand it. I need some documentation on the usage of these tags..
    Thanks,
    Sirisha.

  • Tags in JCAPS 5.1.3

    Hi everyone!
    I'm trying to understand the usage of the tag in JCAPS 5.1.3
    I've tagged several components (a subproject) from a proyect and I want to know if a can:
    1) export only the tagged components?
    2) retrieve all the tagged components at the same time, or if I have to do it one by one?
    I appreciate if someone could explain me what you can and cannot do with the tag option.
    Thanks

    Tags in JCAPS Repository are primarily used with deployment profiles. They are not the traditional CVS or SVN Tags. As far as I know, you cannot export projects based on Tags. The only place they are useful is when you are creating deployment profiles and want to use an older Tagged version of the connectivity maps etc and the components used within them such as JCDs, eWays, BPs etc. The caveat here is that if you used any external JARs within your JCDs, earlier versions of those would not be references corresponding to the repository Tag.
    Hope that helps.
    Z.

  • How to use framework tag libraries

    i need to create a new masthead using framework tag libraries.i got the purpose of  that tag libraries from the help.sap.com site.
    but i want some sample codes for the usage of that tags.i already have a masthead code using navigation tag libraries.can i make changes in that by using framework tags.if yes how and where to change.
    or if u have any new solutions also please tell me.
    if anyone has idea about it please share.
    regards,
    karthick

    yes Mr.michael i checked with the help.sap.com site.but i cant get any sample code or solution.they have given the available tags and function of them in one line.no other details.
    what u have given is a sample code for navigation tag libraries.i have it already.now i need a sample code with framework tag libraries.both have different functionalities i think so.if u find anything please send it.
    thanks for ur reply.
    regards,
    karthick

  • Command link usage.

    Hi,
    I am using </h:commandLink > tag to generate command links in each row of <h:table> tag. simple code i am using:
    <h:dataTable value="#{projectBean.projects}" var="projectsData">
    <h:column>
    <f:facet name="header">Name</f:facet>
    <h:outputLink value="#{projectBean.getProjectDetails">
    <h:outputText value="#{projectsData.name}"/>
    <f:param name="pId" value="#{projectsData.projectId}"/>
    </h:outputLink>
    </h:column>
    <h:column>
    <f:facet name="header">Date</f:facet>
    <h:outputText value="#{projectsData.stDate"/>
    </h:column>
    </h:table>
    I am able to generat the link with the param value passing but the action method is not getting invoked on press of the link, could any one help me in usage of commandlink tag in invoking action page.
    Regards
    Mruthyunjaya

    I have used the command link instead of outLink also the tag is under form tag only but still the link action is not executed.
    if i changed the bean to session scope it is running fine, but as the bean is session scope it is displaying old values along with new values, i.e. the form is displayed with repeated values.
    can some one help me in solving this problem.
    thanks
    Mruthyunjaya

  • Possibility to import a file programmatically in the tag configuration editor

    Hi,
    I need to modify my tag configuration programmatically, importing new text files (the modifications involve for instance tag creations).
    Programmatically, I can launch, stop and load a scf file in the tag engine, but how can I import a new file and save the .scf file?
    I don't want to have any manual operation involving the tag configuration editor.
    Thanks for your answers.

    You will not be able to do this with the current version of DSC. The importing of text configuration to create the SCF file requires the usage of the Tag Configuration Editor -- which is unfortunately a manual process. (I don't see how spawning another app would help here.)
    Anyways, rumor has it that Programmatic Tag configuration will be available in one of the future versions
    Khalid

  • Help in regular expression matching

    I have three expressions like
    1) [(y2009)(y2011)]
    2) [(y2008M5)(y2011M3)] or [(y2009M5)(y2010M12)]
    3) [(y2009M1d20)(y2011M12d31)]
    i want regular expression pattern for the above three expressions
    I am using :
    REGEXP_LIKE(timedomainexpression, '???[:digit:]{4}*[:digit:]{1,2}???[:digit:]{4}*[:digit:]{1,2}??', 'i');
    but its giving results for all above expressions while i want different expression for each.
    i hav used * after [:digit:]{4}, when i am using ? or . then its giving no results. Please help in this situation ASAP.
    Thanks

    I dont get your question Can you post your desired output? and also give some sample data.
    Please consider the following when you post a question.
    1. New features keep coming in every oracle version so please provide Your Oracle DB Version to get the best possible answer.
    You can use the following query and do a copy past of the output.
    select * from v$version 2. This forum has a very good Search Feature. Please use that before posting your question. Because for most of the questions
    that are asked the answer is already there.
    3. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
    I have the following table called sales
    with sales
    as
          select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
          union all
          select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
    select *
      from sales 4. Rather than telling what you want in words its more easier when you give your expected output.
    For example in the above sales table, I want to know the total quantity and number of invoice for each product.
    The output should look like this
    Prod_id   sum_qty   count_inv
    1         145       2 5. When ever you get an error message post the entire error message. With the Error Number, The message and the Line number.
    6. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
    Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
    use the {noformat}{noformat} tags.
    The usage of the tag is like this.
    <place your code here>\
    7. If you are posting a *Performance Related Question*. Please read
       {thread:id=501834} and {thread:id=863295}.
       Following those guide will be very helpful.
    8. Please keep in mind that this is a public forum. Here No question is URGENT.
       So use of words like *URGENT* or *ASAP* (As Soon As Possible) are considered to be rude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Opening and Closing Stock Monthwise

    hi,
    I need to display month wise Stock details like below
    month-year Opening-Stock STock-In Stock-Out closing-Stock
    I have made the query, but this query gives only monthwise stock-in and stock-out. How do i get Opening-Stock and closing-Stock.
    SELECT e.STORE, months.month,
    SUM( (CASE WHEN trunc(e.MAT_IN_DATE,'MM') = months.month THEN MVALUE ELSE 0 END) )
    Mat_Rcvd,
    SUM( (CASE WHEN trunc(E.MAT_OUT_DATE,'MM') = months.month THEN MVALUE ELSE 0 END) ) Mat_Out
    FROM
    SELECT STORE,ITEM_CODE, SUM(NVL(MQTY,0)) M_QTY, SUM(NVL(MVALUE,0)) MVALUE,
    MAT_OUT_DATE, MAT_IN_DATE
    FROM
    SELECT GD.TO_STORE STORE , GD.ITEM_CODE,
    GD.QUANTITY MQTY, GD.AED_RATE * GD.QUANTITY MVALUE, NULL MAT_OUT_DATE , GRN_DATE MAT_IN_DATE
    FROM GRN_DETAILS GD , GRN_MASTER GM
    WHERE GD.GRN_NO = GM.GRN_NO
    UNION ALL
    SELECT MI.STORE, MI.ITEM_CODE, (NVL(MI.QUANTITY,0)) MQTY,
    MI.QUANTITY * UNIT_RATE MVALUE , mi.ISSUE_DATE MAT_OUT_DATE , NULL MAT_IN_DATE
    FROM MATERIAL_ISSUE MI , MINR_MASTER MM
    WHERE MI.MIN_NO = MM.MIN_NO
    WHERE STORE='ABC'
    GROUP BY STORE, ITEM_CODE, MAT_OUT_DATE, MAT_IN_DATE
    ) E ,
    (SELECT add_months( date '2007-07-01', level ) month,
         FROM dual
    WHERE add_months( date '2007-07-01', level ) < SYSDATE
    CONNECT BY level <= 30 )months
    GROUP BY e.STORE, months.month
    ORDER BY MONTH
    /

    Please consider the following when you post a question. This would help us help you better
    1. New features keep coming in every oracle version so please provide Your Oracle DB Version to get the best possible answer.
    You can use the following query and do a copy past of the output.
    select * from v$version 2. This forum has a very good Search Feature. Please use that before posting your question. Because for most of the questions
    that are asked the answer is already there.
    3. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
    I have the following table called sales
    with sales
    as
          select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
          union all
          select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
    select *
      from sales 4. Rather than telling what you want in words its more easier when you give your expected output.
    For example in the above sales table, I want to know the total quantity and number of invoice for each product.
    The output should look like this
    Prod_id   sum_qty   count_inv
    1         145       2 5. When ever you get an error message post the entire error message. With the Error Number, The message and the Line number.
    6. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
    Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
    use the {noformat}{noformat} tags.
    The usage of the tag is like this.
    <place your code here>\
    7. If you are posting a *Performance Related Question*. Please read
       {thread:id=501834} and {thread:id=863295}.
       Following those guide will be very helpful.
    8. Please keep in mind that this is a public forum. Here No question is URGENT.
       So use of words like *URGENT* or *ASAP* (As Soon As Possible) are considered to be rude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for