Acumatica:How to display one single textbox from rows to columns(in a straight line) in Main report sub line










0















I would like to show the SOShipline.QTY in main lines, and every SOShiplineSplit.QTY under its shipline in straight lines and NOT in rows.



The report display now and the change I want



Thanks to anyone who would like to mention Tabular Sub-report Property
Yes, I've tried tabular report, I have met a problem I can not solve for several days. I've posted my problem in another post
Acumatica:Tabular Report generates unexpected lines when calling as sub report



For this question only, can somebody point out a way for me to realize my need?










share|improve this question


























    0















    I would like to show the SOShipline.QTY in main lines, and every SOShiplineSplit.QTY under its shipline in straight lines and NOT in rows.



    The report display now and the change I want



    Thanks to anyone who would like to mention Tabular Sub-report Property
    Yes, I've tried tabular report, I have met a problem I can not solve for several days. I've posted my problem in another post
    Acumatica:Tabular Report generates unexpected lines when calling as sub report



    For this question only, can somebody point out a way for me to realize my need?










    share|improve this question
























      0












      0








      0








      I would like to show the SOShipline.QTY in main lines, and every SOShiplineSplit.QTY under its shipline in straight lines and NOT in rows.



      The report display now and the change I want



      Thanks to anyone who would like to mention Tabular Sub-report Property
      Yes, I've tried tabular report, I have met a problem I can not solve for several days. I've posted my problem in another post
      Acumatica:Tabular Report generates unexpected lines when calling as sub report



      For this question only, can somebody point out a way for me to realize my need?










      share|improve this question














      I would like to show the SOShipline.QTY in main lines, and every SOShiplineSplit.QTY under its shipline in straight lines and NOT in rows.



      The report display now and the change I want



      Thanks to anyone who would like to mention Tabular Sub-report Property
      Yes, I've tried tabular report, I have met a problem I can not solve for several days. I've posted my problem in another post
      Acumatica:Tabular Report generates unexpected lines when calling as sub report



      For this question only, can somebody point out a way for me to realize my need?







      report acumatica






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 0:12









      Michael WangMichael Wang

      54




      54






















          1 Answer
          1






          active

          oldest

          votes


















          0














          SQL views are not recommended however in this case you might need to create one. The select statement below will give you the one line output that you need. Then you would create a DAC based off the view. From there you would be able to add the view to your report.



          -- ------------------------------------------------------------
          -- View: usrSOSplit
          -- ------------------------------------------------------------

          if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usrSOSplit]') and OBJECTPROPERTY(id, N'IsView') = 1)
          drop view [dbo].usrSOSplit
          GO
          SET ANSI_NULLS ON
          GO
          SET QUOTED_IDENTIFIER ON
          GO

          Create View [usrSOSplit] as
          SELECT companyid, shipmentnbr,
          isnull(cast([1] as varchar(50)),'')
          +' '+ isnull(cast([2] as varchar(50)),'')
          +' '+ isnull(cast([3] as varchar(50)),'')
          +' '+ isnull(cast([4] as varchar(50)),'')
          +' '+ isnull(cast([5] as varchar(50)),'')
          +' '+ isnull(cast([6] as varchar(50)),'')
          +' '+ isnull(cast([7] as varchar(50)),'')
          +' '+ isnull(cast([8] as varchar(50)),'')
          +' '+ isnull(cast([9] as varchar(50)),'')
          +' '+ isnull(cast([10] as varchar(50)),'')
          as ListOfQty
          FROM
          ( SELECT shipmentnbr,companyid, splitlinenbr as splitLine , qty FROM SOShipLineSplit ) p
          PIVOT ( max(qty) FOR [splitline] IN ( [1],[2],[3],[4],[5],[6],[7],[8],[9],[10] ) ) AS pvt


          DAC:



          using System;
          using PX.Data;

          namespace SoShipSplit

            [Serializable]
            public class usrSOSplit : IBqlTable
            
              #region Shipmentnbr
              [PXDBString(15, IsUnicode = true, InputMask = "")]
              [PXUIField(DisplayName = "Shipmentnbr")]
              public virtual string Shipmentnbr  get; set; 
              public abstract class shipmentnbr : IBqlField  
              #endregion

              #region ListOfQty
              [PXDBString(509, InputMask = "")]
              [PXUIField(DisplayName = "List Of Qty")]
              public virtual string ListOfQty  get; set; 
              public abstract class listOfQty : IBqlField  
              #endregion
            



          enter image description here






          share|improve this answer























          • Hello Pal,thank you so much for giving me this. One thing I don't understand is where to/How to add the DAC code.

            – Michael Wang
            Nov 16 '18 at 6:29











          • Refer the Data Access Classes section, page 259 in the customization guide below. You'll need to create a customization project and add the DAC. Once published you should be able to access your SQL view. adn.acumatica.com/content/uploads/2017/08/…

            – jjacob
            Nov 16 '18 at 23:37










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53291326%2facumaticahow-to-display-one-single-textbox-from-rows-to-columnsin-a-straight-l%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          SQL views are not recommended however in this case you might need to create one. The select statement below will give you the one line output that you need. Then you would create a DAC based off the view. From there you would be able to add the view to your report.



          -- ------------------------------------------------------------
          -- View: usrSOSplit
          -- ------------------------------------------------------------

          if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usrSOSplit]') and OBJECTPROPERTY(id, N'IsView') = 1)
          drop view [dbo].usrSOSplit
          GO
          SET ANSI_NULLS ON
          GO
          SET QUOTED_IDENTIFIER ON
          GO

          Create View [usrSOSplit] as
          SELECT companyid, shipmentnbr,
          isnull(cast([1] as varchar(50)),'')
          +' '+ isnull(cast([2] as varchar(50)),'')
          +' '+ isnull(cast([3] as varchar(50)),'')
          +' '+ isnull(cast([4] as varchar(50)),'')
          +' '+ isnull(cast([5] as varchar(50)),'')
          +' '+ isnull(cast([6] as varchar(50)),'')
          +' '+ isnull(cast([7] as varchar(50)),'')
          +' '+ isnull(cast([8] as varchar(50)),'')
          +' '+ isnull(cast([9] as varchar(50)),'')
          +' '+ isnull(cast([10] as varchar(50)),'')
          as ListOfQty
          FROM
          ( SELECT shipmentnbr,companyid, splitlinenbr as splitLine , qty FROM SOShipLineSplit ) p
          PIVOT ( max(qty) FOR [splitline] IN ( [1],[2],[3],[4],[5],[6],[7],[8],[9],[10] ) ) AS pvt


          DAC:



          using System;
          using PX.Data;

          namespace SoShipSplit

            [Serializable]
            public class usrSOSplit : IBqlTable
            
              #region Shipmentnbr
              [PXDBString(15, IsUnicode = true, InputMask = "")]
              [PXUIField(DisplayName = "Shipmentnbr")]
              public virtual string Shipmentnbr  get; set; 
              public abstract class shipmentnbr : IBqlField  
              #endregion

              #region ListOfQty
              [PXDBString(509, InputMask = "")]
              [PXUIField(DisplayName = "List Of Qty")]
              public virtual string ListOfQty  get; set; 
              public abstract class listOfQty : IBqlField  
              #endregion
            



          enter image description here






          share|improve this answer























          • Hello Pal,thank you so much for giving me this. One thing I don't understand is where to/How to add the DAC code.

            – Michael Wang
            Nov 16 '18 at 6:29











          • Refer the Data Access Classes section, page 259 in the customization guide below. You'll need to create a customization project and add the DAC. Once published you should be able to access your SQL view. adn.acumatica.com/content/uploads/2017/08/…

            – jjacob
            Nov 16 '18 at 23:37















          0














          SQL views are not recommended however in this case you might need to create one. The select statement below will give you the one line output that you need. Then you would create a DAC based off the view. From there you would be able to add the view to your report.



          -- ------------------------------------------------------------
          -- View: usrSOSplit
          -- ------------------------------------------------------------

          if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usrSOSplit]') and OBJECTPROPERTY(id, N'IsView') = 1)
          drop view [dbo].usrSOSplit
          GO
          SET ANSI_NULLS ON
          GO
          SET QUOTED_IDENTIFIER ON
          GO

          Create View [usrSOSplit] as
          SELECT companyid, shipmentnbr,
          isnull(cast([1] as varchar(50)),'')
          +' '+ isnull(cast([2] as varchar(50)),'')
          +' '+ isnull(cast([3] as varchar(50)),'')
          +' '+ isnull(cast([4] as varchar(50)),'')
          +' '+ isnull(cast([5] as varchar(50)),'')
          +' '+ isnull(cast([6] as varchar(50)),'')
          +' '+ isnull(cast([7] as varchar(50)),'')
          +' '+ isnull(cast([8] as varchar(50)),'')
          +' '+ isnull(cast([9] as varchar(50)),'')
          +' '+ isnull(cast([10] as varchar(50)),'')
          as ListOfQty
          FROM
          ( SELECT shipmentnbr,companyid, splitlinenbr as splitLine , qty FROM SOShipLineSplit ) p
          PIVOT ( max(qty) FOR [splitline] IN ( [1],[2],[3],[4],[5],[6],[7],[8],[9],[10] ) ) AS pvt


          DAC:



          using System;
          using PX.Data;

          namespace SoShipSplit

            [Serializable]
            public class usrSOSplit : IBqlTable
            
              #region Shipmentnbr
              [PXDBString(15, IsUnicode = true, InputMask = "")]
              [PXUIField(DisplayName = "Shipmentnbr")]
              public virtual string Shipmentnbr  get; set; 
              public abstract class shipmentnbr : IBqlField  
              #endregion

              #region ListOfQty
              [PXDBString(509, InputMask = "")]
              [PXUIField(DisplayName = "List Of Qty")]
              public virtual string ListOfQty  get; set; 
              public abstract class listOfQty : IBqlField  
              #endregion
            



          enter image description here






          share|improve this answer























          • Hello Pal,thank you so much for giving me this. One thing I don't understand is where to/How to add the DAC code.

            – Michael Wang
            Nov 16 '18 at 6:29











          • Refer the Data Access Classes section, page 259 in the customization guide below. You'll need to create a customization project and add the DAC. Once published you should be able to access your SQL view. adn.acumatica.com/content/uploads/2017/08/…

            – jjacob
            Nov 16 '18 at 23:37













          0












          0








          0







          SQL views are not recommended however in this case you might need to create one. The select statement below will give you the one line output that you need. Then you would create a DAC based off the view. From there you would be able to add the view to your report.



          -- ------------------------------------------------------------
          -- View: usrSOSplit
          -- ------------------------------------------------------------

          if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usrSOSplit]') and OBJECTPROPERTY(id, N'IsView') = 1)
          drop view [dbo].usrSOSplit
          GO
          SET ANSI_NULLS ON
          GO
          SET QUOTED_IDENTIFIER ON
          GO

          Create View [usrSOSplit] as
          SELECT companyid, shipmentnbr,
          isnull(cast([1] as varchar(50)),'')
          +' '+ isnull(cast([2] as varchar(50)),'')
          +' '+ isnull(cast([3] as varchar(50)),'')
          +' '+ isnull(cast([4] as varchar(50)),'')
          +' '+ isnull(cast([5] as varchar(50)),'')
          +' '+ isnull(cast([6] as varchar(50)),'')
          +' '+ isnull(cast([7] as varchar(50)),'')
          +' '+ isnull(cast([8] as varchar(50)),'')
          +' '+ isnull(cast([9] as varchar(50)),'')
          +' '+ isnull(cast([10] as varchar(50)),'')
          as ListOfQty
          FROM
          ( SELECT shipmentnbr,companyid, splitlinenbr as splitLine , qty FROM SOShipLineSplit ) p
          PIVOT ( max(qty) FOR [splitline] IN ( [1],[2],[3],[4],[5],[6],[7],[8],[9],[10] ) ) AS pvt


          DAC:



          using System;
          using PX.Data;

          namespace SoShipSplit

            [Serializable]
            public class usrSOSplit : IBqlTable
            
              #region Shipmentnbr
              [PXDBString(15, IsUnicode = true, InputMask = "")]
              [PXUIField(DisplayName = "Shipmentnbr")]
              public virtual string Shipmentnbr  get; set; 
              public abstract class shipmentnbr : IBqlField  
              #endregion

              #region ListOfQty
              [PXDBString(509, InputMask = "")]
              [PXUIField(DisplayName = "List Of Qty")]
              public virtual string ListOfQty  get; set; 
              public abstract class listOfQty : IBqlField  
              #endregion
            



          enter image description here






          share|improve this answer













          SQL views are not recommended however in this case you might need to create one. The select statement below will give you the one line output that you need. Then you would create a DAC based off the view. From there you would be able to add the view to your report.



          -- ------------------------------------------------------------
          -- View: usrSOSplit
          -- ------------------------------------------------------------

          if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usrSOSplit]') and OBJECTPROPERTY(id, N'IsView') = 1)
          drop view [dbo].usrSOSplit
          GO
          SET ANSI_NULLS ON
          GO
          SET QUOTED_IDENTIFIER ON
          GO

          Create View [usrSOSplit] as
          SELECT companyid, shipmentnbr,
          isnull(cast([1] as varchar(50)),'')
          +' '+ isnull(cast([2] as varchar(50)),'')
          +' '+ isnull(cast([3] as varchar(50)),'')
          +' '+ isnull(cast([4] as varchar(50)),'')
          +' '+ isnull(cast([5] as varchar(50)),'')
          +' '+ isnull(cast([6] as varchar(50)),'')
          +' '+ isnull(cast([7] as varchar(50)),'')
          +' '+ isnull(cast([8] as varchar(50)),'')
          +' '+ isnull(cast([9] as varchar(50)),'')
          +' '+ isnull(cast([10] as varchar(50)),'')
          as ListOfQty
          FROM
          ( SELECT shipmentnbr,companyid, splitlinenbr as splitLine , qty FROM SOShipLineSplit ) p
          PIVOT ( max(qty) FOR [splitline] IN ( [1],[2],[3],[4],[5],[6],[7],[8],[9],[10] ) ) AS pvt


          DAC:



          using System;
          using PX.Data;

          namespace SoShipSplit

            [Serializable]
            public class usrSOSplit : IBqlTable
            
              #region Shipmentnbr
              [PXDBString(15, IsUnicode = true, InputMask = "")]
              [PXUIField(DisplayName = "Shipmentnbr")]
              public virtual string Shipmentnbr  get; set; 
              public abstract class shipmentnbr : IBqlField  
              #endregion

              #region ListOfQty
              [PXDBString(509, InputMask = "")]
              [PXUIField(DisplayName = "List Of Qty")]
              public virtual string ListOfQty  get; set; 
              public abstract class listOfQty : IBqlField  
              #endregion
            



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 14 '18 at 19:04









          jjacobjjacob

          761




          761












          • Hello Pal,thank you so much for giving me this. One thing I don't understand is where to/How to add the DAC code.

            – Michael Wang
            Nov 16 '18 at 6:29











          • Refer the Data Access Classes section, page 259 in the customization guide below. You'll need to create a customization project and add the DAC. Once published you should be able to access your SQL view. adn.acumatica.com/content/uploads/2017/08/…

            – jjacob
            Nov 16 '18 at 23:37

















          • Hello Pal,thank you so much for giving me this. One thing I don't understand is where to/How to add the DAC code.

            – Michael Wang
            Nov 16 '18 at 6:29











          • Refer the Data Access Classes section, page 259 in the customization guide below. You'll need to create a customization project and add the DAC. Once published you should be able to access your SQL view. adn.acumatica.com/content/uploads/2017/08/…

            – jjacob
            Nov 16 '18 at 23:37
















          Hello Pal,thank you so much for giving me this. One thing I don't understand is where to/How to add the DAC code.

          – Michael Wang
          Nov 16 '18 at 6:29





          Hello Pal,thank you so much for giving me this. One thing I don't understand is where to/How to add the DAC code.

          – Michael Wang
          Nov 16 '18 at 6:29













          Refer the Data Access Classes section, page 259 in the customization guide below. You'll need to create a customization project and add the DAC. Once published you should be able to access your SQL view. adn.acumatica.com/content/uploads/2017/08/…

          – jjacob
          Nov 16 '18 at 23:37





          Refer the Data Access Classes section, page 259 in the customization guide below. You'll need to create a customization project and add the DAC. Once published you should be able to access your SQL view. adn.acumatica.com/content/uploads/2017/08/…

          – jjacob
          Nov 16 '18 at 23:37

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53291326%2facumaticahow-to-display-one-single-textbox-from-rows-to-columnsin-a-straight-l%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Barbados

          How to read a connectionString WITH PROVIDER in .NET Core?

          Node.js Script on GitHub Pages or Amazon S3